Skip to content
Snippets Groups Projects
Commit ca1d1b79 authored by Tom Lane's avatar Tom Lane
Browse files

Wups, stuck ORDER BY on wrong query while trying to eliminate random

ordering of GROUP BY output due to hash-based aggregation.
parent 63c38401
No related branches found
No related tags found
No related merge requests found
...@@ -858,7 +858,7 @@ select * from rtest_view3; ...@@ -858,7 +858,7 @@ select * from rtest_view3;
delete from rtest_view3; delete from rtest_view3;
insert into rtest_view4 select * from rtest_vview4 where 3 > refcount; insert into rtest_view4 select * from rtest_vview4 where 3 > refcount;
select * from rtest_view4; select * from rtest_view4 order by a, b;
a | b | c a | b | c
---+--------+--- ---+--------+---
2 | item 2 | 2 2 | item 2 | 2
...@@ -868,7 +868,7 @@ select * from rtest_view4; ...@@ -868,7 +868,7 @@ select * from rtest_view4;
delete from rtest_view4; delete from rtest_view4;
insert into rtest_view4 select * from rtest_vview5 where a > 2 and refcount = 0; insert into rtest_view4 select * from rtest_vview5 where a > 2 and refcount = 0;
select * from rtest_view4 order by a, b; select * from rtest_view4;
a | b | c a | b | c
---+--------+--- ---+--------+---
3 | item 3 | 0 3 | item 3 | 0
......
...@@ -467,11 +467,11 @@ select * from rtest_view3; ...@@ -467,11 +467,11 @@ select * from rtest_view3;
delete from rtest_view3; delete from rtest_view3;
insert into rtest_view4 select * from rtest_vview4 where 3 > refcount; insert into rtest_view4 select * from rtest_vview4 where 3 > refcount;
select * from rtest_view4; select * from rtest_view4 order by a, b;
delete from rtest_view4; delete from rtest_view4;
insert into rtest_view4 select * from rtest_vview5 where a > 2 and refcount = 0; insert into rtest_view4 select * from rtest_vview5 where a > 2 and refcount = 0;
select * from rtest_view4 order by a, b; select * from rtest_view4;
delete from rtest_view4; delete from rtest_view4;
-- --
-- Test for computations in views -- Test for computations in views
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment