Re: Protocol question regarding Portal vs Cursor

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Protocol question regarding Portal vs Cursor
Дата
Msg-id CADK3HHJ0imdGVe877XfGD7dpCNouvHNX9fcOa6Omet5ErEqpqg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Protocol question regarding Portal vs Cursor  (Tatsuo Ishii <ishii@postgresql.org>)
Список pgsql-hackers

On Sat, 27 Jul 2024 at 19:06, Tatsuo Ishii <ishii@postgresql.org> wrote:
> Yes, sorry, I should have said one can not create a with hold portal using
> the BIND command

Ok.

It would be possible to add a new parameter to the BIND command to
create such a portal. But it needs some changes to the existing
protocol definition and requires protocol version up, which is a major
pain.

I'm trying to add WITH HOLD to the JDBC driver and currently I would have 
1) rewrite the query
2) issue a new query ... declare .. and bind variables to that statement
3) execute fetch

vs 

1) bind variables to the statement
2) execute fetch

The second can be done much lower in the code. 

However as you mentioned this would require a new protocol version which is unlikely to happen.

Dave

В списке pgsql-hackers по дате отправления: