| From: | Ron Johnson <ronljohnsonjr(at)gmail(dot)com> |
|---|---|
| To: | pgsql-admin <pgsql-admin(at)postgresql(dot)org> |
| Subject: | Re: Indexing Strategy for Partitioned Table in PostgreSQL 15.13 |
| Date: | 2025-08-06 03:16:39 |
| Message-ID: | CANzqJaAhS+dKz0yhz0UDSERfBVzbR1A8=oOtprjaQtPe4xB7gw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
On Mon, Aug 4, 2025 at 1:25 AM Mahesh Shetty <maheshetty20(at)gmail(dot)com> wrote:
> Hello Team,
>
> We’re running PostgreSQL version 15.13.
>
> I have a large partitioned table with around 100 partitions, and we're
> planning to add an index to it. I'm a bit concerned about the potential
> impact and duration of the indexing process, and I’d appreciate your inputs
> on the following:
>
> 1.
>
> If I run CREATE INDEX CONCURRENTLY on the *parent table*, will it
> automatically create indexes concurrently on all its partitions?
> 2.
>
> Are there any recommended or more efficient approaches for indexing a
> heavily partitioned table that I should consider?
>
> Search for "CREATE INDEX ON ONLY" in
https://www.postgresql.org/docs/15/ddl-partitioning.html
That'll tell you how to build indices in parallel and concurrently.
--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Wasim Devale | 2025-08-06 19:33:47 | Pg_logical |
| Previous Message | DINESH NAIR | 2025-08-06 02:40:33 | Re: Indexing Strategy for Partitioned Table in PostgreSQL 15.13 |