OSDN Git Service

Stabilize the result of pg_gin_pending_stats() regression test.
authorMasaoFujii <masao.fujii@gmail.com>
Sat, 15 Feb 2020 14:16:02 +0000 (23:16 +0900)
committerMasaoFujii <masao.fujii@gmail.com>
Sat, 15 Feb 2020 14:36:03 +0000 (23:36 +0900)
commit5011a694b234bfb159b8dc9e416928890eeeef55
treefe1654c5b8db10f9217733eefb8e57229fd6ac06
parent17fb49857370239116c61a49eb898d5806b22e8f
Stabilize the result of pg_gin_pending_stats() regression test.

Previously pg_bigm regression test checked the value of pages column
that pg_gin_pending_stats() returns. But this value could vary from
block size to block size in PostgreSQL server. This leaded to
unexpected failure of regression test on PostgreSQL built with
non-default block size.

To avoid this issue, this patch gets rid of the check for pages column
from the regression test, to stabilize the result of test whatever
block size is used. The value of pages column that
pg_gin_pending_stats() is calculated in PostgreSQL server side,
so there is no strong reason why pg_bigm regression test needs to
verify the value and we determined that it's ok to get rid of that
check.

Back-patch to pg_bigm 1.1 where regression test for
pg_gin_pending_stats() was added.

Author: Torikoshi Atsushi
Reviewed-by: Fujii Masao
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2020-February/000331.html
expected/pg_bigm.out
sql/pg_bigm.sql