diff --git a/doc/src/sgml/ref/drop_aggregate.sgml b/doc/src/sgml/ref/drop_aggregate.sgml
index 8efc31a732..d67b4375a3 100644
--- a/doc/src/sgml/ref/drop_aggregate.sgml
+++ b/doc/src/sgml/ref/drop_aggregate.sgml
@@ -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
diff --git a/doc/src/sgml/ref/drop_operator.sgml b/doc/src/sgml/ref/drop_operator.sgml
index 6c707960b5..ca1ec3be20 100644
--- a/doc/src/sgml/ref/drop_operator.sgml
+++ b/doc/src/sgml/ref/drop_operator.sgml
@@ -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);
diff --git a/doc/src/sgml/xaggr.sgml b/doc/src/sgml/xaggr.sgml
index c1e32f9b01..d8890617ba 100644
--- a/doc/src/sgml/xaggr.sgml
+++ b/doc/src/sgml/xaggr.sgml
@@ -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}'
);
diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml
index b61c46de9c..d02718d53a 100644
--- a/doc/src/sgml/xfunc.sgml
+++ b/doc/src/sgml/xfunc.sgml
@@ -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';