pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Erik Wienhold <ewie@ewie.name>
To: Jonathan Lemig <jtlemig@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Views "missing" from information_schema.view_table_usage
Date: Fri, 2 Dec 2022 23:47:21 +0100 (CET)
Message-ID: <1800921007.42590.1670021241395@office.mailbox.org> (raw)
In-Reply-To: <CABR8q_8dyq8LwdMvkNpeT6OfBv2mqTTza1t0h1Qem1qAmTODfg@mail.gmail.com>
References: <CABR8q__QVKFzaUdQQsyU2wd2TZX1tdv7Q8M5myQ8L=BDDAtjLQ@mail.gmail.com>
	<2133999369.41448.1670016807570@office.mailbox.org>
	<CABR8q_9-sN65XQqDMwB=-7o8b7igpOVDZKFbGS4BaoFLFivhiQ@mail.gmail.com>
	<CABR8q_8dyq8LwdMvkNpeT6OfBv2mqTTza1t0h1Qem1qAmTODfg@mail.gmail.com>

> On 02/12/2022 23:22 CET Jonathan Lemig <jtlemig@gmail.com> wrote:
>
> It probably wouldn't hurt to have that added to the documentation. I'll post
> a message to pgsql-docs. Thanks again!
>
> Jon

Good idea!

Could it be a bug?  Materialized views are a Postgres extension[1] (I always
thought they are standard.)  But I'd expect them to be included when talking
about "views".  Maybe they are not included because they are considered being
closer to physical tables[2] than views.  Yet their dependencies would justify
inclusion in view_table_usage.

[1] https://www.postgresql.org/docs/15/sql-creatematerializedview.html, see Compatibility
[2] https://www.postgresql.org/docs/9.3/release-9-3.html#AEN119452

> On Fri, Dec 2, 2022 at 4:14 PM Jonathan Lemig <jtlemig@gmail.com> wrote:
> > Hi Erik - sorry I missed your reply when I replied to David's. That is
> > indeed the issue. The object that the view is querying is a materialized
> > view.
> >
> > Thanks for the link.
> >
> > Jon
> >
> >
> > On Fri, Dec 2, 2022 at 3:33 PM Erik Wienhold <ewie@ewie.name> wrote:
> > > > On 02/12/2022 21:51 CET Jonathan Lemig <jtlemig@gmail.com> wrote:
> > >  >
> > >  > Has anybody ever encountered this, and if so, did you find a resolution?
> > >  > Or perhaps there other limitations with the VTU that I'm unaware of?
> > >
> > >  Is the one view you cannot find in view_table_usage a materialized view?
> > >  Because those are not covered by view_table_usage[1].
> > >
> > >  [1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/backend/catalog/information_schema....
> > >
> > >  --
> > >  Erik

--
Erik





view thread (12+ messages)  latest in thread

Message-ID: <1800921007.42590.1670021241395@office.mailbox.org>
Permalink:  ../1800921007.42590.1670021241395@office.mailbox.org/
Also on:    postgresql.org/message-id/1800921007.42590.1670021241395@office.mailbox.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: ewie@ewie.name, jtlemig@gmail.com, pgsql-general@lists.postgresql.org
  Subject: Re: Views "missing" from information_schema.view_table_usage
  In-Reply-To: <1800921007.42590.1670021241395@office.mailbox.org>

* 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