pgsql: Remove assertion from PortalRunMulti
pgsql: Remove assertion from PortalRunMulti
От:
Álvaro Herrera <alvherre@kurilemu.de>
Дата:
Remove assertion from PortalRunMulti We have an assertion to ensure that a command tag has been assigned by the time we're done executing, but if we happen to execute a command with no queries, the assertion would fail. Per discussion, rather than contort things to get a tag assigned, just remove the assertion. Oversight in 2f9661311b83. That commit also retained a comment that explained logic that had been adjacent to it but diffused into various places, leaving none apt to keep part of the comment. Remove that part, and rewrite what remains for extra clarity. Bug: #18984 Backpatch-through: 13 Reported-by: Aleksander Alekseev Reviewed-by: Tom Lane Reviewed-by: Michaël Paquier Discussion: https://postgr.es/m/18984-0f4778a6599ac3ae@postgresql.org Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0c466f5e0b34bb9ddc53a422e9872b726f5f9620 Modified Files -------------- src/backend/tcop/pquery.c | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-)
Re: pgsql: Remove assertion from PortalRunMulti
От:
Aleksander Alekseev <aleksander@tigerdata.com>
Дата:
Hi Avaro, > Reported-by: Aleksander Alekseev I didn't report this issue, it was done by Alexander Lakhin.
Re: pgsql: Remove assertion from PortalRunMulti
От:
Álvaro Herrera <alvherre@kurilemu.de>
Дата:
Hello, On 2025-Jul-17, Aleksander Alekseev wrote: > > Reported-by: Aleksander Alekseev > > I didn't report this issue, it was done by Alexander Lakhin. Uh, you're right, my mistake -- apologies. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "How strange it is to find the words "Perl" and "saner" in such close proximity, with no apparent sense of irony. I doubt that Larry himself could have managed it." (ncm, http://lwn.net/Articles/174769/)