Re: Search from newer tuples first, vs older tuples first? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Search from newer tuples first, vs older tuples first?
Date
Msg-id 200206020609.g5269P213073@candle.pha.pa.us
Whole thread Raw
In response to Re: Search from newer tuples first, vs older tuples first?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Search from newer tuples first, vs older tuples first?
List pgsql-hackers
Tom Lane wrote:
> Lincoln Yeoh <lyeoh@pop.jaring.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@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: insert with multiple targetLists
Next
From: Bruce Momjian
Date:
Subject: Re: a vulnerability in PostgreSQL