]> granicus.if.org Git - postgresql/commitdiff
Add new vpl_num_allocated_pages member to VPageListData.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 25 Aug 1999 12:18:31 +0000 (12:18 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 25 Aug 1999 12:18:31 +0000 (12:18 +0000)
It will keep track the number of pages allocated so that
vacuum could allocate twice of the previous allocation.
This will greatly reduce the total memory consumption of
vacuum.

src/include/commands/vacuum.h

index 59a7fe4a5063e4e82e7a0ee8c854b4f4238b5cc1..860491797150514732aa4a3142f661f85b9d32ae 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: vacuum.h,v 1.23 1999/08/01 04:54:25 tgl Exp $
+ * $Id: vacuum.h,v 1.24 1999/08/25 12:18:31 ishii Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -46,6 +46,7 @@ typedef struct VPageListData
 {
        int                     vpl_empty_end_pages;    /* Number of "empty" end-pages */
        int                     vpl_num_pages;  /* Number of pages in vpl_pagedesc */
+       int                     vpl_num_allocated_pages;        /* Number of allocated pages in vpl_pagedesc */
        VPageDescr *vpl_pagedesc;       /* Descriptions of pages */
 } VPageListData;