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
f75d6a1b
Commit
f75d6a1b
authored
Oct 19, 2010
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mention of using tools/fsync to test fsync methods. Restructure
recent wal_sync_method doc paragraph to be clearer.
parent
604ab081
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+6
-6
doc/src/sgml/wal.sgml
doc/src/sgml/wal.sgml
+7
-5
No files found.
doc/src/sgml/config.sgml
View file @
f75d6a1b
...
...
@@ -1569,13 +1569,13 @@ SET ENABLE_SEQSCAN TO OFF;
</itemizedlist>
<para>
Not all of these choices are available on all platforms.
The default is the first method in the above list that is supported
by the platform. The default is not necessarily best; it may be
necessary to change this setting, or other aspects of your system
configuration, in order to create a crash-safe configuration, as
discussed in <xref linkend="wal-reliability">, or to achieve best
performance.
The <literal>open_</>* options also use <literal>O_DIRECT</> if available.
The default is the first method in the above list that is supported
by the platform. The default is not necessarily ideal; it might be
necessary to change this setting or other aspects of your system
configuration in order to create a crash-safe configuration or
achieve optimal performance.
These aspects are discussed in <xref linkend="wal-reliability">.
The utility <filename>src/tools/fsync</> in the PostgreSQL source tree
can do performance testing of various fsync methods.
This parameter can only be set in the <filename>postgresql.conf</>
...
...
doc/src/sgml/wal.sgml
View file @
f75d6a1b
...
...
@@ -530,11 +530,13 @@
<para>
The <xref linkend="guc-wal-sync-method"> parameter determines how
<productname>PostgreSQL</productname> will ask the kernel to force
<acronym>WAL</acronym> updates out to disk.
With the exception of <literal>fsync_writethrough</>, which can sometimes
force a flush of the disk cache even when other options do not do so,
all the options should be the same in terms of reliability.
However, it's quite platform-specific which one will be the fastest.
<acronym>WAL</acronym> updates out to disk.
All the options should be the same in terms of reliability, with
the exception of <literal>fsync_writethrough</>, which can sometimes
force a flush of the disk cache even when other options do not do so.
However, it's quite platform-specific which one will be the fastest;
you can test option speeds using the utility <filename>src/tools/fsync</>
in the PostgreSQL source tree.
Note that this parameter is irrelevant if <varname>fsync</varname>
has been turned off.
</para>
...
...
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