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+i=eByai0Z6UhCg9Hrd7nrBOgdh9m9bKjMVzXAjOH8Cg@mail.gmail.com
Whole thread Raw
In response to Re: CommandStatus from insert returning when using a portal.  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: CommandStatus from insert returning when using a portal.
List pgsql-hackers




On Thu, 13 Jul 2023 at 10:24, David G. Johnston <david.g.johnston@gmail.com> wrote:
On Thursday, July 13, 2023, Dave Cramer <davecramer@gmail.com> wrote:

Any comment on why the CommandComplete is incorrect ?
It returns INSERT 0 0  if a cursor is used

 Looking at DECLARE it is surprising that what you describe is even possible.  Can you share a psql reproducer?

apologies, we are using a portal, not a cursor. 
Dave Cramer

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: WAL Insertion Lock Improvements
Next
From: Japin Li
Date:
Subject: Re: Add hint message for check_log_destination()