Re: Remove xmin and cmin from frozen tuples - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Remove xmin and cmin from frozen tuples
Date
Msg-id 20979.1126044147@sss.pgh.pa.us
Whole thread Raw
In response to Re: Remove xmin and cmin from frozen tuples  ("Jim C. Nasby" <jnasby@pervasive.com>)
Responses Re: Remove xmin and cmin from frozen tuples
List pgsql-hackers
"Jim C. Nasby" <jnasby@pervasive.com> writes:
>>> If we're going to look at doing that I think it would also be good to
>>> consider including xmin and xmax as well.
>> 
>> If you do that, you'll never be able to delete or update the tuple.

> My idea was to use an int to represent combinations of (c|x)(min|max),
> probably on a per-table basis. Essentially, it would normalize these
> values. I don't see how this would eliminate the ability to update or
> delete.

How will other transactions know whether the tuple is good (yet) or not?
How will you recover if the backend that does know this crashes before
transaction end?  How will you lock tuples for update/delete?
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Remove xmin and cmin from frozen tuples
Next
From: mark@mark.mielke.cc
Date:
Subject: Re: uuid type for postgres