Re: Synchronized scans - Mailing list pgsql-patches

From Jeff Davis
Subject Re: Synchronized scans
Date
Msg-id 1181065712.7660.117.camel@dogma.v10.wvs
Whole thread Raw
In response to Synchronized scans  (Heikki Linnakangas <heikki@enterprisedb.com>)
List pgsql-patches
On Mon, 2007-06-04 at 10:53 +0100, Heikki Linnakangas wrote:
> I'm now done with this patch and testing it.
>
>

One difference between our patches is that, in my patch, the ending
condition of the scan is after the hint is set back to the starting
position.

That means, in my patch, if you do:
SELECT * FROM bigtable;
SELECT * FROM bigtable;

with no concurrency at all, the returned order will be the same.

In your patch, each full table scan leaves the hint at 16 pages before
the position it started in, leading to different orders on the full
table scans.

Regards,
    Jeff Davis


pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Synchronized scans
Next
From: Hannes Eder
Date:
Subject: Re: [HACKERS] msvc, build and install with cygwin in the PATH