diff options
author | Tom Lane | 2008-07-20 18:43:30 +0000 |
---|---|---|
committer | Tom Lane | 2008-07-20 18:43:30 +0000 |
commit | 673a30fbb2b665aac9a5f660986be73aab8fc59a (patch) | |
tree | f38d006f5ec24beec9883fb49096480c7bbe6b07 /doc/src | |
parent | b133ceb77d0c5429cce5d6adcd7438560965ee12 (diff) |
Add a pg_dump option --lock-wait-timeout to allow failing the dump if unable
to acquire shared table locks within a specified amount of time.
David Gould
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_dump.sgml | 82 |
1 files changed, 49 insertions, 33 deletions
diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml index e7889f04625..c8aae47b6f0 100644 --- a/doc/src/sgml/ref/pg_dump.sgml +++ b/doc/src/sgml/ref/pg_dump.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.102 2008/04/13 03:49:21 tgl Exp $ +$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.103 2008/07/20 18:43:30 tgl Exp $ PostgreSQL documentation --> @@ -416,23 +416,6 @@ PostgreSQL documentation </varlistentry> <varlistentry> - <term><option>--no-tablespaces</option></term> - <listitem> - <para> - Do not output commands to select tablespaces. - With this option, all objects will be created in whichever - tablespace is the default during restore. - </para> - - <para> - This option is only meaningful for the plain-text format. For - the archive formats, you can specify the option when you - call <command>pg_restore</command>. - </para> - </listitem> - </varlistentry> - - <varlistentry> <term><option>-s</option></term> <term><option>--schema-only</option></term> <listitem> @@ -551,14 +534,26 @@ PostgreSQL documentation </varlistentry> <varlistentry> + <term><option>-Z <replaceable class="parameter">0..9</replaceable></option></term> + <term><option>--compress=<replaceable class="parameter">0..9</replaceable></option></term> + <listitem> + <para> + Specify the compression level to use in archive formats that + support compression. (Currently only the custom archive + format supports compression.) + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><option>--disable-dollar-quoting</></term> <listitem> <para> This option disables the use of dollar quoting for function bodies, and forces them to be quoted using SQL standard string syntax. </para> - </listitem> - </varlistentry> + </listitem> + </varlistentry> <varlistentry> <term><option>--disable-triggers</></term> @@ -588,6 +583,39 @@ PostgreSQL documentation </varlistentry> <varlistentry> + <term><option>--lock-wait-timeout=<replaceable class="parameter">timeout</replaceable></option></term> + <listitem> + <para> + Do not wait forever to acquire shared table locks at the beginning of + the dump. Instead fail if unable to lock a table within the specified + <replaceable class="parameter">timeout</>. The timeout may be + specified in any of the formats accepted by <command>SET + statement_timeout</>. (Allowed values vary depending on the server + version you are dumping from, but an integer number of milliseconds + is accepted by all versions since 7.3. This option is ignored when + dumping from a pre-7.3 server.) + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term><option>--no-tablespaces</option></term> + <listitem> + <para> + Do not output commands to select tablespaces. + With this option, all objects will be created in whichever + tablespace is the default during restore. + </para> + + <para> + This option is only meaningful for the plain-text format. For + the archive formats, you can specify the option when you + call <command>pg_restore</command>. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><option>--use-set-session-authorization</></term> <listitem> <para> @@ -601,18 +629,6 @@ PostgreSQL documentation </para> </listitem> </varlistentry> - - <varlistentry> - <term><option>-Z <replaceable class="parameter">0..9</replaceable></option></term> - <term><option>--compress=<replaceable class="parameter">0..9</replaceable></option></term> - <listitem> - <para> - Specify the compression level to use in archive formats that - support compression. (Currently only the custom archive - format supports compression.) - </para> - </listitem> - </varlistentry> </variablelist> </para> @@ -663,7 +679,7 @@ PostgreSQL documentation <listitem> <para> Force <application>pg_dump</application> to prompt for a - password before connecting to a database. + password before connecting to a database. </para> <para> |