Re: Postgres db Update to Version 15 - Mailing list pgsql-hackers

From David Rowley
Subject Re: Postgres db Update to Version 15
Date
Msg-id CAApHDvp5B9K72KX59FMwEg5K6np+Ay8eXuTHRUa-f6R_vaFLyA@mail.gmail.com
Whole thread Raw
In response to Postgres db Update to Version 15  ("Ritthaler, Axel" <axel.ritthaler@sap.com>)
List pgsql-hackers
On Sun, 10 Dec 2023 at 04:10, Ritthaler, Axel <axel.ritthaler@sap.com> wrote:
> The Root Cause of this behavior, as aligned with AWS RDS Support, has been a new feature-set coding
(parallel_feature_query)with Postgres Version 15, that shows a different behavior due to related parameter
(max_parallel_workers_per_gather).

What is parallel_feature_query?  No version of PostgreSQL has a
setting by that name.

> Remaining question now is, what has to be done to move related Live-Landscapes back to the default parameter value
(2)without creating the same impact again.
 

You'll need to identify the query or queries causing the problem.
We've likely made many more query shapes parallelizable in PG15
compared to PG11. So it does not seem unusual that PG15 will be able
to paralleize more of your queries than what PG11 could do.  That
could lead to parallel plans not getting the workers they desire due
to workers being busy with other queries.

> What is your suggestion and recommended way-forward to enable parallel-worker setup again ?

Identify the queries causing the problem.  Then determine if the plan
has changed since PG11. You can then check all the release notes
starting with PG12 to see if anything is mentioned about why the plan
might have changed. e.g. something in the query is parallelizable in
this version that wasn't in PG11.

One thing to keep in mind is that PostgreSQL does not opt to
parallelize the cheapest serial plan. It will attempt to find the
cheapest plan with or without parallel workers.  The difference here
is that it's optimized for speed rather than resource usage.  I'm not
sure if this is a factor in your issue, but it may be something to
keep in mind while investigating.

David



pgsql-hackers by date:

Previous
From: Richard Guo
Date:
Subject: Re: Assert failure on 'list_member_ptr(rel->joininfo, restrictinfo)'
Next
From: Andrei Lepikhov
Date:
Subject: Re: Assert failure on 'list_member_ptr(rel->joininfo, restrictinfo)'