Skip to content

Commit 6be40de

Browse files
committed
Minor tweak to make rowtypes regression test run faster. We don't
currently have any better strategy for this query than re-running the sub-select over and over; it seems unlikely that doing so 10000 times is a more useful test than doing it a few dozen times.
1 parent 6e1664b commit 6be40de

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/test/regress/expected/rowtypes.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ LINE 1: select ROW('ABC','DEF') ~~ ROW('DEF','ABC') as fail;
206206
HINT: Row comparison operators must be associated with btree operator families.
207207
-- Check row comparison with a subselect
208208
select unique1, unique2 from tenk1
209-
where (unique1, unique2) < any (select ten, ten from tenk1 where hundred < 3);
209+
where (unique1, unique2) < any (select ten, ten from tenk1 where hundred < 3)
210+
and unique1 <= 20;
210211
unique1 | unique2
211212
---------+---------
212213
1 | 2838

src/test/regress/sql/rowtypes.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ select ROW('ABC','DEF') ~~ ROW('DEF','ABC') as fail;
100100

101101
-- Check row comparison with a subselect
102102
select unique1, unique2 from tenk1
103-
where (unique1, unique2) < any (select ten, ten from tenk1 where hundred < 3);
103+
where (unique1, unique2) < any (select ten, ten from tenk1 where hundred < 3)
104+
and unique1 <= 20;
104105

105106
-- Also check row comparison with an indexable condition
106107
select thousand, tenthous from tenk1

0 commit comments

Comments
 (0)