Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Per documentation the following restrictions apply to the use of the
PENDING_COMMIT_TIMESTAMP
function,Some notable use cases affected by these restrictions include,
UPDATE t SET updated_at = PENDING_COMMMIT_TIMESTAMP(), ... WHERE updated_at = @last_updated AND ...
).PENDING_COMMIT_TIMESTAMP()
value to an indexed column with DML will prohibit subsequent writes to the same column.PENDING_COMMIT_TIMESTAMP()
. Attempting to read a table after aPENDING_COMMIT_TIMESTAMP()
has been written may be prohibited, even when the rows read do not themselves contain the pending commit timestamp values. For this reason, the documentation linked above recommends performing all commit timestamp writes at the end of a transaction.Thus, the feature request here is to reduce these restrictions to permit more use cases involving commit timestamps, particularly those use cases without straightforward work arounds.