Re: BUG #19941: Acknowledged INSERT lost after a simple Query inside an extended-protocol batch (XX000)

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: shihao zhong <zhong950419(at)gmail(dot)com>
Cc: ibrahimthecosmic(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org, Anthonin Bonnefoy <anthonin(dot)bonnefoy(at)datadoghq(dot)com>
Subject: Re: BUG #19941: Acknowledged INSERT lost after a simple Query inside an extended-protocol batch (XX000)
Date: 2026-11-30 08:21:24
Message-ID: aw0yA-op4fpGhWl4@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sun, Nov 29, 2026 at 11:06:42PM -0500, shihao zhong wrote:
> Thanks for the clear report and the script. Since d0eb4297cc5 a Query
> or FunctionCall that arrives after an Execute runs in the implicit
> block of the pipeline. It marks the transaction as finished without
> committing it, so the Sync does nothing. The attached patch
> closes that block in finish_xact_command() for those two messages,
> which gives back the 17 behavior.

Hmm. I'm wondering if an error would not be more adapted on top of my
mind. Anthony, what's your take?
--
Michael

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Laurenz Albe 2026-11-30 10:06:32 Re: BUG #19871: JSON_TABLE evaluates each PASSING argument once per column - a named variable $v gets different valu
Previous Message Michael Paquier 2026-11-30 08:17:12 Re: BUG #19909: BRIN redo: BufferIsPinned assert in brin_xlog_insert_update() if index was dropped or truncated