Commit 6d5cba7c authored by Bruce Momjian's avatar Bruce Momjian

More vacuum cleanup

parent d950c197
This diff is collapsed.
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Id: vacuum.h,v 1.29 2000/05/29 16:21:05 momjian Exp $ * $Id: vacuum.h,v 1.30 2000/05/29 17:06:15 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -30,29 +30,29 @@ typedef struct VAttListData ...@@ -30,29 +30,29 @@ typedef struct VAttListData
typedef VAttListData *VAttList; typedef VAttListData *VAttList;
typedef struct VPageDescrData typedef struct VacPageData
{ {
BlockNumber vpd_blkno; /* BlockNumber of this Page */ BlockNumber blkno; /* BlockNumber of this Page */
Size vpd_free; /* FreeSpace on this Page */ Size free; /* FreeSpace on this Page */
uint16 vpd_offsets_used; /* Number of OffNums used by uint16 offsets_used; /* Number of OffNums used by
* vacuum */ * vacuum */
uint16 vpd_offsets_free; /* Number of OffNums free or to be uint16 offsets_free; /* Number of OffNums free or to be
* free */ * free */
OffsetNumber vpd_offsets[1];/* Array of its OffNums */ OffsetNumber offsets[1];/* Array of its OffNums */
} VPageDescrData; } VacPageData;
typedef VPageDescrData *VPageDescr; typedef VacPageData *VacPage;
typedef struct VPageListData typedef struct VacPageListData
{ {
int vpl_empty_end_pages; /* Number of "empty" end-pages */ int empty_end_pages; /* Number of "empty" end-pages */
int vpl_num_pages; /* Number of pages in vpl_pagedesc */ int num_pages; /* Number of pages in pagedesc */
int vpl_num_allocated_pages; /* Number of allocated int num_allocated_pages; /* Number of allocated
* pages in vpl_pagedesc */ * pages in pagedesc */
VPageDescr *vpl_pagedesc; /* Descriptions of pages */ VacPage *pagedesc; /* Descriptions of pages */
} VPageListData; } VacPageListData;
typedef VPageListData *VPageList; typedef VacPageListData *VacPageList;
typedef struct typedef struct
{ {
...@@ -111,8 +111,8 @@ typedef VTupleLinkData *VTupleLink; ...@@ -111,8 +111,8 @@ typedef VTupleLinkData *VTupleLink;
typedef struct VTupleMoveData typedef struct VTupleMoveData
{ {
ItemPointerData tid; /* tuple ID */ ItemPointerData tid; /* tuple ID */
VPageDescr vpd; /* where to move */ VacPage vacpage; /* where to move */
bool cleanVpd; /* clean vpd before using */ bool cleanVpd; /* clean vacpage before using */
} VTupleMoveData; } VTupleMoveData;
typedef VTupleMoveData *VTupleMove; typedef VTupleMoveData *VTupleMove;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment