Re: [WIP] In-place upgrade - Mailing list pgsql-hackers

From Robert Haas
Subject Re: [WIP] In-place upgrade
Date
Msg-id 603c8f070811040842r4a26ac3am6833436e6f1ed1dd@mail.gmail.com
Whole thread Raw
In response to Re: [WIP] In-place upgrade  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> That's sane *if* you can guarantee that only negligible overhead is
> added for accessing data that is in the up-to-date format.  I don't
> think that will be the case if we start putting version checks into
> every tuple access macro.

Yes, the point is that you'll read the page as V3 or V4, whichever it
is, but if it's V3, you'll convert the tuples to V4 format before you
try to doing anything with them (for example by modifying
ExecStoreTuple to copy any V3 tuple into a palloc'd buffer, which fits
nicely into what that function already does).

...Robert


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [WIP] In-place upgrade
Next
From: Tom Lane
Date:
Subject: Re: some strange bugs related to upgrade from 8.1 to 8.3