aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>1999-08-25 12:18:31 +0000
committerTatsuo Ishii <ishii@postgresql.org>1999-08-25 12:18:31 +0000
commit770d0786c2421ad77fcf8fb59bb64ee264a5fedd (patch)
treeb82ae9e1b79348ab0ae4e09cdb0c62bf028decb6
parent2b67dc53874029219cf7905ceab520b75204e552 (diff)
downloadpostgresql-770d0786c2421ad77fcf8fb59bb64ee264a5fedd.tar.gz
postgresql-770d0786c2421ad77fcf8fb59bb64ee264a5fedd.zip
Add new vpl_num_allocated_pages member to VPageListData.
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.
-rw-r--r--src/include/commands/vacuum.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/commands/vacuum.h b/src/include/commands/vacuum.h
index 59a7fe4a506..86049179715 100644
--- a/src/include/commands/vacuum.h
+++ b/src/include/commands/vacuum.h
@@ -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;