Re: Musings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Musings
Date
Msg-id 15417.1020621713@sss.pgh.pa.us
Whole thread Raw
In response to Re: Musings  (mlw <markw@mohawksoft.com>)
Responses Re: Musings
List pgsql-hackers
mlw <markw@mohawksoft.com> writes:
> I guess I don't understand. Why does it have to visit all of them?

Because it doesn't have any way to know in advance which one(s) are
visible to it.

> If ordering
> them from newest tom oldest, and then take the first transaction ID that it
> smaller then current transaction id, doesn't that work?

No.  For starters, we couldn't guarantee that insertion order is the
same as transaction commit order.  Even if we did, your assumption
that commit order is the same as visibility is too simplistic.  And
none of this works if the index isn't unique.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pg_config Makefile includes hyphens in configure arguments
Next
From: Tom Lane
Date:
Subject: Re: Musings