Skip to content

Optionally guarantee uniqueness of crdb_internal_mvcc_timestamps #62928

@dain

Description

@dain

Is your feature request related to a problem? Please describe.
crdb_internal_mvcc_timestamps can be used for building audit history and change data capture systems. Unfortunately crdb_internal_mvcc_timestamps is only unique for "causally dependent transactions” so such a system can not determine if two changes are the same or different transactions.

Describe the solution you'd like
Have a way to guarantee that causally dependent transactions is unique.

Describe alternatives you've considered
There could be another system column to establish uniqueness of the transaction commit. An ordering could still be established with crdb_internal_mvcc_timestamps and the new system column could be used to disambiguate transaction collisions.

Jira issue: CRDB-6210

Epic CRDB-60946

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)O-communityOriginated from the communityT-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions