Re: How can I find the schema that a table belongs to?

Поиск
Список
Период
Сортировка
От Jerry LeVan
Тема Re: How can I find the schema that a table belongs to?
Дата
Msg-id F28AA0CB-5201-44D4-99D8-980E1EB82B58@mac.com
обсуждение исходный текст
Ответ на Re: How can I find the schema that a table belongs to?  (DM <dm.aeqa@gmail.com>)
Список pgsql-general
On Jan 19, 2011, at 3:12 PM, DM wrote:

> one of the way to find out schema name is like below
>
> select * from pg_tables where tablename like '%xyz%';
>  schemaname | tablename | tableowner | tablespace | hasindexes | hasrules | hastriggers
> ------------+-----------+------------+------------+------------+----------+-------------
> (0 rows)
>
> ~Deepak
>

That does not work if the user entered a 'view' in the sql box.

Also a table/view could be in several schemas...

Jerry

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

Предыдущее
От: DM
Дата:
Сообщение: Re: How can I find the schema that a table belongs to?
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: How to fire triggers just on "top" level DML