Re: Unable to determine what has a particular OID

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andy Dale <andy(dot)dale(at)gmail(dot)com>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Unable to determine what has a particular OID
Date: 2010-06-18 14:06:06
Message-ID: 11677.1276869966@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andy Dale <andy(dot)dale(at)gmail(dot)com> writes:
> After looking into the the data directory a particular file/oid is around 21
> GB (the oid has 21 files), this OID can then be found in the pg_class table,
> the explanation for the size being that the table has around 12.5 Million
> rows. During the inspection of the data directory I observed another OID
> that is around 8.5GB, but I cannot locate the corresponding entry in the
> pg_class table (even after dumping the table into a file and grep-ing for
> the OID in question).

You should be looking at pg_class.relfilenode, not OID. See
http://www.postgresql.org/docs/8.3/static/storage.html

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andy Dale 2010-06-18 14:15:48 Re: Unable to determine what has a particular OID
Previous Message Merlin Moncure 2010-06-18 13:03:18 Re: postgres crash SOS