Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b76fb4c

Browse files
committed
set debug_query_string for SPI
1 parent f1725c7 commit b76fb4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pglogical_apply.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,10 @@ process_remote_message(StringInfo s)
501501
MtmIndexStmt = NULL;
502502
MtmDropStmt = NULL;
503503
MtmTablespaceStmt = NULL;
504-
504+
debug_query_string = messageBody;
505505
rc = SPI_execute(messageBody, false, 0);
506+
debug_query_string = NULL;
507+
506508
SPI_finish();
507509
if (rc < 0) {
508510
MTM_ELOG(ERROR, "Failed to execute utility statement %s", messageBody);

0 commit comments

Comments
 (0)