ABORT <refpurpose>abort the current transaction</refpurpose> — 現在のトランザクションをアボートする
ABORT [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]
<command>ABORT</command> rolls back the current transaction and causes
all the updates made by the transaction to be discarded.
This command is identical
in behavior to the standard <acronym>SQL</acronym> command
<link linkend="sql-rollback"><command>ROLLBACK</command></link>,
and is present only for historical reasons.
ABORTは現在のトランザクションをロールバックし、そのトランザクションで行われた全ての更新を廃棄します。
このコマンドの動作は標準SQLのROLLBACKコマンドと同一であり、歴史的な理由のためだけに存在しています。
WORKTRANSACTIONOptional key words. They have no effect. 省略可能なキーワードです。何も効果がありません。
AND CHAIN
If <literal>AND CHAIN</literal> is specified, a new transaction is
immediately started with the same transaction characteristics (see <link
linkend="sql-set-transaction"><command>SET TRANSACTION</command></link>) as the just finished one. Otherwise,
no new transaction is started.
AND CHAINが指定されていれば、新しいトランザクションは、直前に終了したものと同じトランザクションの特性(SET TRANSACTIONを参照してください)で即時に開始されます。
そうでなければ、新しいトランザクションは開始されません。
Use <link linkend="sql-commit"><command>COMMIT</command></link> to
successfully terminate a transaction.
トランザクションを正常に終了させる場合はCOMMITを使用してください。
Issuing <command>ABORT</command> outside of a transaction block
emits a warning and otherwise has no effect.
トランザクションブロックの外部でABORTを発行すると警告が発生しますが、それ以外は何の効果もありません。
To abort all changes: 全ての変更をアボートします。
ABORT;
This command is a <productname>PostgreSQL</productname> extension
present for historical reasons. <command>ROLLBACK</command> is the
equivalent standard SQL command.
このコマンドはPostgreSQLの拡張で、歴史的な理由で存在します。
ROLLBACKは、このコマンドと等価な標準SQLコマンドです。