Skip to content
Snippets Groups Projects
Commit 2c30f961 authored by Tom Lane's avatar Tom Lane
Browse files

Tweak new regression test case for more portability.

Ensure that same index gets selected on 32-bit and 64-bit machines.
Per buildfarm results.
parent 6d295b64
No related branches found
No related tags found
No related merge requests found
...@@ -1266,19 +1266,19 @@ ORDER BY thousand, tenthous; ...@@ -1266,19 +1266,19 @@ ORDER BY thousand, tenthous;
(7 rows) (7 rows)
explain (costs off) explain (costs off)
SELECT thousand, tenthous FROM tenk1 SELECT thousand, tenthous, thousand+tenthous AS x FROM tenk1
UNION ALL UNION ALL
SELECT 42, 42 FROM tenk1 SELECT 42, 42, hundred FROM tenk1
ORDER BY thousand, tenthous; ORDER BY thousand, tenthous;
QUERY PLAN QUERY PLAN
----------------------------------------------------------------------- -----------------------------------------------------------------
Result Result
-> Merge Append -> Merge Append
Sort Key: public.tenk1.thousand, public.tenk1.tenthous Sort Key: public.tenk1.thousand, public.tenk1.tenthous
-> Index Only Scan using tenk1_thous_tenthous on tenk1 -> Index Only Scan using tenk1_thous_tenthous on tenk1
-> Sort -> Sort
Sort Key: (42), (42) Sort Key: (42), (42)
-> Index Only Scan using tenk1_thous_tenthous on tenk1 -> Index Only Scan using tenk1_hundred on tenk1
(7 rows) (7 rows)
explain (costs off) explain (costs off)
......
...@@ -423,9 +423,9 @@ SELECT thousand, thousand FROM tenk1 ...@@ -423,9 +423,9 @@ SELECT thousand, thousand FROM tenk1
ORDER BY thousand, tenthous; ORDER BY thousand, tenthous;
explain (costs off) explain (costs off)
SELECT thousand, tenthous FROM tenk1 SELECT thousand, tenthous, thousand+tenthous AS x FROM tenk1
UNION ALL UNION ALL
SELECT 42, 42 FROM tenk1 SELECT 42, 42, hundred FROM tenk1
ORDER BY thousand, tenthous; ORDER BY thousand, tenthous;
explain (costs off) explain (costs off)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment