projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
768cba8
)
Add new vpl_num_allocated_pages member to VPageListData.
author
Tatsuo Ishii
<ishii@postgresql.org>
Wed, 25 Aug 1999 11:32:52 +0000
(11:32 +0000)
committer
Tatsuo Ishii
<ishii@postgresql.org>
Wed, 25 Aug 1999 11:32:52 +0000
(11:32 +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
patch
|
blob
|
blame
|
history
diff --git
a/src/include/commands/vacuum.h
b/src/include/commands/vacuum.h
index aa6340b648d181886121e39686158c416724e2e2..d4fc66bf68117ee17e14671adc4f4ae7efb89153 100644
(file)
--- a/
src/include/commands/vacuum.h
+++ b/
src/include/commands/vacuum.h
@@
-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;