Re: pg_indexes doesn't show indexes for partitioned tables - bug or intended?

From: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_indexes doesn't show indexes for partitioned tables - bug or intended?
Date: 2019-04-10 15:57:49
Message-ID: CAKJS1f8Jp11xrPu35rHMr7Q8GTFwYEKT=YCkJQo7bP0=F8iCUg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 11 Apr 2019 at 00:39, Thomas Kellerer <spam_eater(at)gmx(dot)net> wrote:
>
> In Postgres 11.2, indexes defined on partitioned tables do not show up in pg_indexes (the actual indexes for the partitions however do show up).

> Is leaving out the indexes defined on the partitioned table intended or a bug?

Overlooked for PG11. You'll see them in PG12 per [1]. It's not really
possible to backpatch a fix for that since these views are created
during initdb.

[1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=f94cec64476f2752e91b10d7928a2fcd105e9fc3

--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2019-04-10 16:04:06 Re: pg_indexes doesn't show indexes for partitioned tables - bug or intended?
Previous Message Sherrylyn Branchaw 2019-04-10 15:50:30 Re: Does pg_stat_get_live_tuples() matter?