Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

guc units cleanup


  • From: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
  • To: pgsql-patches(at)postgresql(dot)org
  • Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>
  • Subject: guc units cleanup
  • Date: Tue, 26 Sep 2006 12:39:19 +0900
  • Message-id: <20060926123348.527A.ITAGAKI.TAKAHIRO@oss.ntt.co.jp> <text/plain>

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.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

Attachment: guc_units.patch
Description: Binary data



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group