Re: CREATE/REFRESH MATERIALIZED VIEW planner difference? - Mailing list pgsql-general

From Tom Lane
Subject Re: CREATE/REFRESH MATERIALIZED VIEW planner difference?
Date
Msg-id 2847072.1622573465@sss.pgh.pa.us
Whole thread Raw
In response to Re: CREATE/REFRESH MATERIALIZED VIEW planner difference?  (Philip Semanchuk <philip@americanefficient.com>)
Responses Re: CREATE/REFRESH MATERIALIZED VIEW planner difference?
List 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 by date:

Previous
From: Philip Semanchuk
Date:
Subject: Re: CREATE/REFRESH MATERIALIZED VIEW planner difference?
Next
From: Vijaykumar Jain
Date:
Subject: Re: CREATE/REFRESH MATERIALIZED VIEW planner difference?