summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2011-11-09 05:13:37 +0000
committerTom Lane2011-11-09 05:13:37 +0000
commit2c30f96103c320d4e3c8cab2807d88476f584278 (patch)
treeeda7a92df52c7987a67c3c98723bcd84a800f24e
parent6d295b64945cb6ff9b64f55d1e51b5e2a1bb6f84 (diff)
Tweak new regression test case for more portability.
Ensure that same index gets selected on 32-bit and 64-bit machines. Per buildfarm results.
-rw-r--r--src/test/regress/expected/inherit.out10
-rw-r--r--src/test/regress/sql/inherit.sql4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/test/regress/expected/inherit.out b/src/test/regress/expected/inherit.out
index 3e2ab9ac5b..72986c78a2 100644
--- a/src/test/regress/expected/inherit.out
+++ b/src/test/regress/expected/inherit.out
@@ -1266,19 +1266,19 @@ ORDER BY thousand, tenthous;
(7 rows)
explain (costs off)
-SELECT thousand, tenthous FROM tenk1
+SELECT thousand, tenthous, thousand+tenthous AS x FROM tenk1
UNION ALL
-SELECT 42, 42 FROM tenk1
+SELECT 42, 42, hundred FROM tenk1
ORDER BY thousand, tenthous;
- QUERY PLAN
------------------------------------------------------------------------
+ QUERY PLAN
+-----------------------------------------------------------------
Result
-> Merge Append
Sort Key: public.tenk1.thousand, public.tenk1.tenthous
-> Index Only Scan using tenk1_thous_tenthous on tenk1
-> Sort
Sort Key: (42), (42)
- -> Index Only Scan using tenk1_thous_tenthous on tenk1
+ -> Index Only Scan using tenk1_hundred on tenk1
(7 rows)
explain (costs off)
diff --git a/src/test/regress/sql/inherit.sql b/src/test/regress/sql/inherit.sql
index 6e5a1d1c8e..deda5a519e 100644
--- a/src/test/regress/sql/inherit.sql
+++ b/src/test/regress/sql/inherit.sql
@@ -423,9 +423,9 @@ SELECT thousand, thousand FROM tenk1
ORDER BY thousand, tenthous;
explain (costs off)
-SELECT thousand, tenthous FROM tenk1
+SELECT thousand, tenthous, thousand+tenthous AS x FROM tenk1
UNION ALL
-SELECT 42, 42 FROM tenk1
+SELECT 42, 42, hundred FROM tenk1
ORDER BY thousand, tenthous;
explain (costs off)