From: | Jonathan Lemig <jtlemig(at)gmail(dot)com> |
---|---|
To: | pgsql-docs(at)lists(dot)postgresql(dot)org |
Subject: | Fwd: Views "missing" from information_schema.view_table_usage |
Date: | 2022-12-05 18:18:03 |
Message-ID: | CABR8q__rUgxvcWVgYt=eD2K_XGQL8g34K9uPprHuVHEHUHStNQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-general |
Hello,
I'd like to request the documentation be updated to add a note that the
information_schema.view_table_usage view won't include views that query
materialized views.
Thanks!
Jon
---------- Forwarded message ---------
From: Jonathan Lemig <jtlemig(at)gmail(dot)com>
Date: Fri, Dec 2, 2022 at 4:14 PM
Subject: Re: Views "missing" from information_schema.view_table_usage
To: Erik Wienhold <ewie(at)ewie(dot)name>
Cc: <pgsql-general(at)lists(dot)postgresql(dot)org>
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(at)ewie(dot)name> wrote:
> > On 02/12/2022 21:51 CET Jonathan Lemig <jtlemig(at)gmail(dot)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.sql;h=18725a02d1fb6ffda3d218033b972a0ff23aac3b;hb=HEAD#l2605
>
> --
> Erik
>
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2022-12-07 21:32:34 | Re: nextval parameter is not clear |
Previous Message | Jonathan Lemig | 2022-12-05 17:47:52 | Re: Views "missing" from information_schema.view_table_usage |
From | Date | Subject | |
---|---|---|---|
Next Message | Nunya Business | 2022-12-05 19:49:40 | PG 14.5 -- Impossible to restore dump due to interaction/order of views, functions, and generated columns |
Previous Message | Jonathan Lemig | 2022-12-05 17:47:52 | Re: Views "missing" from information_schema.view_table_usage |