Robert Haas <robertmh...@gmail.com> wrote: > Kevin Grittner <kgri...@ymail.com> wrote:
>> It seems to me pretty fundamental to have a way to avoid quietly >> generating completely bogus results > I understand that it seems fundamental to you. What I'm trying > to establish is that reasonable people could disagree about that. > I think the fact that Oracle doesn't have one is a compelling > argument for that position. Oracle has a "staleness" property for matviews which is set to UNUSABLE when the matview is not populated. The fact that this only prohibits use of the matview for query rewrite and not direct reference is more a reflection of the orientation of Oracle toward using matviews to accelerate queries written against the base tables, much as indexes do. Direct access seems to be taken as more useful for diagnostic purposes. Still, if you want to have application-side responsibility for not using matviews when they are not populated, the application can check this "staleness" property. You don't seem to be suggesting that we provide any equivalent. -- Kevin Grittner EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers