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
/*
* 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.
*/
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;