Re: multiple sessions to create index in parallel support

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "James Pang (chaolpan)" <chaolpan(at)cisco(dot)com>
Cc: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: multiple sessions to create index in parallel support
Date: 2022-06-21 14:30:01
Message-ID: 2944693.1655821801@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"James Pang (chaolpan)" <chaolpan(at)cisco(dot)com> writes:
> We have a large database that just migrated data from Oracle to Postgres(13.4), after data load. We try to create indexes , with only one connection , the create index automatically run in parallel (table size 40G) , then we started two connections and each session creating index on large table, but at this time, only 1 session parallel creating index, the other one creating index in serial. There are enough parallel_workers and memory. Is that expected ? only 1 session allowed to parallel index creating at the same time ?

Check your settings for max_parallel_workers and
max_parallel_maintenance_workers.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message James Pang (chaolpan) 2022-06-21 14:44:23 RE: multiple sessions to create index in parallel support
Previous Message James Pang (chaolpan) 2022-06-21 10:18:20 multiple sessions to create index in parallel support