Re: Dependency tree to tie type/function deps to a table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Dependency tree to tie type/function deps to a table
Дата
Msg-id 29504.1513178431@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Dependency tree to tie type/function deps to a table  (Jeremy Finzel <finzelj@gmail.com>)
Ответы Re: Dependency tree to tie type/function deps to a table  (Melvin Davidson <melvin6925@gmail.com>)
Список pgsql-general
Jeremy Finzel <finzelj@gmail.com> writes:
> It looks like the very useful dependency tree shown when using DROP CASCADE
> is written in C in dependency.c, but there is no way to leverage this
> within Postgres to actually query an object's dependencies.  Can we get
> this somehow as a Postgres client in SQL?

Seems like you could build a query for that easily enough using a
recursive union over pg_depend plus pg_describe_object() to produce
text descriptions of the entries.

            regards, tom lane


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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Size of pg_multixact/members increases 11355
Следующее
От: Olga Lytvynova-Bogdanova
Дата:
Сообщение: Varbit and toast