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:13:37 +0000 (19:13 +0900)
commit7504a668f70af9e0e07d3d6b9ab1c6b1643be44a
treef9e501cff38e558930867f8928aafb93e43269c7
parent7b919105e277fb4c30eb510693a4ec5fcdceed4e
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