-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Optionally guarantee uniqueness of crdb_internal_mvcc_timestamps #62928
Description
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