pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Bring some clarity to the defaults for the xxx_flush_after param
2+ messages / 1 participants
[nested] [flat]

* pgsql: Bring some clarity to the defaults for the xxx_flush_after param
@ 2016-11-25 23:36 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-11-25 23:36 UTC (permalink / raw)
  To: pgsql-committers

Bring some clarity to the defaults for the xxx_flush_after parameters.

Instead of confusingly stating platform-dependent defaults for these
parameters in the comments in postgresql.conf.sample (with the main
entry being a lie on Linux), teach initdb to install the correct
platform-dependent value in postgresql.conf, similarly to the way
we handle other platform-dependent defaults.  This won't do anything
for existing 9.6 installations, but since it's effectively only a
documentation improvement, that seems OK.

Since this requires initdb to have access to the default values,
move the #define's for those to pg_config_manual.h; the original
placement in bufmgr.h is unworkable because that file can't be
included by frontend programs.

Adjust the default value for wal_writer_flush_after so that it is 1MB
regardless of XLOG_BLCKSZ, conforming to what is stated in both the
SGML docs and postgresql.conf.  (We could alternatively make it scale
with XLOG_BLCKSZ, but I'm not sure I see the point.)

Copy-edit related SGML documentation.

Fabien Coelho and Tom Lane, per a gripe from Tomas Vondra.

Discussion: <30ebc6e3-8358-09cf-44a8-578252938424@2ndquadrant.com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/dbdfd114f34443f1e4ad16ce2721f9817d3b3d80

Modified Files
--------------
doc/src/sgml/config.sgml                      | 33 ++++++++++++++-------------
src/backend/access/transam/xlog.c             |  2 +-
src/backend/utils/misc/guc.c                  |  8 +++----
src/backend/utils/misc/postgresql.conf.sample | 10 ++++----
src/bin/initdb/initdb.c                       | 25 ++++++++++++++++++--
src/include/pg_config_manual.h                | 18 +++++++++++++++
src/include/storage/bufmgr.h                  | 11 ---------
7 files changed, 66 insertions(+), 41 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Bring some clarity to the defaults for the xxx_flush_after param
@ 2016-11-25 23:36 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-11-25 23:36 UTC (permalink / raw)
  To: pgsql-committers

Bring some clarity to the defaults for the xxx_flush_after parameters.

Instead of confusingly stating platform-dependent defaults for these
parameters in the comments in postgresql.conf.sample (with the main
entry being a lie on Linux), teach initdb to install the correct
platform-dependent value in postgresql.conf, similarly to the way
we handle other platform-dependent defaults.  This won't do anything
for existing 9.6 installations, but since it's effectively only a
documentation improvement, that seems OK.

Since this requires initdb to have access to the default values,
move the #define's for those to pg_config_manual.h; the original
placement in bufmgr.h is unworkable because that file can't be
included by frontend programs.

Adjust the default value for wal_writer_flush_after so that it is 1MB
regardless of XLOG_BLCKSZ, conforming to what is stated in both the
SGML docs and postgresql.conf.  (We could alternatively make it scale
with XLOG_BLCKSZ, but I'm not sure I see the point.)

Copy-edit related SGML documentation.

Fabien Coelho and Tom Lane, per a gripe from Tomas Vondra.

Discussion: <30ebc6e3-8358-09cf-44a8-578252938424@2ndquadrant.com>

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/255bcd27f635a1b9682e7e0dfd348b0f8b268df1

Modified Files
--------------
doc/src/sgml/config.sgml                      | 33 ++++++++++++++-------------
src/backend/access/transam/xlog.c             |  2 +-
src/backend/utils/misc/guc.c                  |  8 +++----
src/backend/utils/misc/postgresql.conf.sample | 12 ++++------
src/bin/initdb/initdb.c                       | 21 +++++++++++++++++
src/include/pg_config_manual.h                | 18 +++++++++++++++
src/include/storage/bufmgr.h                  | 11 ---------
7 files changed, 65 insertions(+), 40 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-11-25 23:36 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-11-25 23:36 pgsql: Bring some clarity to the defaults for the xxx_flush_after param Tom Lane <tgl@sss.pgh.pa.us>
2016-11-25 23:36 pgsql: Bring some clarity to the defaults for the xxx_flush_after param Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox