Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ucOvf-00CWNM-Sl for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Jul 2025 13:45:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ucOvc-002vML-Vu for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Jul 2025 13:45:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ucOvc-002vMC-JS for pgsql-bugs@lists.postgresql.org; Thu, 17 Jul 2025 13:45:41 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ucOvb-007lcn-1C for pgsql-bugs@lists.postgresql.org; Thu, 17 Jul 2025 13:45:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 56HDjYwk1400899; Thu, 17 Jul 2025 09:45:34 -0400 From: Tom Lane To: =?utf-8?Q?=C3=81lvaro?= Herrera cc: Michael Paquier , exclusion@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18984: Empty prepared statement from psql \parse triggers assert in PortalRunMulti In-reply-to: <202507171203.y6yp2n25fk6f@alvherre.pgsql> References: <202507171203.y6yp2n25fk6f@alvherre.pgsql> Comments: In-reply-to =?utf-8?Q?=C3=81lvaro?= Herrera message dated "Thu, 17 Jul 2025 14:03:11 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1400897.1752759934.1@sss.pgh.pa.us> Date: Thu, 17 Jul 2025 09:45:34 -0400 Message-ID: <1400898.1752759934@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =?utf-8?Q?=C3=81lvaro?= Herrera writes: > I've been wondering what does the "a default command tag" mean there. > I couldn't find a reference for a command tag being default. Would it > work to say "... and the portal has acquired a command tag [during > execution above?], ..." ? I think that where the Portal gets a tag is in PortalDefineQuery, and that's normally set as a result of parsing. The code earlier in PortalRunMulti is meant to supply run-time-determined tags, such as INSERT/UPDATE/DELETE with a row count. I guess if you hold your head at the right angle, the case we're considering now is a run-time-determined tag for the outer EXECUTE. regards, tom lane