pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <shammat@gmx.net>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Dependencies of Matviews?
Date: Tue, 23 Jun 2020 23:36:29 +0200
Message-ID: <558b5783-e836-5fd9-a2ab-d01f6da69ede@gmx.net> (raw)
In-Reply-To: <2164198.1592947501@sss.pgh.pa.us>
References: <800f556a-29cf-3528-d720-84e7eae8ad45@gmx.net>
	<2164198.1592947501@sss.pgh.pa.us>

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






view thread (3+ messages)

Message-ID: <558b5783-e836-5fd9-a2ab-d01f6da69ede@gmx.net>
Permalink:  ../558b5783-e836-5fd9-a2ab-d01f6da69ede@gmx.net/
Also on:    postgresql.org/message-id/558b5783-e836-5fd9-a2ab-d01f6da69ede@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: shammat@gmx.net
  Subject: Re: Dependencies of Matviews?
  In-Reply-To: <558b5783-e836-5fd9-a2ab-d01f6da69ede@gmx.net>
  References: <800f556a-29cf-3528-d720-84e7eae8ad45@gmx.net> <2164198.1592947501@sss.pgh.pa.us> <558b5783-e836-5fd9-a2ab-d01f6da69ede@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox