Re: Search from newer tuples first, vs older tuples first?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Lincoln Yeoh <lyeoh(at)pop(dot)jaring(dot)my>, Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Search from newer tuples first, vs older tuples first?
Date: 2002-06-02 06:09:25
Message-ID: 200206020609.g5269P213073@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Lincoln Yeoh <lyeoh(at)pop(dot)jaring(dot)my> writes:
> > OK I'm starting to get it :). Will the index behaviour be changed soon?
>
> When someone steps up and does it. I've learned not to predict
> schedules for this project.

It is not that hard to implement, just messy. When the index returns a
heap row and the heap row is viewed for visibility, if _no_one_ can see
the row, the index can be marked as expired. It could be a single bit
in the index tuple, and doesn't need to be flushed to disk, though the
index page has to be marked as dirty. However, we are going to need to
flush a pre-change image to WAL so it may as well be handled as a normal
index page change.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-06-02 06:21:14 Re: a vulnerability in PostgreSQL
Previous Message Bruce Momjian 2002-06-02 05:53:11 Re: insert with multiple targetLists