Local partitioned indexes and pageinspect - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Local partitioned indexes and pageinspect
Date
Msg-id CAH2-WzkOKptQiE51Bh4_xeEHhaBwHkZkGtKizrFMgEkfUuRRQg@mail.gmail.com
Whole thread Raw
Responses Re: Local partitioned indexes and pageinspect  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
It looks like local partitioned indexes are a problem for pageinspect:

pg@regression[28736]=# select bt_metap('at_partitioned_b_idx');
ERROR:  relation "at_partitioned_b_idx" is not a btree index

I gather that pageinspect simply didn't get the memo about the new
RELKIND_PARTITIONED_INDEX "placeholder" relkind. I think that it
should at least give a friendlier error message than what we see here.
The same applies to amcheck, and possibly a few other modules.

I also noticed that the new 'I' relkind is not documented within the
pg_class docs. I think that that needs to be updated. The docs should
explain that 'I' relations are not backed by storage, since that will
probably affect users of one or two external tools.

-- 
Peter Geoghegan


pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: Boolean partitions syntax
Next
From: Justin Pryzby
Date:
Subject: Re: [patch] BUG #15005: ANALYZE can make pg_class.reltuplesinaccurate.