|
1 | 1 | <!-- |
2 | | -$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.159 2006/02/12 04:04:32 momjian Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.160 2006/02/13 21:29:08 tgl Exp $ |
3 | 3 | PostgreSQL documentation |
4 | 4 | --> |
5 | 5 |
|
@@ -468,9 +468,13 @@ PostgreSQL documentation |
468 | 468 | <term><option>--single-transaction</option></term> |
469 | 469 | <listitem> |
470 | 470 | <para> |
471 | | - When psql executes a script with the -f option, this additional option |
472 | | - will force the script to execute as a single transaction. Either all |
473 | | - SQL statements complete successfully, or no changes are applied. |
| 471 | + When <application>psql</application> executes a script with the |
| 472 | + <option>-f</> option, adding this option wraps |
| 473 | + <command>BEGIN</>/<command>COMMIT</> around the script to execute it |
| 474 | + as a single transaction. This ensures that either all the commands |
| 475 | + complete successfully, or no changes are applied. (However, if the |
| 476 | + script itself uses <command>BEGIN</> or <command>COMMIT</>, this |
| 477 | + option will not have the desired effect!) |
474 | 478 | </para> |
475 | 479 | </listitem> |
476 | 480 | </varlistentry> |
|