Re: CREATE/REFRESH MATERIALIZED VIEW planner difference?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CREATE/REFRESH MATERIALIZED VIEW planner difference?
Дата
Msg-id 2847072.1622573465@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: CREATE/REFRESH MATERIALIZED VIEW planner difference?  (Philip Semanchuk <philip@americanefficient.com>)
Ответы Re: CREATE/REFRESH MATERIALIZED VIEW planner difference?  (Vijaykumar Jain <vijaykumarjain.github@gmail.com>)
Список pgsql-general
Philip Semanchuk <philip@americanefficient.com> writes:
> I can confirm that it’s not waiting on a lock. In addition, through the AWS CPU utilization monitor I can see that
theREFRESH uses one CPU/worker whereas the CREATE uses four. This is consistent with the EXPLAIN ANALYZE for the CREATE
whichsays it uses four workers. 

Hm.  I tried to reproduce this here, and in a simple test case I get
parallelized plans for both CREATE and REFRESH.  Are you sure the
REFRESH is running with the same server parameter settings?

>> also, can you share the plans  where you see the diff.

> Unless I misunderstand, there is no plan for a REFRESH.

EXPLAIN isn't bright about that, but if you enable auto_explain,
it will log the plan for a REFRESH's query.

            regards, tom lane



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

Предыдущее
От: Philip Semanchuk
Дата:
Сообщение: Re: CREATE/REFRESH MATERIALIZED VIEW planner difference?
Следующее
От: Vijaykumar Jain
Дата:
Сообщение: Re: CREATE/REFRESH MATERIALIZED VIEW planner difference?