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:35:02 +0000 (23:35 +0900)
commit9f43139fd655a21a16df5e166a5627c573345f5a
treec1e080f09c53d733d58c52a55951c2d8efd5c2eb
parentcab994972e15be10e74cc4ea883acf32a771854e
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