1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-03 22:24:49 +03:00

Fix unstable regression test added by commits 59b71c6fe et al.

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.
This commit is contained in:
Tom Lane 2017-11-24 00:29:20 -05:00
parent 1695ce0686
commit fa39617a64
2 changed files with 6 additions and 6 deletions

View File

@ -1994,7 +1994,7 @@ CREATE AGGREGATE balk(
STYPE = int8,
"PARALLEL" = SAFE,
INITCOND = '0');
SELECT balk(1) FROM tenk1;
SELECT balk(hundred) FROM tenk1;
balk
------
@ -2030,7 +2030,7 @@ SET LOCAL parallel_setup_cost=0;
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
@ -2040,7 +2040,7 @@ EXPLAIN (COSTS OFF) SELECT balk(1) FROM tenk1;
-> Parallel Seq Scan on tenk1
(5 rows)
SELECT balk(1) FROM tenk1;
SELECT balk(hundred) FROM tenk1;
balk
------

View File

@ -860,7 +860,7 @@ CREATE AGGREGATE balk(
"PARALLEL" = SAFE,
INITCOND = '0');
SELECT balk(1) FROM tenk1;
SELECT balk(hundred) FROM tenk1;
ROLLBACK;
@ -896,7 +896,7 @@ 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;
SELECT balk(1) FROM tenk1;
EXPLAIN (COSTS OFF) SELECT balk(hundred) FROM tenk1;
SELECT balk(hundred) FROM tenk1;
ROLLBACK;