Re: Modify the DECLARE CURSOR command tag depending on the scrollable flag

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Modify the DECLARE CURSOR command tag depending on the scrollable flag
Дата
Msg-id 20131127194901.GA5513@eldon.alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Modify the DECLARE CURSOR command tag depending on the scrollable flag  (Boszormenyi Zoltan <zb@cybertec.at>)
Ответы Re: Modify the DECLARE CURSOR command tag depending on the scrollable flag  (Peter Eisentraut <peter_e@gmx.net>)
Re: Modify the DECLARE CURSOR command tag depending on the scrollable flag  (Boszormenyi Zoltan <zb@cybertec.at>)
Список pgsql-hackers
Boszormenyi Zoltan escribió:

> If you consider all these:
> 
> - certain combinations of query and DECLARE stmt flags fail;
> - adding NO SCROLL is breaking backward compatibility;
> - the readahead code has to really know whether the cursor is
>   scrollable so it can behave just like the server;
> 
> then returning the SCROLL / NO SCROLL flag in the command tag is
> not a bad solution in my view. In fact, this was the only workable
> solution I could come up with to make it work reliably when neither
> SCROLL nor NO SCROLL is specified by the application.

Would it work to have a function of some sort to which you give a cursor
name and it returns whether it is scrollable or not?

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Kevin Grittner
Дата:
Сообщение: Re: Should we improve documentation on isolation levels?
Следующее
От: Noah Misch
Дата:
Сообщение: Re: Incomplete freezing when truncating a relation during vacuum