Re: Distinguish view and table problem

Поиск
Список
Период
Сортировка
От Filip Rembiałkowski
Тема Re: Distinguish view and table problem
Дата
Msg-id 92869e660912180847j2a237962sc1163e123c1be78@mail.gmail.com
обсуждение исходный текст
Ответ на Distinguish view and table problem  ("suzhiyang" <suzhiyang@gmail.com>)
Список pgsql-hackers

2009/12/18 suzhiyang <suzhiyang@gmail.com>
How could I get the relkind of a table(view) by its name from pg_class?

pg_class is (quite logically) UNIQUE on (relname, relnamespace)

SELECT c.relkind from pg_class c, pg_namespace n
where c.relnamespace = n.oid
and c.relname = 'thetable'
and n.nspname = 'theschema'



--
Filip Rembiałkowski
JID,mailto:filip.rembialkowski@gmail.com
http://filip.rembialkowski.net/

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

Предыдущее
От: "suzhiyang"
Дата:
Сообщение: Distinguish view and table problem
Следующее
От: Robert Haas
Дата:
Сообщение: Re: PATCH: Add hstore_to_json()