AW: selecting from cursor

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: selecting from cursor
Дата
Msg-id 11C1E6749A55D411A9670001FA68796336835A@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: AW: selecting from cursor  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > That's gonna have to be fixed.  If you're not up for it, don't implement
> > this.  Given that cursors (are supposed to) support FETCH BACKWARDS,
> > I really don't see why they shouldn't be expected to handle ReScan...
> I thought only scrollable cursors can do that. What if cursor isn't
> scrollable? Should it error during the execution?

In PostgreSQL, all cursors are scrollable. The allowed grammar keyword is
simply ignored. I am actually not sure that this is optimal, since there
are a few very effective optimizations, that you can do if you know, that 
ReScan is not needed (like e.g. not storing the result temporarily).

Andreas


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

Предыдущее
От: Mariano Kamp
Дата:
Сообщение: Re: JDBC Support - prepared Statements?
Следующее
От: "Jean-Francois Leveque"
Дата:
Сообщение: Trigger Procedures question