public inbox for [email protected]  
help / color / mirror / Atom feed
From: Greg Hennessy <[email protected]>
To: [email protected]
Subject: Re: How to query with more workers on a large table with many partitions
Date: Wed, 1 Apr 2026 11:05:20 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CANHuRqH7q6bi7UAmW3w+o=11Sy1pzoY5KYsLfkpjS3X3T_OQHw@mail.gmail.com>
References: <CANHuRqH7q6bi7UAmW3w+o=11Sy1pzoY5KYsLfkpjS3X3T_OQHw@mail.gmail.com>


> I'm running PostgreSQL 16 on an AWS EC2 instance with 16 logical 
> processors and 128G of RAM. How can I get PG to run the query with 
> more workers?
>
Postgres allocates more workers based on the log3 of the ratio of the 
table size to min_parallel_table_scan_size.

You may want to try |ALTER TABLE ... SET (parallel_workers = 10) (or 
whatever your desired value is).

|

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: How to query with more workers on a large table with many partitions
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox