1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-05 23:56:58 +03:00

Prevent pgstattuple() from reporting BRIN as unknown index.

Also this patch removes obsolete comment.

Back-patch to 9.5 where BRIN index was added.
This commit is contained in:
Fujii Masao 2015-07-14 22:36:51 +09:00
parent fe92a72a2b
commit 5658b0dc04

View File

@ -151,7 +151,6 @@ build_pgstattuple_type(pgstattuple_type *stat, FunctionCallInfo fcinfo)
* *
* C FUNCTION definition * C FUNCTION definition
* pgstattuple(text) returns pgstattuple_type * 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: case SPGIST_AM_OID:
err = "spgist index"; err = "spgist index";
break; break;
case BRIN_AM_OID:
err = "brin index";
break;
default: default:
err = "unknown index"; err = "unknown index";
break; break;