Indexing Strategy for Partitioned Table in PostgreSQL 15.13
Indexing Strategy for Partitioned Table in PostgreSQL 15.13
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:
If I run
CREATE INDEX CONCURRENTLYon the parent table, will it automatically create indexes concurrently on all its partitions?Are there any recommended or more efficient approaches for indexing a heavily partitioned table that I should consider?
Thanks in advance for your guidance.
Regards,
Mahesh
Re: Indexing Strategy for Partitioned Table in PostgreSQL 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:
If I run
CREATE INDEX CONCURRENTLYon the parent table, will it automatically create indexes concurrently on all its partitions?
Re: Indexing Strategy for Partitioned Table in PostgreSQL 15.13
Thanks
Dinesh Nair
Sent: Monday, August 4, 2025 11:05 AM
To: Mahesh Shetty <maheshetty20@gmail.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Indexing Strategy for Partitioned Table in PostgreSQL 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:
If I run
CREATE INDEX CONCURRENTLYon the parent table, will it automatically create indexes concurrently on all its partitions?
Re: Indexing Strategy for Partitioned Table in PostgreSQL 15.13
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:
If I run
CREATE INDEX CONCURRENTLYon the parent table, will it automatically create indexes concurrently on all its partitions?Are there any recommended or more efficient approaches for indexing a heavily partitioned table that I should consider?