Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 50D6B4758BD for ; Sat, 23 Nov 2002 12:27:42 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 9FFFD47580B for ; Sat, 23 Nov 2002 12:27:41 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id gANHR4sX006425; Sat, 23 Nov 2002 12:27:04 -0500 (EST) To: Oliver Elphick Cc: Hugh Esco , pgsql-admin@postgresql.org Subject: Re: How are postgreSQL database files structured? 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> Comments: In-reply-to Oliver Elphick message dated "23 Nov 2002 17:08:18 +0000" Date: Sat, 23 Nov 2002 12:27:04 -0500 Message-ID: <6424.1038072424@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/226 X-Sequence-Number: 6414 Oliver Elphick 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