]> granicus.if.org Git - postgresql/commitdiff
Adjust range type docs for some last-minute changes I made to the patch.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 8 Nov 2011 07:40:37 +0000 (09:40 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 8 Nov 2011 07:42:32 +0000 (09:42 +0200)
non_empty(anyrange) function was removed, empty(anyrange) was renamed to
isempty(anyrange), and !? operators were removed.

doc/src/sgml/func.sgml
doc/src/sgml/rangetypes.sgml

index f81bb9db9770422bf7dcb5c032ef2c1fdb5a51a6..7ecf7510435b49e9ab9b19c940046b23d8e39b02 100644 (file)
@@ -10596,19 +10596,6 @@ SELECT NULLIF(value, '(none)') ...
         <entry><literal>[10,15)</literal></entry>
        </row>
 
-       <row>
-        <entry> <literal>!?</literal> </entry>
-        <entry>Is empty?</entry>
-        <entry><literal>'empty'::int4range !?</literal></entry>
-        <entry><literal>t</literal></entry>
-       </row>
-
-       <row>
-        <entry> <literal>?</literal> </entry>
-        <entry>Is non-empty?</entry>
-        <entry><literal>numrange(1.0,2.0)?</literal></entry>
-        <entry><literal>t</literal></entry>
-       </row>
       </tbody>
      </tgroup>
     </table>
@@ -10637,10 +10624,7 @@ SELECT NULLIF(value, '(none)') ...
     <primary>upper</primary>
   </indexterm>
   <indexterm>
-    <primary>empty</primary>
-  </indexterm>
-  <indexterm>
-    <primary>non_empty</primary>
+    <primary>isempty</primary>
   </indexterm>
   <indexterm>
     <primary>lower_inc</primary>
@@ -10693,25 +10677,14 @@ SELECT NULLIF(value, '(none)') ...
        <row>
         <entry>
          <literal>
-          <function>empty</function>(<type>anyrange</type>)
+          <function>isempty</function>(<type>anyrange</type>)
          </literal>
         </entry>
         <entry><type>anyrange</type></entry>
         <entry>is the range empty?</entry>
-        <entry><literal>empty(numrange(1.1,2.2))</literal></entry>
+        <entry><literal>isempty(numrange(1.1,2.2))</literal></entry>
         <entry><literal>false</literal></entry>
        </row>
-       <row>
-        <entry>
-         <literal>
-          <function>non_empty</function>(<type>anyrange</type>)
-         </literal>
-        </entry>
-        <entry><type>anyrange</type></entry>
-        <entry>is the range non-empty?</entry>
-        <entry><literal>non_empty(numrange(1.1,2.2))</literal></entry>
-        <entry><literal>true</literal></entry>
-       </row>
        <row>
         <entry>
          <literal>
index fc5896d8f4245cafbfaf25a77568c8275b16cc79..cf16f25de91715fd1e543ecd43c11d7501c19742 100644 (file)
@@ -84,7 +84,7 @@ SELECT upper(int8range(15, 25));
 SELECT int4range(10, 20) * int4range(15, 25);
 
 -- Is the range non-empty?
-SELECT numrange(1, 5)? ;
+SELECT isempty(numrange(1, 5));
 
 </programlisting>