Re: Related tables to a view

Поиск
Список
Период
Сортировка
От Jan Meyland Andersen
Тема Re: Related tables to a view
Дата
Msg-id 1255.62.66.218.59.1167235132.squirrel@mail.agile.dk
обсуждение исходный текст
Ответ на Re: Related tables to a view  ("Jim Buttafuoco" <jim@contactbda.com>)
Список pgsql-sql
> Try this query
>
>
> select a.relname as base,a.relkind
> from
> pg_class a
> join pg_depend d on (a.oid = d.refobjid)
> join pg_class c on (d.classid = c.oid)
> join pg_rewrite r on (objid = r.oid)
> join pg_class v on (ev_class = v.oid)
> where a.relkind in('r', 'v')
> and a.relname <> v.relname
> and v.relname='YOUR VIEW NAME HERE'
> order by 1
>

Thanks a lot. That is exactly what I need.

Regards

Jan



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

Предыдущее
От: "Jim Buttafuoco"
Дата:
Сообщение: Re: Related tables to a view
Следующее
От: "Kashmira Patel \(kupatel\)"
Дата:
Сообщение: Unable to drop table, error mentions "reltriggers"