Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 705d397

Browse files
committed
Prevent pgstattuple() from reporting BRIN as unknown index.
Also this patch removes obsolete comment. Back-patch to 9.5 where BRIN index was added.
1 parent 1a56498 commit 705d397

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/pgstattuple/pgstattuple.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ build_pgstattuple_type(pgstattuple_type *stat, FunctionCallInfo fcinfo)
151151
*
152152
* C FUNCTION definition
153153
* pgstattuple(text) returns pgstattuple_type
154-
* see pgstattuple.sql for pgstattuple_type
155154
* ----------
156155
*/
157156

@@ -234,6 +233,9 @@ pgstat_relation(Relation rel, FunctionCallInfo fcinfo)
234233
case SPGIST_AM_OID:
235234
err = "spgist index";
236235
break;
236+
case BRIN_AM_OID:
237+
err = "brin index";
238+
break;
237239
default:
238240
err = "unknown index";
239241
break;

0 commit comments

Comments
 (0)