Example on difference between CREATE MATERIALIZED VIEW and standard VIEW has typo - Mailing list pgsql-docs

From PG Doc comments form
Subject Example on difference between CREATE MATERIALIZED VIEW and standard VIEW has typo
Date
Msg-id 175578522105.806.9299577429321382358@wrigleys.postgresql.org
Whole thread Raw
Responses Re: Example on difference between CREATE MATERIALIZED VIEW and standard VIEW has typo
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/17/rules-materializedviews.html
Description:

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;

(I.e, create a VIEW, not a TABLE).

Could also be debated if the view name should be the same in both examples.
I.e the second example might be even better as below:

CREATE VIEW myview AS SELECT * from mytab;

pgsql-docs by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Initcap works differently with different locale providers
Next
From: PG Doc comments form
Date:
Subject: Inaccurate statement about log shipping replication mode