Initialize work_mem using current guc.c default.
authorPeter Geoghegan <pg@bowt.ie>
Thu, 2 Jul 2020 23:34:54 +0000 (16:34 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Thu, 2 Jul 2020 23:34:54 +0000 (16:34 -0700)
Do the same for the maintenance_work_mem global variable.

Oversight in commit 848ae330a49, which increased the previous defaults
for work_mem and maintenance_work_mem by 4X.

src/backend/utils/init/globals.c

index eb19644419854d075516cbd6d045fed27e24593e..74b52b713236df1622a9f5ab510ed3a6cc81651b 100644 (file)
@@ -118,8 +118,8 @@ int         IntervalStyle = INTSTYLE_POSTGRES;
 
 bool       enableFsync = true;
 bool       allowSystemTableMods = false;
-int            work_mem = 1024;
-int            maintenance_work_mem = 16384;
+int            work_mem = 4096;
+int            maintenance_work_mem = 65536;
 int            max_parallel_maintenance_workers = 2;
 
 /*