Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ea6a2d8d
Commit
ea6a2d8d
authored
Apr 14, 2012
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename synchronous_commit='write' to 'remote_write'.
Fujii Masao, per discussion on pgsql-hackers
parent
4a2d7ad7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+2
-2
doc/src/sgml/high-availability.sgml
doc/src/sgml/high-availability.sgml
+2
-2
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+2
-2
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/misc/postgresql.conf.sample
+2
-1
No files found.
doc/src/sgml/config.sgml
View file @
ea6a2d8d
...
...
@@ -1626,7 +1626,7 @@ SET ENABLE_SEQSCAN TO OFF;
<para>
Specifies whether transaction commit will wait for WAL records
to be written to disk before the command returns a <quote>success</>
indication to the client. Valid values are <literal>on</>, <literal>write</>,
indication to the client. Valid values are <literal>on</>, <literal>
remote_
write</>,
<literal>local</>, and <literal>off</>. The default, and safe, value
is <literal>on</>. When <literal>off</>, there can be a delay between
when success is reported to the client and when the transaction is
...
...
@@ -1646,7 +1646,7 @@ SET ENABLE_SEQSCAN TO OFF;
If <xref linkend="guc-synchronous-standby-names"> is set, this
parameter also controls whether or not transaction commit will wait
for the transaction's WAL records to be flushed to disk and replicated
to the standby server. When <literal>write</>, the commit wait will
to the standby server. When <literal>
remote_
write</>, the commit wait will
last until a reply from the current synchronous standby indicates
it has received the commit record of the transaction to memory.
Normally this causes no data loss at the time of failover. However,
...
...
doc/src/sgml/high-availability.sgml
View file @
ea6a2d8d
...
...
@@ -1011,7 +1011,7 @@ primary_conninfo = 'host=192.168.1.50 port=5432 user=foo password=foopass'
</para>
<para>
Setting <varname>synchronous_commit</> to <literal>write</> will
Setting <varname>synchronous_commit</> to <literal>
remote_
write</> will
cause each commit to wait for confirmation that the standby has received
the commit record to memory. This provides a lower level of durability
than <literal>on</> does. However, it's a practically useful setting
...
...
@@ -1075,7 +1075,7 @@ primary_conninfo = 'host=192.168.1.50 port=5432 user=foo password=foopass'
<para>
Commits made when <varname>synchronous_commit</> is set to <literal>on</>
or <literal>write</> will wait until the synchronous standby responds. The response
or <literal>
remote_
write</> will wait until the synchronous standby responds. The response
may never occur if the last, or only, standby should crash.
</para>
...
...
src/backend/utils/misc/guc.c
View file @
ea6a2d8d
...
...
@@ -370,12 +370,12 @@ static const struct config_enum_entry constraint_exclusion_options[] = {
};
/*
* Although only "on", "off", "write", and "local" are documented, we
* Although only "on", "off", "
remote_
write", and "local" are documented, we
* accept all the likely variants of "on" and "off".
*/
static
const
struct
config_enum_entry
synchronous_commit_options
[]
=
{
{
"local"
,
SYNCHRONOUS_COMMIT_LOCAL_FLUSH
,
false
},
{
"write"
,
SYNCHRONOUS_COMMIT_REMOTE_WRITE
,
false
},
{
"
remote_
write"
,
SYNCHRONOUS_COMMIT_REMOTE_WRITE
,
false
},
{
"on"
,
SYNCHRONOUS_COMMIT_ON
,
false
},
{
"off"
,
SYNCHRONOUS_COMMIT_OFF
,
false
},
{
"true"
,
SYNCHRONOUS_COMMIT_ON
,
true
},
...
...
src/backend/utils/misc/postgresql.conf.sample
View file @
ea6a2d8d
...
...
@@ -162,7 +162,8 @@
#wal_level = minimal # minimal, archive, or hot_standby
# (change requires restart)
#fsync = on # turns forced synchronization on or off
#synchronous_commit = on # synchronization level; on, off, or local
#synchronous_commit = on # synchronization level;
# off, local, remote_write, or on
#wal_sync_method = fsync # the default is the first option
# supported by the operating system:
# open_datasync
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment