postgres.git / summary / log / commit / refs

commit    97c85098de1e21825adf447df60b95a56cef7bd8
Author:   Robert Haas <rhaas@postgresql.org>
Date:     Tue Mar 13 13:35:55 2012 +0000
First released in: 9.2.0

    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 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; [parent: 717f6d60859c]