Re: Disable parallel query by default - Mailing list pgsql-hackers

From Greg Sabino Mullane
Subject Re: Disable parallel query by default
Date
Msg-id CAKAnmmJsskEWZofj07Qk5XFSj+F_2xB7N00dSvFeMYQk14Qm3Q@mail.gmail.com
Whole thread Raw
In response to Disable parallel query by default  ("Scott Mead" <scott@meads.us>)
List pgsql-hackers
On Tue, May 13, 2025 at 4:37 PM Scott Mead <scott@meads.us> wrote:
I'll open by proposing that we prevent the planner from automatically selecting parallel plans by default

That seems a pretty heavy hammer, when we have things like parallel_setup_cost that should be tweaked first.

The recommendation that I give to users is pretty straightforward: "Disable automatic parallel query, enable it for queries where you find substantial savings and can control the rate of execution."  I always tell users that if they're using parallel query for anything that should execute in less than 5 minutes, they're probably pushing on the wrong tuning strategy as the load induced by the parallel query infrastructure is likely going to negate the savings that they're getting.

Five minutes?! That's not been my experience. Not claiming parallelism is perfect yet, but there are plenty of parallel performance savings under the five minute mark.

Cheers,
Greg

--
Enterprise Postgres Software Products & Tech Support

pgsql-hackers by date:

Previous
From: Mihail Nikalayeu
Date:
Subject: Re: Small fixes needed by high-availability tools
Next
From: Hari Krishna Sunder
Date:
Subject: Re: Statistics Import and Export