Re: Getting table name/tuple from OID - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: Getting table name/tuple from OID
Date
Msg-id 436F66BD.3090707@familyhealth.com.au
Whole thread Raw
In response to Getting table name/tuple from OID  (Paresh Bafna <paresh@it.iitb.ac.in>)
Responses Re: Getting table name/tuple from OID  (Paresh Bafna <paresh@it.iitb.ac.in>)
List 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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Interval aggregate regression failure (expected seems
Next
From: Tom Lane
Date:
Subject: Re: Another pgindent gripe