From: | Jonathan Lemig <jtlemig(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Erik Wienhold <ewie(at)ewie(dot)name>, pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Views "missing" from information_schema.view_table_usage |
Date: | 2022-12-05 17:47:52 |
Message-ID: | CABR8q__4mZXGWw1xvnnNxhof3dUxQ7x=2ar=vM9cjmUEAWTqGA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-general |
Oh ok. Not to cause confusion, but after I suggested I would request an
update to the docs, I thought maybe it would be better to ask if the VTU's
code could be modified to include MVs. So I sent a request to
pgsql-hackers (I think that's the list to use for feature requests). But
from what you're saying, Tom, that may be a fruitless endeavor. If they
reply back "nope", then I'll submit a request to have the documentation
updated.
Thanks for everyone's contributions!
Jon
On Fri, Dec 2, 2022 at 5:11 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Erik Wienhold <ewie(at)ewie(dot)name> writes:
> > 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.
>
> The reasoning is that the information_schema views are defined by the
> SQL standard and therefore should only show content that matches the
> standard. Thus, they ignore PG-invented objects like matviews and
> sequences. Some other projects adopt more liberal views about
> what should be shown in those views, but that one is our policy.
>
> regards, tom lane
>
From | Date | Subject | |
---|---|---|---|
Next Message | Jonathan Lemig | 2022-12-05 18:18:03 | Fwd: Views "missing" from information_schema.view_table_usage |
Previous Message | PG Doc comments form | 2022-12-05 17:05:20 | Show creating extension before using |
From | Date | Subject | |
---|---|---|---|
Next Message | Jonathan Lemig | 2022-12-05 18:18:03 | Fwd: Views "missing" from information_schema.view_table_usage |
Previous Message | Bruce Momjian | 2022-12-05 17:00:13 | Re: Libpq linked to LibreSSL |