Re: Scroll cursor oddity...

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Scroll cursor oddity...
Дата
Msg-id 87hcel5qlo.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Scroll cursor oddity...  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Scroll cursor oddity...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> Mike Aubury <mike.aubury@aubit.com> writes:
>> ie - under postgresql it appears we've scrolled *past* the last row and need 
>> an additional fetch to get back to our last row..
>
> Why do you find that surprising?  It seems to me to be symmetrical with
> the case at the beginning of the table --- the cursor is initially
> positioned before the first row.  Why shouldn't there be a corresponding
> state where it's positioned after the last row?

What's implied by that but perhaps not clear is that it's easier to think of
cursors as being *between* rows rather than *on* rows. I'm not sure the
standard entirely adopts that model however. 

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's PostGIS support!


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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: [GENERAL] ANALYZE getting dead tuple count hopelessly wrong
Следующее
От: Tom Lane
Дата:
Сообщение: Lots and lots of strdup's (bug #4079)