Re: Adding an extra byte to ReadyForQuery (B) to indicate HOLD cursors

Andrey Borodin <x4mmm@yandex-team.ru>

From: Andrey Borodin <x4mmm@yandex-team.ru>
To: Kirill Reshke <reshkekirill@gmail.com>
Cc: Hannu Krosing <hannuk@google.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Dave Cramer <davecramer@postgres.rocks>
Date: 2025-11-28T13:45:18Z
Lists: pgsql-hackers

> On 28 Nov 2025, at 18:28, Kirill Reshke <reshkekirill@gmail.com> wrote:
> 
> If we can inform the client that his postgresql backend has some
> session-level objects (like prepared statement, temp table, advisory
> lock or cursor), this will be very helpful.

+1.

Roman was starting discussion with very similar topic [0]. Not only drivers need this, proxies too.


Best regards, Andrey Borodin.

[0] https://www.postgresql.org/message-id/82741750755647@mail.yandex-team.ru