Re: Musings

From: mlw <markw(at)mohawksoft(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Musings
Date: 2002-05-05 20:05:33
Message-ID: 3CD5908D.22B0DADB@mohawksoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> 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.

Ahh, I get it, (again, correct me if I am wrong) multiple references in a
non-unique index are handled the same way as multiple versions of the same
tuple. When an index entry is found, presumably, all the tuples are loaded, all
the unique "rows" are identified and the latest "visible" version of each of
them are returned.

I wonder, is there some way inexpensive ordering up front on updates can help
increase select performance? A very good problem indeed.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Manfred Koizar 2002-05-05 21:48:31 Number of attributes in HeapTupleHeader
Previous Message Hannu Krosing 2002-05-05 19:31:04 Re: Native Windows, Apache Portable Runtime