Re: Unable to determine what has a particular OID

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

On 18 June 2010 17:00, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Andy Dale <andy(dot)dale(at)gmail(dot)com> writes:
> >> Try:
> >> SELECT oid,* from pg_database ;
> >>
> >> I suspect the relfilnode you are looking at is another database in the
> >> cluster.
>
> > Maybe I am possibly doing that.
>
> There isn't any "maybe" involved here. Follow Adrian's advice and
> determine for sure exactly which database that subdirectory represents.
> The subdirectory name will match the OID in the pg_database row.
>
> It's possible for the same table OID to be in use in more than one
> database, so the fact that you got a match to the other table doesn't
> in itself prove you're looking at the right database.
>
> regards, tom lane
>

OK, I have just run the query, and both are in the same database.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-06-18 15:27:13 Re: Unable to determine what has a particular OID
Previous Message Andy Dale 2010-06-18 15:01:25 Re: Unable to determine what has a particular OID