Re: create index concurrently blocked by other query

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: James Pang <jamespang886(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: create index concurrently blocked by other query
Date: 2024-03-25 12:07:52
Message-ID: ZgFpGA4ymbed46B2@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Sat, Mar 23, 2024 at 09:29:55PM +0800, James Pang wrote:
> Hi,
> PGv14, it's a time range partition table, we first create index ... on
> ONLY parent table and it's done very fast, then we are doing "create index
> concurrently ... on each partition table", then we saw it blocked by some
> other sessopm "select on other tables" , is it expected ?

Yes. create index will continue its work as soon as all transactions
that are started than itself (the create index transaction) will end.

Best regards,

depesz

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Narendran .j 2024-03-25 13:46:59 Re: Ora2pg migration
Previous Message SOzcn 2024-03-25 09:35:16 Re: create index concurrently blocked by other query