Re: Synchronized scans

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Synchronized scans
Дата
Msg-id 1181064858.7660.111.camel@dogma.v10.wvs
обсуждение исходный текст
Ответ на Re: Synchronized scans  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Synchronized scans
Список pgsql-patches
On Mon, 2007-06-04 at 21:39 -0400, Tom Lane wrote:
> idea of deleting the hint.  But if we could change the hint behavior to
> say "start reading here", successive short LIMITed reads would all start
> reading from the same point, which fixes both my reproducibility concern
> and Heikki's original point about being able to re-use cached data.
> You'd only get into the irreproducible behavior if the LIMIT was larger
> than the amount of data scanned between hint updates.

That's how it works now. Small limit queries don't change the location
in the hint, so if you repeat them, the queries keep starting from the
same place, and fetching the same tuples.

Large LIMIT queries (larger than the number of pages between updates) do
change the location in the hint, and so that's really the case you're
worried about.

Regards,
    Jeff Davis


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

Предыдущее
От: NikhilS
Дата:
Сообщение: Re: CREATE TABLE LIKE INCLUDING INDEXES support
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Synchronized scans