The query didn't really have a preferred index, leading to platform-
specific choices of which one to use. Adjust it to make sure tenk1_hundred
is always chosen.
Per buildfarm.
STYPE = int8,
"PARALLEL" = SAFE,
INITCOND = '0');
-SELECT balk(1) FROM tenk1;
+SELECT balk(hundred) FROM tenk1;
balk
------
SET LOCAL max_parallel_workers_per_gather=4;
SET LOCAL enable_indexscan = off;
SET LOCAL enable_bitmapscan = off;
-EXPLAIN (COSTS OFF) SELECT balk(1) FROM tenk1;
+EXPLAIN (COSTS OFF) SELECT balk(hundred) FROM tenk1;
QUERY PLAN
----------------------------------------------
Finalize Aggregate
-> Parallel Seq Scan on tenk1
(5 rows)
-SELECT balk(1) FROM tenk1;
+SELECT balk(hundred) FROM tenk1;
balk
------
"PARALLEL" = SAFE,
INITCOND = '0');
-SELECT balk(1) FROM tenk1;
+SELECT balk(hundred) FROM tenk1;
ROLLBACK;
SET LOCAL enable_indexscan = off;
SET LOCAL enable_bitmapscan = off;
-EXPLAIN (COSTS OFF) SELECT balk(1) FROM tenk1;
-SELECT balk(1) FROM tenk1;
+EXPLAIN (COSTS OFF) SELECT balk(hundred) FROM tenk1;
+SELECT balk(hundred) FROM tenk1;
ROLLBACK;