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

Поиск
Список
Период
Сортировка
От Erik Forsberg
Тема Re: Example on difference between CREATE MATERIALIZED VIEW and standard VIEW has typo
Дата
Msg-id 641a21c9-ab47-4213-961f-f83c0c220b3a@app.fastmail.com
обсуждение исходный текст
Ответ на Re: Example on difference between CREATE MATERIALIZED VIEW and standard VIEW has typo  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-docs
On Fri, Aug 22, 2025, at 23:40, David G. Johnston wrote:
On Fri, Aug 22, 2025 at 2:23 PM PG Doc comments form <noreply@postgresql.org> wrote:
Unless I'm completely mistaken, the second code example on
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.


Right, I stand corrected, and realize I don't know enough about standard view.

Maybe its the naming of the example *table* with the suffix *view* that completely mess up my brain, but I guess given the intent that's how it should be.

Thanks,
Erik

В списке pgsql-docs по дате отправления: