Adjust range type docs for some last-minute changes I made to the patch.
authorHeikki Linnakangas
Tue, 8 Nov 2011 07:40:37 +0000 (09:40 +0200)
committerHeikki Linnakangas
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)') ...
         [10,15)
        
 
-       
-         !? 
-        Is empty?
-        'empty'::int4range !?
-        t
-       
-
-       
-         ? 
-        Is non-empty?
-        numrange(1.0,2.0)?
-        t
-       
       
      
     
@@ -10637,10 +10624,7 @@ SELECT NULLIF(value, '(none)') ...
     upper
   
   
-    empty
-  
-  
-    non_empty
+    isempty
   
   
     lower_inc
@@ -10693,25 +10677,14 @@ SELECT NULLIF(value, '(none)') ...
        
         
          
-          empty(anyrange)
+          isempty(anyrange)
          
         
         anyrange
         is the range empty?
-        empty(numrange(1.1,2.2))
+        isempty(numrange(1.1,2.2))
         false
        
-       
-        
-         
-          non_empty(anyrange)
-         
-        
-        anyrange
-        is the range non-empty?
-        non_empty(numrange(1.1,2.2))
-        true
-       
        
         
          
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));