Re: Synchronized scans - Mailing list pgsql-patches

From Jeff Davis
Subject Re: Synchronized scans
Date
Msg-id 1181064858.7660.111.camel@dogma.v10.wvs
Whole thread Raw
In response to Re: Synchronized scans  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Synchronized scans
List 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 by date:

Previous
From: NikhilS
Date:
Subject: Re: CREATE TABLE LIKE INCLUDING INDEXES support
Next
From: Tom Lane
Date:
Subject: Re: Synchronized scans