From 487b757b7a0b560cbb612164a66888cd5421e124 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 9 Aug 2005 04:50:44 +0000 Subject: [PATCH] Clarify wal_sync_method options in documentation. --- doc/src/sgml/runtime.sgml | 39 +++++++++++++++++++++++++------ src/interfaces/libpq/fe-connect.c | 4 ++-- 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 91071ddc4e..299fc28a7d 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -1724,13 +1724,38 @@ SET ENABLE_SEQSCAN TO OFF; Method used for forcing WAL updates out to disk. Possible - values are - fsync (call fsync() at each commit), - fdatasync (call fdatasync() at each commit), - fsync_writethrough (force write-through of any disk write cache), - open_sync (write WAL files with open() option O_SYNC), and - open_datasync (write WAL files with open() option O_DSYNC). + values are: + + + + + open_datasync (write WAL files with open() option O_DSYNC) + + + + + fdatasync (call fdatasync() at each commit), + + + + + fsync (call fsync() at each commit) + + + + + open_sync (write WAL files with open() option O_SYNC) + + + + + fsync_writethrough (force write-through of any disk write cache) + + + + Not all of these choices are available on all platforms. + The top-most supported option is used as the default. If fsync is off then this setting is irrelevant. This option can only be set at server start or in the postgresql.conf file. diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 4da59226b7..869cad6c66 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -1,4 +1,4 @@ -/*------------------------------------------------------------------------- +conninfo_parse/*------------------------------------------------------------------------- * * fe-connect.c * functions related to setting up a connection to the backend @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.314 2005/07/13 15:25:55 tgl Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.315 2005/08/09 04:50:44 momjian Exp $ * *------------------------------------------------------------------------- */