Re: Dependency tree to tie type/function deps to a table - Mailing list pgsql-general

From Tom Lane
Subject Re: Dependency tree to tie type/function deps to a table
Date
Msg-id 29504.1513178431@sss.pgh.pa.us
Whole thread Raw
In response to Dependency tree to tie type/function deps to a table  (Jeremy Finzel <finzelj@gmail.com>)
Responses Re: Dependency tree to tie type/function deps to a table
List 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 by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Size of pg_multixact/members increases 11355
Next
From: Olga Lytvynova-Bogdanova
Date:
Subject: Varbit and toast