Modify create_index regression test to avoid intermittent failures.
authorTom Lane <[email protected]>
Thu, 26 Apr 2012 02:57:48 +0000 (22:57 -0400)
committerTom Lane <[email protected]>
Thu, 26 Apr 2012 02:57:48 +0000 (22:57 -0400)
commitd6d5f67b5b98b1685f9158e9d00a726afb2ae789
tree788809a220ba82b5ee884b0ce70ec717f2300d64
parent9fa82c980935ef4aee18fabe8da20ae2198b052a
Modify create_index regression test to avoid intermittent failures.

We have been seeing intermittent buildfarm failures due to a query
sometimes not using an index-only scan plan, because a background
auto-ANALYZE prevented the table's all-visible bits from being set
immediately, thereby causing the estimated cost of an index-only scan
to go up considerably.  Adjust the test case so that a bitmap index scan is
preferred instead, which serves equally well for the purpose the test case
is actually meant for.  (Of course, it would be better to eliminate the
interference from auto-ANALYZE, but I see no low-risk way to do that,
so any such fix will have to be left for 9.3 or later.)
src/test/regress/expected/create_index.out
src/test/regress/sql/create_index.sql