Re: BUG #18984: Empty prepared statement from psql \parse triggers assert in PortalRunMulti
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Álvaro Herrera <alvherre@kurilemu.de>
Cc: Michael Paquier <michael@paquier.xyz>, exclusion@gmail.com,
pgsql-bugs@lists.postgresql.org
Date: 2025-07-17T13:45:34Z
Lists: pgsql-bugs
=?utf-8?Q?=C3=81lvaro?= Herrera <alvherre@kurilemu.de> 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
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Minor cosmetic tweaks
- e76221bd95f0 19 (unreleased) landed
-
Simplify coding in ProcessQuery
- a27c40bfe8ab 19 (unreleased) landed
-
Remove assertion from PortalRunMulti
- e0d3f3cfb6f2 18.0 landed
- c2720ac6010a 15.14 landed
- b9a89682846f 14.19 landed
- b8926a5b4bb8 19 (unreleased) landed
- 4871c1e9cb6e 16.10 landed
- 43cd85962755 13.22 landed
- 0c466f5e0b34 17.6 landed
-
Represent command completion tags as structs
- 2f9661311b83 13.0 cited