From: Tom Lane <tgl@sss.pgh.pa.us>
To: Oliver Elphick <olly@lfix.co.uk>
Cc: Hugh Esco <hesco@greens.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: How are postgreSQL database files structured?
Date: Sat, 23 Nov 2002 12:27:04 -0500
Message-ID: <6424.1038072424@sss.pgh.pa.us> (raw)
In-Reply-To: <1038071298.28188.432.camel@linda.lfix.co.uk>
References: <5.1.0.14.0.20021122225733.02c20230@petra.cagreens.org>
<1038071298.28188.432.camel@linda.lfix.co.uk>
Oliver Elphick <olly@lfix.co.uk> writes:
> pg_class has a column, relfilenode, which almost invariably has the same
> value as the oid; I'm not sure whether, should they differ, the file
> would be named relfilenode or oid, though I would presume the former.
relfilenode is the thing to look at, not oid. AFAIR, only REINDEX and
CLUSTER assign new relfilenodes at present, so relfilenode will often
match oid --- but you'll eventually regret it if you write code that
assumes that.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, olly@lfix.co.uk, hesco@greens.org
Subject: Re: How are postgreSQL database files structured?
In-Reply-To: <6424.1038072424@sss.pgh.pa.us>
References: <5.1.0.14.0.20021122225733.02c20230@petra.cagreens.org> <1038071298.28188.432.camel@linda.lfix.co.uk> <6424.1038072424@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox