1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-21 05:21:08 +03:00

Add psql option:

-1 or --single-transaction

Simon Riggs
This commit is contained in:
Bruce Momjian
2006-02-12 04:04:32 +00:00
parent 3884ede663
commit 0f57851e31
9 changed files with 76 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.56 2005/11/01 21:09:50 tgl Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.57 2006/02/12 04:04:32 momjian Exp $ -->
<refentry id="APP-PGRESTORE">
<refmeta>
@@ -448,6 +448,19 @@
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-1</option></term>
<term><option>--single-transaction</option></term>
<listitem>
<para>
Force the restore to execute as a single transaction. Either all
SQL statements complete successfully, or no changes are applied. This
option also forces --exit-on-error.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>

View File

@@ -1,5 +1,5 @@
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.158 2006/02/12 02:54:30 momjian Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.159 2006/02/12 04:04:32 momjian Exp $
PostgreSQL documentation
-->
@@ -463,6 +463,18 @@ PostgreSQL documentation
</listitem>
</varlistentry>
<varlistentry>
<term><option>-1</option></term>
<term><option>--single-transaction</option></term>
<listitem>
<para>
When psql executes a script with the -f option, this additional option
will force the script to execute as a single transaction. Either all
SQL statements complete successfully, or no changes are applied.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-?</></term>
<term><option>--help</></term>