]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Minor cosmetic tweaks
authorÁlvaro Herrera <alvherre@kurilemu.de>
Fri, 30 Jan 2026 13:26:02 +0000 (14:26 +0100)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Fri, 30 Jan 2026 13:26:02 +0000 (14:26 +0100)
These changes should have been done by 2f9661311b83, but were
overlooked.  I noticed while reviewing the code for commit b8926a5b4bb8.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/18984-0f4778a6599ac3ae@postgresql.org

src/backend/tcop/postgres.c
src/backend/utils/mmgr/portalmem.c

index e54bf1e760f5029bb02967a6178f3b5a0368ca71..b4a8d2f3a1c0284fa8adf4919bce80e0d1786081 100644 (file)
@@ -1117,7 +1117,7 @@ exec_simple_query(const char *query_string)
 
                /*
                 * Get the command name for use in status display (it also becomes the
-                * default completion tag, down inside PortalRun).  Set ps_status and
+                * default completion tag, in PortalDefineQuery).  Set ps_status and
                 * do any special start-of-SQL-command processing needed by the
                 * destination.
                 */
index 4fa4d432021103edbecb25687f93e7e92dd8260b..c1a53e658cb292b747f0ac90ebdba6ecba8604e4 100644 (file)
@@ -294,9 +294,8 @@ PortalDefineQuery(Portal portal,
 
        portal->prepStmtName = prepStmtName;
        portal->sourceText = sourceText;
-       portal->qc.commandTag = commandTag;
-       portal->qc.nprocessed = 0;
        portal->commandTag = commandTag;
+       SetQueryCompletion(&portal->qc, commandTag, 0);
        portal->stmts = stmts;
        portal->cplan = cplan;
        portal->status = PORTAL_DEFINED;