Re: Wrong statement on the materialized views page

From: Erik Wienhold <ewie(at)ewie(dot)name>
To: mark(dot)meeus(at)gmail(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Wrong statement on the materialized views page
Date: 2023-08-21 08:37:02
Message-ID: 1300044510.104825.1692607022369@office.mailbox.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

> On 21/08/2023 09:02 CEST PG Doc comments form <noreply(at)postgresql(dot)org> wrote:
>
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/15/rules-materializedviews.html
> Description:
>
> There might be an issue on this page:
> https://www.postgresql.org/docs/current/rules-materializedviews.html
>
> I think the statement
> CREATE TABLE mymatview AS SELECT * FROM mytab;
> should actuall be
> CREATE VIEW mymatview AS SELECT * FROM mytab;

No, CREATE TABLE is correct in this case because that section is about the
persistence of matview results like a table.

--
Erik

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Mark Meeus 2023-08-21 09:29:50 Re: Wrong statement on the materialized views page
Previous Message PG Doc comments form 2023-08-21 07:02:37 Wrong statement on the materialized views page