Skip to content

Commit 6475e66

Browse files
Fix misuse of PqMsg_Close.
EndCommand() and EndReplicationCommand() should use PqMsg_CommandComplete instead. Oversight in commit f4b54e1. Reported-by: Pavel Stehule, Tatsuo Ishii Author: Pavel Stehule Reviewed-by: Aleksander Alekseev, Michael Paquier Discussion: https://postgr.es/m/CAFj8pRAMDCJXjnwiCkCB1yO1f7NPggFY8PwwAJDnugu-Z2G-Cg%40mail.gmail.com
1 parent 3c66264 commit 6475e66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/tcop/dest.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ EndCommand(const QueryCompletion *qc, CommandDest dest, bool force_undecorated_o
176176

177177
len = BuildQueryCompletionString(completionTag, qc,
178178
force_undecorated_output);
179-
pq_putmessage(PqMsg_Close, completionTag, len + 1);
179+
pq_putmessage(PqMsg_CommandComplete, completionTag, len + 1);
180180

181181
case DestNone:
182182
case DestDebug:
@@ -200,7 +200,7 @@ EndCommand(const QueryCompletion *qc, CommandDest dest, bool force_undecorated_o
200200
void
201201
EndReplicationCommand(const char *commandTag)
202202
{
203-
pq_putmessage(PqMsg_Close, commandTag, strlen(commandTag) + 1);
203+
pq_putmessage(PqMsg_CommandComplete, commandTag, strlen(commandTag) + 1);
204204
}
205205

206206
/* ----------------

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy