Re: Dependencies of Matviews?

From: Thomas Kellerer <shammat(at)gmx(dot)net>
To:
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Dependencies of Matviews?
Date: 2020-06-23 21:36:29
Message-ID: 558b5783-e836-5fd9-a2ab-d01f6da69ede@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane schrieb am 23.06.2020 um 23:25:
>> I would like to extract the dependency between materialized views.
>> e.g. in the following situation:
>> create materialized view mv1 as select ....;
>> create materialized view mv2 as select ... from mv1, ...;
> or more readably,
>
> regression=# select pg_describe_object(classid,objid,objsubid) as obj, pg_describe_object(refclassid,refobjid,refobjsubid) as ref, deptype from pg_depend where objid >= 58550 or refobjid >= 58550;

Ah, great.
That's what I was looking for, thanks

Thomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2020-06-23 22:16:27 Re: i am getting issue as FATAL: password authentication failed for user ' postgres' tried
Previous Message Tom Lane 2020-06-23 21:25:01 Re: Dependencies of Matviews?