Catalog views failed to show partitioned table information.

From: Suraj Kharage <suraj(dot)kharage(at)enterprisedb(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Catalog views failed to show partitioned table information.
Date: 2018-12-14 11:51:49
Message-ID: CAF1DzPVrYo4XNTEnc=PqVp6aLJc7LFYpYR4rX=_5pV=wJ2KdZg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

There are some catalog views which do not show the partitioned table and
its index entry.
One of them is "pg_indexes" which failed to show the partitioned index.
Attached the patch which fixes the same.

Other views such as pg_stat*,pg_statio_* has the same problem for
partitioned tables and indexes.
Since the partitioned tables and its indexes considered as a dummy, they do
not have any significance in stat tables,
can we still consider adding relkind=p in these pg_stat_* views? Thoughts?

Regards,
Suraj

Attachment Content-Type Size
pg_indexes_fix_for_partition_index.patch application/octet-stream 2.9 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2018-12-14 12:00:58 Re: [HACKERS] REINDEX CONCURRENTLY 2.0
Previous Message Tomas Vondra 2018-12-14 11:41:36 explain plans with information about (modified) gucs