OSDN Git Service

Make pg_gin_pending_stats() check whether given relation is a GIN index.
authorMasaoFujii <masao.fujii@gmail.com>
Fri, 14 Aug 2015 10:09:05 +0000 (19:09 +0900)
committerMasaoFujii <masao.fujii@gmail.com>
Fri, 14 Aug 2015 10:09:05 +0000 (19:09 +0900)
commit5117b57b4e0cf343b87662f3c4e26c64df98e0cc
treeadb75e76d20100cbec7a33c1cfa062fcd400349a
parentcf5346aa361b731c28e8e46c58d17b8da4d6dd2f
Make pg_gin_pending_stats() check whether given relation is a GIN index.

Previously pg_gin_pending_stats() didn't do such a check, so it could
return an improper and irrelevant result when non-GIN index was specified.
This is a bug. This patch changes pg_gin_pending_stats() so that it exits
with an error when the given relation is not a GIN index.

Also this patch prevents pg_gin_pending_stats() from reading non-local
temporary relations.

Back-patch to all supported versions.
bigm_gin.c
expected/pg_bigm.out
sql/pg_bigm.sql