Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6be40de

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 thesub-select over and over; it seems unlikely that doing so 10000 timesis a more useful test than doing it a few dozen times.
1 parent6e1664b commit6be40de

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, unique2from tenk1
103-
where (unique1, unique2)< any (select ten, tenfrom tenk1where hundred<3);
103+
where (unique1, unique2)< any (select ten, tenfrom tenk1where hundred<3)
104+
and unique1<=20;
104105

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp