This is an automated email from the ASF dual-hosted git repository.
chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
The following commit(s) were added to refs/heads/cbdb-postgres-merge by this
push:
new 40f6c65e40f Release tuple lock for catalog on AlterDatabase
40f6c65e40f is described below
commit 40f6c65e40f49b51238a64b558e4c81815b0333e
Author: Jinbao Chen <[email protected]>
AuthorDate: Sat Dec 20 21:06:04 2025 +0800
Release tuple lock for catalog on AlterDatabase
---
src/backend/commands/dbcommands.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/backend/commands/dbcommands.c
b/src/backend/commands/dbcommands.c
index e2cf22c45f3..22b8d6e33e7 100644
--- a/src/backend/commands/dbcommands.c
+++ b/src/backend/commands/dbcommands.c
@@ -2599,6 +2599,8 @@ AlterDatabase(ParseState *pstate, AlterDatabaseStmt
*stmt, bool isTopLevel)
newtuple = heap_modify_tuple(tuple, RelationGetDescr(rel), new_record,
new_record_nulls, new_record_repl);
CatalogTupleUpdate(rel, &tuple->t_self, newtuple);
+ UnlockTuple(rel, &tuple->t_self, InplaceUpdateTupleLock);
+
InvokeObjectPostAlterHook(DatabaseRelationId, dboid, 0);
systable_endscan(scan);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]