Re: Example on difference between CREATE MATERIALIZED VIEW and standard VIEW has typo

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: forsberg(at)efod(dot)se, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Example on difference between CREATE MATERIALIZED VIEW and standard VIEW has typo
Date: 2025-08-22 21:40:33
Message-ID: CAKFQuwZ8pXZ1tBLRn6HXEaK9Gd6JvHk-HzowNGMZ2JPFBO2CzQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Fri, Aug 22, 2025 at 2:23 PM PG Doc comments form <noreply(at)postgresql(dot)org>
wrote:

> Unless I'm completely mistaken, the second code example on
> https://www.postgresql.org/docs/current/rules-materializedviews.html, i.e
> this:
>
> CREATE TABLE mymatview AS SELECT * FROM mytab;
>
> Should instead by
>
> CREATE VIEW mymatview AS SELECT * FROM mytab;
>

No, the example's intent is to compare a true "materialized view" with a
table that is simply populated from a query. The comment "the materialized
view cannot subsequently be directly updated" only makes sense as a
counterpoint to a physical table.

David J.

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Erik Forsberg 2025-08-23 09:12:24 Re: Example on difference between CREATE MATERIALIZED VIEW and standard VIEW has typo
Previous Message PG Doc comments form 2025-08-21 15:20:40 Inaccurate statement about log shipping replication mode