Re: Getting table name/tuple from OID

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Paresh Bafna <paresh(at)it(dot)iitb(dot)ac(dot)in>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Getting table name/tuple from OID
Date: 2005-11-07 14:37:49
Message-ID: 436F66BD.3090707@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Try

SELECT 12341234::regclass;

Where 12341234 is the OID of a table.

Otherwise try:

SELECT tableoid, * FROM table;

To get the tableoid on each row.

Chris

Paresh Bafna wrote:
> Is there any way to retrieve table name and/or tuple values from OID of
> table/tuple?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-11-07 14:45:22 Re: Another pgindent gripe
Previous Message Tom Lane 2005-11-07 14:31:46 Re: Interval aggregate regression failure (expected seems