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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeremy Finzel <finzelj(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Dependency tree to tie type/function deps to a table
Date: 2017-12-13 15:20:31
Message-ID: 29504.1513178431@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jeremy Finzel <finzelj(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Olga Lytvynova-Bogdanova 2017-12-13 15:22:41 Varbit and toast
Previous Message Tomas Vondra 2017-12-13 15:08:28 Re: Size of pg_multixact/members increases 11355