Re: Materialized views don't show up in information_schema

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Sehrope Sarkuni <sehrope(at)jackdb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Materialized views don't show up in information_schema
Date: 2014-10-11 00:44:06
Message-ID: 20141011004406.GQ28859@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

* Peter Eisentraut (peter_e(at)gmx(dot)net) wrote:
> On 10/10/14 6:53 PM, Stephen Frost wrote:
> > I'm not particularly thrilled with this answer. I'd aruge that the
> > 'materialized' part of mat views isn't relevant to the standard, which
> > does not concern itself with such performance-oriented considerations,
> > and therefore, to the standard's view (pun rather intended), they're
> > views.
>
> For example, you can't drop a materialized view with DROP VIEW. So any
> tool that offers a list of views to manipulate based on the information
> schema would be confused. This is different from temporary views, for
> example.

And users will be confused when using a tool which doesn't see mat
views, which is what started this thread. Overall, I'm inclined to view
materialized views as a subset of views, which would mean that we'd
perhaps add the ability to drop them with 'drop view'.

As a comparison, what about unlogged tables? They're not normal tables
and they aren't defined by the SQL standard either.

Thanks,

Stephen

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2014-10-11 00:48:11 Re: Wait free LW_SHARED acquisition - v0.9
Previous Message Peter Eisentraut 2014-10-11 00:34:24 Re: Materialized views don't show up in information_schema