New structures for new vacuum.

This commit is contained in:
Vadim B. Mikheev 1996-11-27 07:35:06 +00:00
parent 948720ee94
commit a38365e0eb
1 changed files with 14 additions and 7 deletions

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: vacuum.h,v 1.2 1996/10/18 08:15:58 vadim Exp $
* $Id: vacuum.h,v 1.3 1996/11/27 07:35:06 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@ -21,19 +21,26 @@ typedef struct VAttListData {
typedef VAttListData *VAttList;
typedef struct VPageDescrData {
BlockNumber vpd_blkno; /* BlockNumber of this Page */
Size vpd_free; /* FreeSpace on this Page */
uint16 vpd_noff; /* Number of dead tids */
OffsetNumber vpd_voff[1]; /* Array of its OffNums */
BlockNumber vpd_blkno; /* BlockNumber of this Page */
Size vpd_free; /* FreeSpace on this Page */
uint16 vpd_nusd; /* Number of OffNums used by vacuum */
uint16 vpd_noff; /* Number of OffNums free or to be free */
OffsetNumber vpd_voff[1]; /* Array of its OffNums */
} VPageDescrData;
typedef VPageDescrData *VPageDescr;
typedef struct VPageListData {
int vpl_nemend; /* Number of "empty" end-pages */
int vpl_npages; /* Number of pages in vpl_pgdesc */
VPageDescr *vpl_pgdesc; /* Descriptions of pages */
} VPageListData;
typedef VPageListData *VPageList;
typedef struct VRelListData {
Oid vrl_relid;
VAttList vrl_attlist;
VPageDescr *vrl_pgdsc;
int vrl_nrepg;
int vrl_ntups;
int vrl_npages;
bool vrl_hasindex;