Re: parallel-processing multiple similar query tasks - any example?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: parallel-processing multiple similar query tasks - any example?
Date: 2022-04-28 01:18:23
Message-ID: CAKFQuwaSd+7CnFgsVRW0GwXCTraGBMZYk5hmoJXtE98XUfBF4g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Apr 27, 2022 at 4:44 PM David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:

> On Wed, Apr 27, 2022 at 4:34 PM Shaozhong SHI <shishaozhong(at)gmail(dot)com>
> wrote:
>
>> multiple similar query tasks are as follows:
>>
>> select * from a_table where country ='UK'
>> select * from a_table where country='France'
>> and so on
>>
>> How best to parallel-processing such types of multiple similar query
>> tasks?
>>
>> Any example available?
>>
>>
> You should search for how to run processes/commands in parallel in
> whatever client-side execution environment you want to use. There isn't
> anything specific to PostgreSQL here.
>
>
You should also read:

https://www.postgresql.org/docs/current/parallel-query.html

If you want to see when a single query can be executed using parallel
workers.

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dives, Chloe 2022-04-28 09:08:44 RE: Privilege error with c functions during postgresql upgrade from 11 -> 13
Previous Message Adrian Klaver 2022-04-28 00:19:50 Re: Backing up a DB excluding certain tables