Skip to content

Commit 98f2cb7

Browse files
committed
The fix to run ALTER NODE while a coordinator is out.
Masataka Saito did the analysis.
1 parent e80ae7b commit 98f2cb7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/backend/tcop/utility.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2465,6 +2465,13 @@ IsStmtAllowedInLockedMode(Node *parsetree, const char *queryString)
24652465
* Otherwise system would try to acquire a shared
24662466
* advisory lock on the crashed node.
24672467
*/
2468+
case T_AlterNodeStmt: /*
2469+
* This has to be allowed so that ALTER
2470+
* can be issued to alter a node that has crashed
2471+
* and may be failed over.
2472+
* Otherwise system would try to acquire a shared
2473+
* advisory lock on the crashed node.
2474+
*/
24682475
case T_TransactionStmt:
24692476
case T_PlannedStmt:
24702477
case T_ClosePortalStmt:

0 commit comments

Comments
 (0)