Re: postgres materialized view refresh performance

Поиск
Список
Период
Сортировка
От Ravi Krishna
Тема Re: postgres materialized view refresh performance
Дата
Msg-id A096D7B4-39AB-486C-A8CF-62240F128D78@mail.com
обсуждение исходный текст
Ответ на Re: postgres materialized view refresh performance  (Philip Semanchuk <philip@americanefficient.com>)
Ответы Re: postgres materialized view refresh performance  (Philip Semanchuk <philip@americanefficient.com>)
Список pgsql-general
> My understanding is that when CONCURRENTLY is specified, Postgres implements the refresh as a series of INSERT,
UPDATE,
> and DELETE statements on the existing view. So the answer to your question is no, Postgres doesn’t create another
tableand 
> then swap it.

The INSERTS/UPDATE/DELETE happens only for the difference.  PG first creates a new temp table and then compares it with
the MV and detects the difference.  That is why for CONCURRENTLY, a unique index is required on the MV.


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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Hot backup in PostgreSQL
Следующее
От: Fabrízio de Royes Mello
Дата:
Сообщение: Re: Conditional column filtering with pglogical replication