Skip to content

Commit d014e6c

Browse files
committed
Clarify the result order of unnest(multirange).
It is best not to mention the storage order, because that is an implementation detail and has confused at least one user, who assumed that the storage order is the order in which the constituent ranges were written in SQL. Since the sorting order is explained at the beginning of the page, it should be sufficient to say that the ranges are returned in ascending order. Author: Laurenz Albe Reviewed-by: Daniel Fredouille Discussion: https://postgr.es/m/169627213477.3727338.17653654241633692682%40wrigleys.postgresql.org
1 parent 12cf3ac commit d014e6c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/src/sgml/func.sgml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20218,8 +20218,7 @@ SELECT NULLIF(value, '(none)') ...
2021820218
<returnvalue>setof anyrange</returnvalue>
2021920219
</para>
2022020220
<para>
20221-
Expands a multirange into a set of ranges.
20222-
The ranges are read out in storage order (ascending).
20221+
Expands a multirange into a set of ranges in ascending order.
2022320222
</para>
2022420223
<para>
2022520224
<literal>unnest('{[1,2), [3,4)}'::int4multirange)</literal>

0 commit comments

Comments
 (0)