-
- Downloads
The attached patch changes units of the some default values in
postgresql.conf. - shared_buffers = 32000kB => 32MB - temp_buffers = 8000kB => 8MB - wal_buffers = 8 => 64kB The code of initdb was a bit modified to write MB-unit values. Values greater than 8000kB are rounded out to MB. GUC_UNIT_XBLOCKS is added for wal_buffers. It is like GUC_UNIT_BLOCKS, but uses XLOG_BLCKSZ instead of BLCKSZ. Also, I cleaned up the test of GUC_UNIT_* flags in preparation to add more unit flags in less bits. ITAGAKI Takahiro
Showing
- src/backend/utils/misc/guc.c 73 additions, 31 deletionssrc/backend/utils/misc/guc.c
- src/backend/utils/misc/postgresql.conf.sample 4 additions, 4 deletionssrc/backend/utils/misc/postgresql.conf.sample
- src/bin/initdb/initdb.c 18 additions, 8 deletionssrc/bin/initdb/initdb.c
- src/include/utils/guc_tables.h 4 additions, 3 deletionssrc/include/utils/guc_tables.h
Loading
Please register or sign in to comment