# info > ABORT

---
type: CommandReference
command: ABORT
mode: man
section: 7
source: man-pages
---

## Quick Reference

- `ABORT;` — abort current transaction (equivalent to `ROLLBACK`)
- `ABORT WORK;` — same, with optional keyword
- `ABORT AND CHAIN;` — abort and start new transaction with same characteristics

## Name

ABORT — abort the current transaction

## Synopsis

shell
ABORT [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]
## Options

- `WORK`, `TRANSACTION` — optional key words, no effect
- `AND CHAIN` — if specified, immediately start a new transaction with the same characteristics as the just-finished one; otherwise, no new transaction is started
- `AND NO CHAIN` — explicitly disables chaining (default)

## Examples

Abort all changes:

shell
ABORT;
## Notes

- Use `COMMIT` to successfully terminate a transaction.
- Issuing `ABORT` outside a transaction block emits a warning and otherwise has no effect.
- This command is a PostgreSQL extension for historical reasons; `ROLLBACK` is the equivalent standard SQL command.

## See Also

- [BEGIN(7)](http://localhost/phpMan.php/man/BEGIN/7/markdown)
- [COMMIT(7)](http://localhost/phpMan.php/man/COMMIT/7/markdown)
- [ROLLBACK(7)](http://localhost/phpMan.php/man/ROLLBACK/7/markdown)