Re: CommandStatus from insert returning when using a portal. - Mailing list pgsql-hackers

From Dave Cramer
Subject Re: CommandStatus from insert returning when using a portal.
Date
Msg-id CADK3HH+OEoyn+hj3TJbpHz5jgVKd92rJBD5fB_DAHzEizj+zLQ@mail.gmail.com
Whole thread Raw
In response to Re: CommandStatus from insert returning when using a portal.  (chap@anastigmatix.net)
List pgsql-hackers



On Fri, 14 Jul 2023 at 13:39, <chap@anastigmatix.net> wrote:
On 2023-07-14 12:58, Dave Cramer wrote:
> See attached pcap file

So if the fetch count is zero and no portal is needed,
or if the fetch count exceeds the row count and the command
completion follows directly with no suspension of the portal, then
it comes with the correct count, but if the portal gets suspended,
then the later command completion reports a zero count?


Seems so, yes.

Dave

pgsql-hackers by date:

Previous
From: chap@anastigmatix.net
Date:
Subject: Re: CommandStatus from insert returning when using a portal.
Next
From: Laurenz Albe
Date:
Subject: Re: PG 16 draft release notes ready