Re: How are postgreSQL database files structured?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
Cc: Hugh Esco <hesco(at)greens(dot)org>, pgsql-admin(at)postgresql(dot)org
Subject: Re: How are postgreSQL database files structured?
Date: 2002-11-23 17:27:04
Message-ID: 6424.1038072424@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Oliver Elphick <olly(at)lfix(dot)co(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Chris Bowlby 2002-11-23 18:07:37 Re: Inquiry From Form [pgsql]
Previous Message Tom Lane 2002-11-23 17:10:27 Re: crash help, pgsql 7.2.1 on RH7.3