Skip to content

Commit a38365e

Browse files
committed
New structures for new vacuum.
1 parent 948720e commit a38365e

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

src/include/commands/vacuum.h

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: vacuum.h,v 1.2 1996/10/18 08:15:58 vadim Exp $
9+
* $Id: vacuum.h,v 1.3 1996/11/27 07:35:06 vadim Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -21,19 +21,26 @@ typedef struct VAttListData {
2121
typedef VAttListData *VAttList;
2222

2323
typedef struct VPageDescrData {
24-
BlockNumber vpd_blkno; /* BlockNumber of this Page */
25-
Size vpd_free; /* FreeSpace on this Page */
26-
uint16 vpd_noff; /* Number of dead tids */
27-
OffsetNumber vpd_voff[1]; /* Array of its OffNums */
24+
BlockNumber vpd_blkno; /* BlockNumber of this Page */
25+
Size vpd_free; /* FreeSpace on this Page */
26+
uint16 vpd_nusd; /* Number of OffNums used by vacuum */
27+
uint16 vpd_noff; /* Number of OffNums free or to be free */
28+
OffsetNumber vpd_voff[1]; /* Array of its OffNums */
2829
} VPageDescrData;
2930

3031
typedef VPageDescrData *VPageDescr;
3132

33+
typedef struct VPageListData {
34+
int vpl_nemend; /* Number of "empty" end-pages */
35+
int vpl_npages; /* Number of pages in vpl_pgdesc */
36+
VPageDescr *vpl_pgdesc; /* Descriptions of pages */
37+
} VPageListData;
38+
39+
typedef VPageListData *VPageList;
40+
3241
typedef struct VRelListData {
3342
Oid vrl_relid;
3443
VAttList vrl_attlist;
35-
VPageDescr *vrl_pgdsc;
36-
int vrl_nrepg;
3744
int vrl_ntups;
3845
int vrl_npages;
3946
bool vrl_hasindex;

0 commit comments

Comments
 (0)