Skip to content

Commit 770d078

Browse files
committed
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.
1 parent 2b67dc5 commit 770d078

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/include/commands/vacuum.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: vacuum.h,v 1.23 1999/08/01 04:54:25 tgl Exp $
9+
* $Id: vacuum.h,v 1.24 1999/08/25 12:18:31 ishii Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -46,6 +46,7 @@ typedef struct VPageListData
4646
{
4747
int vpl_empty_end_pages; /* Number of "empty" end-pages */
4848
int vpl_num_pages; /* Number of pages in vpl_pagedesc */
49+
int vpl_num_allocated_pages; /* Number of allocated pages in vpl_pagedesc */
4950
VPageDescr *vpl_pagedesc; /* Descriptions of pages */
5051
} VPageListData;
5152

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy