-
+
- 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.
+ Execute the restore as a single transaction (that is, wrap the
+ emitted commands in BEGIN>/COMMIT>). This
+ ensures that either all the commands complete successfully, or no
+ changes are applied. This option implies
+
- 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.
+ When
psql executes a script with the
+
+ BEGIN>/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. (However, if the
+ script itself uses BEGIN> or COMMIT>, this
+ option will not have the desired effect!)