Re: Getting table name/tuple from OID

Поиск
Список
Период
Сортировка
От Paresh Bafna
Тема Re: Getting table name/tuple from OID
Дата
Msg-id 436F7E30.7090706@it.iitb.ac.in
обсуждение исходный текст
Ответ на Re: Getting table name/tuple from OID  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: Getting table name/tuple from OID  (huaxin zhang <uwcssa@gmail.com>)
Список pgsql-hackers
Actually I want to do this from inside the postgres code i.e. I want to
get table name and tuple values from OID of corresponding table OID and
tuple OID.
Is there any built in function in postgres code to do this?

Paresh

Christopher Kings-Lynne wrote:

> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Another pgindent gripe
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: Old interfaces directory in CVS tree?