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

Commit17d490e

Browse files
committed
doc: clarify handling of range upper/lower/upper_inf/lower_inf()
Clarify handling of infinite range bounds.Reported-by: jani.rahkola@iki.fiDiscussion:https://postgr.es/m/160508672127.25505.8356390205508789564@wrigleys.postgresql.orgCo-authored-by: Laurenz AlbeBackpatch-through: 16
1 parente72821c commit17d490e

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19683,7 +19683,7 @@ SELECT NULLIF(value, '(none)') ...
1968319683
</para>
1968419684
<para>
1968519685
Extracts the lower bound of the range (<literal>NULL</literal> if the
19686-
range is empty orthelower bound is infinite).
19686+
range is empty orhas nolower bound).
1968719687
</para>
1968819688
<para>
1968919689
<literal>lower(numrange(1.1,2.2))</literal>
@@ -19701,7 +19701,7 @@ SELECT NULLIF(value, '(none)') ...
1970119701
</para>
1970219702
<para>
1970319703
Extracts the upper bound of the range (<literal>NULL</literal> if the
19704-
range is empty ortheupper bound is infinite).
19704+
range is empty orhas noupper bound).
1970519705
</para>
1970619706
<para>
1970719707
<literal>upper(numrange(1.1,2.2))</literal>
@@ -19769,7 +19769,8 @@ SELECT NULLIF(value, '(none)') ...
1976919769
<returnvalue>boolean</returnvalue>
1977019770
</para>
1977119771
<para>
19772-
Is the range's lower bound infinite?
19772+
Does the range have no lower bound? (A lower bound of
19773+
<literal>-Infinity</literal> returns false.)
1977319774
</para>
1977419775
<para>
1977519776
<literal>lower_inf('(,)'::daterange)</literal>
@@ -19786,7 +19787,8 @@ SELECT NULLIF(value, '(none)') ...
1978619787
<returnvalue>boolean</returnvalue>
1978719788
</para>
1978819789
<para>
19789-
Is the range's upper bound infinite?
19790+
Does the range have no upper bound? (An upper bound of
19791+
<literal>Infinity</literal> returns false.)
1979019792
</para>
1979119793
<para>
1979219794
<literal>upper_inf('(,)'::daterange)</literal>
@@ -19841,7 +19843,7 @@ SELECT NULLIF(value, '(none)') ...
1984119843
</para>
1984219844
<para>
1984319845
Extracts the lower bound of the multirange (<literal>NULL</literal> if the
19844-
multirange is emptyor the lower bound is infinite).
19846+
multirange is emptyhas no lower bound).
1984519847
</para>
1984619848
<para>
1984719849
<literal>lower('{[1.1,2.2)}'::nummultirange)</literal>
@@ -19859,7 +19861,7 @@ SELECT NULLIF(value, '(none)') ...
1985919861
</para>
1986019862
<para>
1986119863
Extracts the upper bound of the multirange (<literal>NULL</literal> if the
19862-
multirange is empty ortheupper bound is infinite).
19864+
multirange is empty orhas noupper bound).
1986319865
</para>
1986419866
<para>
1986519867
<literal>upper('{[1.1,2.2)}'::nummultirange)</literal>
@@ -19927,7 +19929,8 @@ SELECT NULLIF(value, '(none)') ...
1992719929
<returnvalue>boolean</returnvalue>
1992819930
</para>
1992919931
<para>
19930-
Is the multirange's lower bound infinite?
19932+
Does the multirange have no lower bound? (A lower bound of
19933+
<literal>-Infinity</literal> returns false.)
1993119934
</para>
1993219935
<para>
1993319936
<literal>lower_inf('{(,)}'::datemultirange)</literal>
@@ -19944,7 +19947,8 @@ SELECT NULLIF(value, '(none)') ...
1994419947
<returnvalue>boolean</returnvalue>
1994519948
</para>
1994619949
<para>
19947-
Is the multirange's upper bound infinite?
19950+
Does the multirange have no upper bound? (An upper bound of
19951+
<literal>Infinity</literal> returns false.)
1994819952
</para>
1994919953
<para>
1995019954
<literal>upper_inf('{(,)}'::datemultirange)</literal>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp