Re: Planned change of ExecRestrPos API

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Planned change of ExecRestrPos API
Дата
Msg-id 690.1116192300@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Planned change of ExecRestrPos API  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> Currently, since nothing is explicitly done to the result Slot of a
> plan node when we restore its position, you might think that the Slot
> still points at the tuple that was current just before the Restore.
> You'd be wrong though, at least for seqscan and indexscan plans
> (I haven't looked yet at the other node types that support
> mark/restore).

Actually, on looking closer, only seqscans have this problem --- and
ExecSeqRestrPos is really dead code anyway at the moment.  So rather
than go through a large exercise to change the mark/restore API, I've
just added some comments about what the API actually guarantees, and
tweaked ExecSeqRestrPos to clear the output slot instead of leaving it
in a potentially inconsistent state.
        regards, tom lane


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: Best way to scan on-disk bitmaps
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [ADMIN] Permissions not removed when group dropped