Re: Distinguish view and table problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Distinguish view and table problem
Дата
Msg-id 8218.1261158311@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Distinguish view and table problem  ("suzhiyang" <suzhiyang@gmail.com>)
Список pgsql-hackers
"suzhiyang" <suzhiyang@gmail.com> writes:
> I just want to distinguish a view and a table while postgres execute
> exec_simple_query(). In the systable of pg_class, a view and a table
> has different relkind ('r' 'v'). But when I print the parsetree and
> the rewrite parsetree, I found that a view and a table has no
> character to distinguish because the structure Relation has no
> attribute called relkind.

See rel->rd_rel->relkind ...
        regards, tom lane


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

Предыдущее
От: Joshua Tolley
Дата:
Сообщение: Re: Time to run initdb is mostly figure-out-the-timezone work
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Time to run initdb is mostly figure-out-the-timezone work