Re: WIP: relation metapages

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: WIP: relation metapages
Date: 2012-06-14 21:34:05
Message-ID: 4FDA58CD.9050801@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 14.06.2012 18:01, Robert Haas wrote:
> What I'm really looking for at this stage of the game is feedback on
> the design decisions I made. The intention here is that it should be
> possible to read old-format heaps and indexes transparently, but that
> when we create or rewrite a relation, we add a new-style metapage.

That dodges the problem of pg_upgrade, but eventually, we will want to
use the metapage for something important, and it can't be optional at
that point anymore. So we will eventually need to deal with pg_upgrade
somehow.

> I put the new metapage code in src/backend/access/common/metapage.c,
> but I don't have a lot of confidence that that's the appropriate
> location for it. Suggestions are appreciated.

That seems good to me.

It would be nice to have the oid of the access method in the metapage
(or some other way to identify it).

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2012-06-14 21:38:33 Re: [PATCH 06/16] Add support for a generic wal reading facility dubbed XLogReader
Previous Message Heikki Linnakangas 2012-06-14 21:19:00 Re: [PATCH 06/16] Add support for a generic wal reading facility dubbed XLogReader