postgres.git / summary / log / commit / refs
commit 5658b0dc0425f987c3272a792ea0944bce23a959
Author: Fujii Masao <fujii@postgresql.org>
Date: Tue Jul 14 13:36:51 2015 +0000
First released in: 9.6.0, 9.5.0
Prevent pgstattuple() from reporting BRIN as unknown index.
Also this patch removes obsolete comment.
Back-patch to 9.5 where BRIN index was added.
contrib/pgstattuple/pgstattuple.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/contrib/pgstattuple/pgstattuple.c b/contrib/pgstattuple/pgstattuple.c
index c3a8b1d424a..4e221c36826 100644
--- a/contrib/pgstattuple/pgstattuple.c
+++ b/contrib/pgstattuple/pgstattuple.c
@@ -151,7 +151,6 @@ build_pgstattuple_type(pgstattuple_type *stat, FunctionCallInfo fcinfo)
*
* C FUNCTION definition
* pgstattuple(text) returns pgstattuple_type
- * see pgstattuple.sql for pgstattuple_type
* ----------
*/
@@ -234,6 +233,9 @@ pgstat_relation(Relation rel, FunctionCallInfo fcinfo)
case SPGIST_AM_OID:
err = "spgist index";
break;
+ case BRIN_AM_OID:
+ err = "brin index";
+ break;
default:
err = "unknown index";
break;
[parent: fe92a72a2bf6]