Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit770d078

Browse files
committed
Add new vpl_num_allocated_pages member to VPageListData.
It will keep track the number of pages allocated so thatvacuum could allocate twice of the previous allocation.This will greatly reduce the total memory consumption ofvacuum.
1 parent2b67dc5 commit770d078

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
intvpl_empty_end_pages;/* Number of "empty" end-pages */
4848
intvpl_num_pages;/* Number of pages in vpl_pagedesc */
49+
intvpl_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)

[8]ページ先頭

©2009-2025 Movatter.jp