mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Make psql -1 < file behave as expected.
Previously, the -1 option was silently ignored. Also, emit an error if -1 is used in a context where it won't be respected, to avoid user confusion. Original patch by Fabien COELHO, but this version is quite different from the original submission.
This commit is contained in:
@ -512,11 +512,11 @@ PostgreSQL documentation
|
||||
<term><option>--single-transaction</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
When <application>psql</application> executes a script with the
|
||||
<option>-f</> option, adding this option wraps
|
||||
<command>BEGIN</>/<command>COMMIT</> around the script to execute it
|
||||
as a single transaction. This ensures that either all the commands
|
||||
complete successfully, or no changes are applied.
|
||||
When <application>psql</application> executes a script, adding
|
||||
this option wraps <command>BEGIN</>/<command>COMMIT</> around the
|
||||
script to execute it as a single transaction. This ensures that
|
||||
either all the commands complete successfully, or no changes are
|
||||
applied.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
Reference in New Issue
Block a user