From 97c85098de1e21825adf447df60b95a56cef7bd8 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Tue, 13 Mar 2012 09:35:55 -0400 Subject: [PATCH] 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. --- contrib/pgstattuple/pgstattuple.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/pgstattuple/pgstattuple.c b/contrib/pgstattuple/pgstattuple.c index e5ddd87091..7af724f24b 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; -- 2.40.0