pgsql: Stabilize contrib/seg regression test.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Stabilize contrib/seg regression test.
Date: 2021-06-07 18:53:44
Message-ID: E1lqKNc-0003fe-Gl@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Stabilize contrib/seg regression test.

If autovacuum comes along just after we fill table test_seg with
some data, it will update the stats to the point where we prefer
a plain indexscan over a bitmap scan, breaking the expected
output (as well as the point of the test case). To fix, just
force a bitmap scan to be chosen here.

This has evidently been wrong since commit de1d042f5. It's not
clear why we just recently saw any buildfarm failures due to it;
but prairiedog has failed twice on this test in the past week.
Hence, backpatch to v11 where this test case came in.

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/20e36c6d203463af5bd678d10459f61ad9047b95

Modified Files
--------------
contrib/seg/expected/seg.out | 2 ++
contrib/seg/sql/seg.sql | 2 ++
2 files changed, 4 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2021-06-07 19:37:57 pgsql: Add _outTidRangePath()
Previous Message Tom Lane 2021-06-07 18:15:57 pgsql: Support use of strnlen() in pre-v11 branches.