]> granicus.if.org Git - postgresql/commitdiff
pgstattuple: Add new error case for spgist indexes.
authorRobert Haas <rhaas@postgresql.org>
Tue, 13 Mar 2012 13:35:55 +0000 (09:35 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 13 Mar 2012 13:38:57 +0000 (09:38 -0400)
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

index e5ddd87091036961e3e7a843288bdb0c024f72f4..7af724f24bb1dbb9ea732688428986dae6928008 100644 (file)
@@ -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;