order by in materialized views

Поиск
Список
Период
Сортировка
От PG Doc comments form
Тема order by in materialized views
Дата
Msg-id 155294930002.30378.5515416999171159375@wrigleys.postgresql.org
обсуждение исходный текст
Список pgsql-docs
The following documentation comment has been logged on the website:

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

The examples contain ORDER BY clauses in the definition of a materialized
view.  However, ORDER BY clauses do not work on materialized views after
they refresh (at the very least, folks tell me they are never guaranteed at
all because mat views are just tables under the hood).  This can be
confusing for users since they're called "materialized views", one might
expect them to behave like views and honor the order by clause they were
defined with unless you're manipulating the results.

I'd suggest a) not using ORDER BY in the examples for mat views, and b)
putting some documentation that clarifies that materialized views disregard
ORDER BY statements.

Thanks,
Eric

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: 28.4.1. VACUUM Progress Reporting
Следующее
От: PG Doc comments form
Дата:
Сообщение: ORDER BY LIMIT n does not work as described when using partitioned tables