From ea10781faec8470f7f8e2599beedbc9225046274 Mon Sep 17 00:00:00 2001 From: Ruslan Talpa Date: Thu, 24 Jul 2025 11:30:19 +0300 Subject: [PATCH] SendDeltasToControlPlane when any key is non null --- pgxn/neon/neon_ddl_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pgxn/neon/neon_ddl_handler.c b/pgxn/neon/neon_ddl_handler.c index 7c18c016bb..42a2bd7bf2 100644 --- a/pgxn/neon/neon_ddl_handler.c +++ b/pgxn/neon/neon_ddl_handler.c @@ -269,7 +269,7 @@ SendDeltasToControlPlane() { static CURL *handle = NULL; - if (!RootTable.db_table && !RootTable.role_table) + if (!RootTable.db_table && !RootTable.role_table && RootTable.other_ddl_count == 0) return; if (!ConsoleURL) { @@ -1309,6 +1309,7 @@ NeonProcessUtility( QueryCompletion *qc) { Node *parseTree = pstmt->utilityStmt; + bool isCompleteQuery = (context != PROCESS_UTILITY_SUBCOMMAND); /* * The process utility hook for CREATE EVENT TRIGGER is its own @@ -1404,7 +1405,6 @@ NeonProcessUtility( // Grants (object type dependent) case T_GrantStmt: // GRANT/REVOKE (if object supports event triggers) case T_GrantRoleStmt: // GRANT/REVOKE role membership - bool isCompleteQuery = (context != PROCESS_UTILITY_SUBCOMMAND); if (isCompleteQuery) { HandleOtherDDLCommand();