cockroachdb / cockroachdb/cockroach

sql: support DEFERRABLE and INITIALLY DEFERRED syntax

Open
#158,886 1 comment 2 reactions 1 assignee Claimed by @michae2 View on GitHub
A-sql-pgcompat C-enhancement T-sql-queries
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

Postgres supports DEFERRABLE[1] and INITIALLY DEFERRED[2] syntax. For explicit transactions, deferring them to the COMMIT phase may help performance as we'd do the check in parallel. Others that have cyclical FK dependencies and rely on deferred checks to implement them will have a hard time migrating those workloads to CockroachDB.

[1] https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-PARMS-DEFERRABLE
[2] https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-PARMS-INITIALLY

Jira issue: CRDB-57541

Epic CRDB-9559

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.