Skip to content

Add support for PostgreSQL transaction command aliases and ROLLBACK AND CHAIN #5152

@rahim-kanji

Description

@rahim-kanji

Description

ProxySQL currently supports standard PostgreSQL transaction commands (BEGIN, COMMIT, ROLLBACK, SAVEPOINT, etc.), but PostgreSQL also defines several aliases that should be recognized as equivalent.

Transaction command aliases to add

  • START TRANSACTION → same as BEGIN
  • END → same as COMMIT
  • ABORT → same as ROLLBACK

Additional handling

Add support for ROLLBACK AND CHAIN, which rolls back the current transaction and immediately starts a new one with the same characteristics.
ROLLBACK AND NO CHAIN (or plain ROLLBACK) should just end the current transaction as usual.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions