blob: 97e875579b775cab336d879aca69d25c6a748638 (
plain) (
blame)
1
2
3
4
5
6
7
|
-- bug #5049: early 8.4.x chokes on volatile DISTINCT ON clauses
select distinct on (1) floor(random()) as r, f1 from int4_tbl order by 1,2;
r | f1
---+-------------
0 | -2147483647
(1 row)
|