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

Skip to content

Commit ca1d1b7

Browse files
committed
Wups, stuck ORDER BY on wrong query while trying to eliminate random
ordering of GROUP BY output due to hash-based aggregation.
1 parent 63c3840 commit ca1d1b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/regress/expected/rules.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ select * from rtest_view3;
858858

859859
delete from rtest_view3;
860860
insert into rtest_view4 select * from rtest_vview4 where 3 > refcount;
861-
select * from rtest_view4;
861+
select * from rtest_view4 order by a, b;
862862
a | b | c
863863
---+--------+---
864864
2 | item 2 | 2
@@ -868,7 +868,7 @@ select * from rtest_view4;
868868

869869
delete from rtest_view4;
870870
insert into rtest_view4 select * from rtest_vview5 where a > 2 and refcount = 0;
871-
select * from rtest_view4 order by a, b;
871+
select * from rtest_view4;
872872
a | b | c
873873
---+--------+---
874874
3 | item 3 | 0

src/test/regress/sql/rules.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,11 +467,11 @@ select * from rtest_view3;
467467
delete from rtest_view3;
468468

469469
insert into rtest_view4 select * from rtest_vview4 where 3 > refcount;
470-
select * from rtest_view4;
470+
select * from rtest_view4 order by a, b;
471471
delete from rtest_view4;
472472

473473
insert into rtest_view4 select * from rtest_vview5 where a > 2 and refcount = 0;
474-
select * from rtest_view4 order by a, b;
474+
select * from rtest_view4;
475475
delete from rtest_view4;
476476
--
477477
-- Test for computations in views

0 commit comments

Comments
 (0)