cockroachdb / cockroachdb/cockroach

sql,plpgsql: implement AND CHAIN syntax for COMMIT and ROLLBACK

Open
#119,646 2 comments 0 reactions 0 assignees View on GitHub
A-sql-executor A-sql-pgcompat A-sql-plpgsql A-sql-routine C-enhancement T-sql-queries
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

PL/pgSQL COMMIT and ROLLBACK statements start the new transaction using the session defaults. Postgres has `COMMIT AND CHAIN` and `ROLLBACK AND CHAIN`, which cause the new transaction to have the same settings as the previous one. This issue tracks adding support for this syntax.

Note: ROLLBACK AND CHAIN also is a regular SQL statement in Postgres, not just PL/pgSQL.

Jira issue: CRDB-36216

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.