Re: HOT for PostgreSQL 8.3 - Mailing list pgsql-hackers

From Zeugswetter Andreas ADI SD
Subject Re: HOT for PostgreSQL 8.3
Date
Msg-id E1539E0ED7043848906A8FF995BDA57901C13537@m0143.s-mxs.net
Whole thread Raw
In response to Re: HOT for PostgreSQL 8.3  ("Simon Riggs" <simon@2ndquadrant.com>)
List pgsql-hackers
> > > What are the problems with just shuffling the last (and only
visible)
> > > tuple to replace the HOT-hain root and be done with it ?
> >
> > ctid stops being a reliable identifier.

A backend selecting the row by ctid would need to take one step to
the root slot to get at the tuple. This does seem possible if the
tuples got swapped.
The old "current version" slot would need to become RECENTLY_DEAD
and could not be removed right away. It also needs a flag to
denote that the one step is necessary.

It sure would be nice if a root could be reused during regular vacuum,
(even if it were only possible under very restricted conditions,
that eventually apply).

Andreas


pgsql-hackers by date:

Previous
From: Jeremy Drake
Date:
Subject: Re: [ANNOUNCE] == PostgreSQL Weekly News - February 11 2007 ==
Next
From: "Merlin Moncure"
Date:
Subject: Re: select from sequences