From: | "James Pang (chaolpan)" <chaolpan(at)cisco(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
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:44:23 |
Message-ID: | PH0PR11MB5191BB64F516447A79FD4AA6D6B39@PH0PR11MB5191.namprd11.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Max_parallel_workers and max_parallel_maintenance_workers both equal to 32, one session create one index in a large table show parallel 8 workers, the other session creating one index in another separate table always in serial. Even increase max_parallel_worers and max_parallel_maintenance_workers to 64, still show one is parallel 8 workers, the other is done in serial.
James
-----Original Message-----
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Sent: Tuesday, June 21, 2022 10:30 PM
To: James Pang (chaolpan) <chaolpan(at)cisco(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: multiple sessions to create index in parallel support
"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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-06-21 15:03:48 | Re: multiple sessions to create index in parallel support |
Previous Message | Tom Lane | 2022-06-21 14:30:01 | Re: multiple sessions to create index in parallel support |