Skip to content

Commit 947456a

Browse files
Initialize work_mem using current guc.c default.
Do the same for the maintenance_work_mem global variable. Oversight in commit 848ae33, which increased the previous defaults for work_mem and maintenance_work_mem by 4X.
1 parent e25d462 commit 947456a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/init/globals.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ int IntervalStyle = INTSTYLE_POSTGRES;
118118

119119
bool enableFsync = true;
120120
bool allowSystemTableMods = false;
121-
int work_mem = 1024;
122-
int maintenance_work_mem = 16384;
121+
int work_mem = 4096;
122+
int maintenance_work_mem = 65536;
123123
int max_parallel_maintenance_workers = 2;
124124

125125
/*

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