diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2018-05-09 14:03:43 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2018-05-09 14:22:59 -0300 |
commit | bef5fcc36be3d08ec123889a0c82f5e07a63ff88 (patch) | |
tree | bf5ba99d50fc87d6fd0c441e32bbbe3308dc2cbd /contrib/pgstattuple/pgstattuple.c | |
parent | c8478f4fd908b5a122b5638018bbb749ac0e862f (diff) | |
download | postgresql-bef5fcc36be3d08ec123889a0c82f5e07a63ff88.tar.gz postgresql-bef5fcc36be3d08ec123889a0c82f5e07a63ff88.zip |
pgstatindex, pageinspect: handle partitioned indexes
Commit 8b08f7d4820f failed to update these modules to at least give
non-broken error messages for partitioned indexes. Add appropriate
error support to them.
Peter G. was complaining about a problem of unfriendly error messages;
while we haven't fixed that yet, subsequent discussion let to discovery
of these unhandled cases.
Author: Michaƫl Paquier
Reported-by: Peter Geoghegan
Discussion: https://postgr.es/m/CAH2-WzkOKptQiE51Bh4_xeEHhaBwHkZkGtKizrFMgEkfUuRRQg@mail.gmail.com
Diffstat (limited to 'contrib/pgstattuple/pgstattuple.c')
-rw-r--r-- | contrib/pgstattuple/pgstattuple.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/pgstattuple/pgstattuple.c b/contrib/pgstattuple/pgstattuple.c index b599b6ca21a..6d67bd8271c 100644 --- a/contrib/pgstattuple/pgstattuple.c +++ b/contrib/pgstattuple/pgstattuple.c @@ -296,6 +296,9 @@ pgstat_relation(Relation rel, FunctionCallInfo fcinfo) case RELKIND_PARTITIONED_TABLE: err = "partitioned table"; break; + case RELKIND_PARTITIONED_INDEX: + err = "partitioned index"; + break; default: err = "unknown"; break; |