Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c30f96

Browse files
committed
Tweak new regression test case for more portability.
Ensure that same index gets selected on 32-bit and 64-bit machines. Per buildfarm results.
1 parent 6d295b6 commit 2c30f96

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/test/regress/expected/inherit.out

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,19 +1266,19 @@ ORDER BY thousand, tenthous;
12661266
(7 rows)
12671267

12681268
explain (costs off)
1269-
SELECT thousand, tenthous FROM tenk1
1269+
SELECT thousand, tenthous, thousand+tenthous AS x FROM tenk1
12701270
UNION ALL
1271-
SELECT 42, 42 FROM tenk1
1271+
SELECT 42, 42, hundred FROM tenk1
12721272
ORDER BY thousand, tenthous;
1273-
QUERY PLAN
1274-
-----------------------------------------------------------------------
1273+
QUERY PLAN
1274+
-----------------------------------------------------------------
12751275
Result
12761276
-> Merge Append
12771277
Sort Key: public.tenk1.thousand, public.tenk1.tenthous
12781278
-> Index Only Scan using tenk1_thous_tenthous on tenk1
12791279
-> Sort
12801280
Sort Key: (42), (42)
1281-
-> Index Only Scan using tenk1_thous_tenthous on tenk1
1281+
-> Index Only Scan using tenk1_hundred on tenk1
12821282
(7 rows)
12831283

12841284
explain (costs off)

src/test/regress/sql/inherit.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,9 @@ SELECT thousand, thousand FROM tenk1
423423
ORDER BY thousand, tenthous;
424424

425425
explain (costs off)
426-
SELECT thousand, tenthous FROM tenk1
426+
SELECT thousand, tenthous, thousand+tenthous AS x FROM tenk1
427427
UNION ALL
428-
SELECT 42, 42 FROM tenk1
428+
SELECT 42, 42, hundred FROM tenk1
429429
ORDER BY thousand, tenthous;
430430

431431
explain (costs off)

0 commit comments

Comments
 (0)