Re: indexes on partitioned tables - Mailing list pgsql-admin

From Muhammad Ikram
Subject Re: indexes on partitioned tables
Date
Msg-id CAGeimVrjHP_yKWABw04tZPjyp1V+n1WG+j3OOUkctY7QYvNGHA@mail.gmail.com
Whole thread Raw
In response to Re: indexes on partitioned tables  (Wasim Devale <wasimd60@gmail.com>)
List pgsql-admin
Hi Wasim,

AFAIK, there are no global indexes on Partition tables. The index you create will be created on each partition so the behaviour you are seeing is expected.

Regards,
Ikram


On Fri, Jul 12, 2024 at 10:31 AM Wasim Devale <wasimd60@gmail.com> wrote:
Hi Ron 

I created the indexes on the parent table globally and ran the create script with partitioned tables script, the parent table with child tables are created and I can see indexes are created on child tables too.

Then I inserted data from existing table.

Thanks,
Wasim

On Thu, 11 Jul, 2024, 6:09 pm Ron Johnson, <ronljohnsonjr@gmail.com> wrote:
On Thu, Jul 11, 2024 at 4:16 AM Wasim Devale <wasimd60@gmail.com> wrote:
Hi All,

I have partitioned a table and levied indexes on it but when I do maintenance activities like reindexing it's not happening and the error is index not present on the partitioned table.

Please highlight some points on it, Is I am missing something?

Show us the code.  Maybe you're doing "CREATE INDEX ... ON ONLY ...;"   Or something else; we don't know, since your question is light on details.


--
Muhammad Ikram

pgsql-admin by date:

Previous
From: Wasim Devale
Date:
Subject: Re: indexes on partitioned tables
Next
From: "Zwettler Markus (OIZ)"
Date:
Subject: how to perform a manual failover with patroni without applying any outstanding WAL?