Re: How access table by tableoid

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How access table by tableoid
Дата
Msg-id 23057.1179107258@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How access table by tableoid  ("Jim C. Nasby" <decibel@decibel.org>)
Список pgsql-general
"Jim C. Nasby" <decibel@decibel.org> writes:
> You could possibly do this with a SRF; you'd have to grab the name of
> the table and then build a dynamic query off of that. If you cast the
> oid to regclass you'll get the name of the table, though you should
> probably query pg_class and pg_namespace to build a fully-qualified
> table name (schemaname.tablename).

The regclass cast will take care of that for you.

            regards, tom lane

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: How access table by tableoid
Следующее
От: "Robert James"
Дата:
Сообщение: Postgres Printed Manuals