diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-03-23 08:37:36 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-03-23 08:37:36 +0900 |
commit | e0090c86900877bf0911c53dcf4a30bc81d03047 (patch) | |
tree | 37713c2b23c8ef41e7965e2d3c706cb347689c3c /doc/src | |
parent | 7b084b38310cfe9c8b58cc615a81df625c771f5d (diff) | |
download | postgresql-e0090c86900877bf0911c53dcf4a30bc81d03047.tar.gz postgresql-e0090c86900877bf0911c53dcf4a30bc81d03047.zip |
Add option -N/--no-sync to pg_checksums
This is an option consistent with what pg_dump, pg_rewind and
pg_basebackup provide which is useful for leveraging the I/O effort when
testing things, not to be used in a production environment.
Author: Michael Paquier
Reviewed-by: Michael Banck, Fabien Coelho, Sergei Kornilov
Discussion: https://postgr.es/m/20181221201616.GD4974@nighthawk.caipicrew.dd-dns.de
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_checksums.sgml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/pg_checksums.sgml b/doc/src/sgml/ref/pg_checksums.sgml index 5343a8aa7e8..1f4d4ab8b44 100644 --- a/doc/src/sgml/ref/pg_checksums.sgml +++ b/doc/src/sgml/ref/pg_checksums.sgml @@ -101,6 +101,22 @@ PostgreSQL documentation </varlistentry> <varlistentry> + <term><option>-N</option></term> + <term><option>--no-sync</option></term> + <listitem> + <para> + By default, <command>pg_checksums</command> will wait for all files + to be written safely to disk. This option causes + <command>pg_checksums</command> to return without waiting, which is + faster, but means that a subsequent operating system crash can leave + the updated data folder corrupt. Generally, this option is useful + for testing but should not be used on a production installation. + This option has no effect when using <literal>--check</literal>. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><option>-v</option></term> <term><option>--verbose</option></term> <listitem> |