aboutsummaryrefslogtreecommitdiff
path: root/contrib/pgstattuple/pgstattuple.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2012-03-13 09:35:55 -0400
committerRobert Haas <rhaas@postgresql.org>2012-03-13 09:38:57 -0400
commit97c85098de1e21825adf447df60b95a56cef7bd8 (patch)
treea8dff464d933c1ee58462e95b8e1685ae69e7f55 /contrib/pgstattuple/pgstattuple.c
parent717f6d60859cc2d1d7dfd57520531a50bd78df9c (diff)
downloadpostgresql-97c85098de1e21825adf447df60b95a56cef7bd8.tar.gz
postgresql-97c85098de1e21825adf447df60b95a56cef7bd8.zip
pgstattuple: Add new error case for spgist indexes.
Extracted from a larger patch by Jaime Casanova, reviewed by Noah Misch. I think this error message could use some more extensive revision, but this at least makes the handling of spgist consistent with what we do for other types of indexes that this code doesn't know how to handle.
Diffstat (limited to 'contrib/pgstattuple/pgstattuple.c')
-rw-r--r--contrib/pgstattuple/pgstattuple.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/pgstattuple/pgstattuple.c b/contrib/pgstattuple/pgstattuple.c
index e5ddd870910..7af724f24bb 100644
--- a/contrib/pgstattuple/pgstattuple.c
+++ b/contrib/pgstattuple/pgstattuple.c
@@ -231,6 +231,9 @@ pgstat_relation(Relation rel, FunctionCallInfo fcinfo)
case GIN_AM_OID:
err = "gin index";
break;
+ case SPGIST_AM_OID:
+ err = "spgist index";
+ break;
default:
err = "unknown index";
break;