Minor updates/corrections for CREATE/DROP FUNCTION/AGGREGATE/OPERATOR.
authorTom Lane
Mon, 23 Oct 2000 00:46:07 +0000 (00:46 +0000)
committerTom Lane
Mon, 23 Oct 2000 00:46:07 +0000 (00:46 +0000)
doc/src/sgml/ref/drop_aggregate.sgml
doc/src/sgml/ref/drop_operator.sgml
doc/src/sgml/xaggr.sgml
doc/src/sgml/xfunc.sgml

index 8efc31a732e695852baddcb3ae7fb8d2bc6495b5..d67b4375a3cbe5a6d22c3350ed78ccebc2b18597 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -47,7 +47,8 @@ DROP AGGREGATE name 
       type
       
        
-   The type of an existing aggregate function.
+   The input datatype of an existing aggregate function,
+   or * if the function accepts any input type.
    (Refer to the PostgreSQL User's Guide for
    further information about data types.)
    This should become a cross-reference rather than a
index 6c707960b56609fbbcaebcc4f7e68ffc5c636201..ca1ec3be2027a8d4eaf6524f985a464dd96afe88 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -24,7 +24,7 @@ Postgres documentation
    1999-07-20
   
   
-DROP OPERATOR id ( type | NONE [,...] )
+DROP OPERATOR id ( lefttype | NONE , righttype | NONE )
   
   
   
@@ -45,10 +45,20 @@ DROP OPERATOR id ( 
       
      
      
-      type
+      lefttype
       
        
-   The type of function parameters.
+   The type of the operator's left argument; write NONE if the
+   operator has no left argument.
+       
+      
+     
+     
+      righttype
+      
+       
+   The type of the operator's right argument; write NONE if the
+   operator has no right argument.
        
       
      
@@ -127,7 +137,7 @@ ERROR:  RemoveOperator: right unary operator 'ope
   
   
    The left or right type of a left or right unary
-   operator, respectively, may be specified as NONE.
+   operator, respectively, must be specified as NONE.
   
 
   
@@ -166,13 +176,13 @@ DROP OPERATOR ^ (int4, int4);
    
   
   
-   Remove left unary negation operator (b !) for booleans:
+   Remove left unary negation operator (! b) for booleans:
    
 DROP OPERATOR ! (none, bool);
    
   
   
-   Remove right unary factorial operator (! i) for
+   Remove right unary factorial operator (i !) for
    int4:
    
 DROP OPERATOR ! (int4, none);
index c1e32f9b015bbb66602755a797258002b6ade21e..d8890617babf6a47fcbbb33330c941927ba59cbf 100644 (file)
@@ -1,5 +1,5 @@
 
 
  
@@ -100,7 +100,7 @@ SELECT complex_sum(a) FROM test_complex;
 CREATE AGGREGATE avg (
     sfunc = float8_accum,
     basetype = float8,
-    stype = _float8,
+    stype = float8[],
     finalfunc = float8_avg,
     initcond = '{0,0}'
 );
index b61c46de9ce7b8f6686bac51c21f4148d69d3dcf..d02718d53a7e8b4479114ddb078de2753b7d2415 100644 (file)
@@ -1,5 +1,5 @@
 
 
  
@@ -108,7 +108,7 @@ SELECT tp1( 17,100.0);
      EMP, and retrieves multiple results:
 
      
-CREATE FUNCTION hobbies (EMP) RETURNS SET OF hobbies
+CREATE FUNCTION hobbies (EMP) RETURNS SETOF hobbies
     AS 'SELECT hobbies.* FROM hobbies
         WHERE $1.name = hobbies.person'
     LANGUAGE 'sql';