Skip to content

2025.1.2.0-b20

@fizaaluthra fizaaluthra tagged this 18 Sep 15:18
Summary:
Fix a crash that occurs when locking rows in temporary tables due to incorrect transaction xid cleanup.

Set YbSetTxnUsesTempRel() when locking rows in temporary tables, consistent with how we handle other temporary table operations. This ensures the transaction is cleanly recorded and committed.

Note: Currently, the behaviour for transactions involving both regular tables and temporary tables is not well defined in YB. However, this isn't an issue for row-level locking because we already disallow mixing YB-backed and non-YB-backed relations (such as temp tables).
Jira: DB-16633

Original commit: 29cb48b648ee48dcb934dc4ccbfcbd72e51eeeb1 / D44368

Test Plan: ./yb_build.sh release  --java-test 'org.yb.pgsql.TestPgRegressFeature'

Reviewers: #db-approvers, kramanathan

Reviewed By: kramanathan

Subscribers: yql, svc_phabricator

Differential Revision: https://phorge.dev.yugabyte.com/D46730
Assets 2
Loading