From 2e5fda7b7e0613b4b7c69d69b609e639deac7c17 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 3 Oct 2001 20:54:22 +0000 Subject: DROP AGGREGATE and COMMENT ON AGGREGATE now accept the expected syntax 'aggname (aggtype)'. The old syntax 'aggname aggtype' is still accepted for backwards compatibility. Fix pg_dump, which was actually broken for most cases of user-defined aggregates. Clean up error messages associated with these commands. --- doc/src/sgml/ref/comment.sgml | 13 ++++++------- doc/src/sgml/ref/drop_aggregate.sgml | 8 ++++---- 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/comment.sgml b/doc/src/sgml/ref/comment.sgml index 0ccff62a30c..dc913d49068 100644 --- a/doc/src/sgml/ref/comment.sgml +++ b/doc/src/sgml/ref/comment.sgml @@ -1,5 +1,5 @@ @@ -25,11 +25,10 @@ Postgres documentation COMMENT ON [ - [ DATABASE | INDEX | RULE | SEQUENCE | TABLE | TYPE | VIEW ] - object_name | - COLUMN table_name.column_name| - AGGREGATE agg_name agg_type| - FUNCTION func_name (arg1, arg2, ...)| + [ DATABASE | INDEX | RULE | SEQUENCE | TABLE | TYPE | VIEW ] object_name | + COLUMN table_name.column_name | + AGGREGATE agg_name (agg_type) | + FUNCTION func_name (arg1, arg2, ...) | OPERATOR op (leftoperand_type rightoperand_type) | TRIGGER trigger_name ON table_name ] IS 'text' @@ -102,7 +101,7 @@ COMMENT COMMENT adds a comment to an object that can be easily retrieved with psql's \dd, \d+, or \l+ commands. - To remove a comment, use NULL. + To remove a comment, write NULL. Comments are automatically dropped when the object is dropped. diff --git a/doc/src/sgml/ref/drop_aggregate.sgml b/doc/src/sgml/ref/drop_aggregate.sgml index 6b67a84fb79..937d6ac4948 100644 --- a/doc/src/sgml/ref/drop_aggregate.sgml +++ b/doc/src/sgml/ref/drop_aggregate.sgml @@ -1,5 +1,5 @@ @@ -23,7 +23,7 @@ Postgres documentation 1999-07-20 -DROP AGGREGATE name type +DROP AGGREGATE name ( type ) @@ -81,7 +81,7 @@ DROP -ERROR: RemoveAggregate: aggregate 'agg' for 'name' does not exist +ERROR: RemoveAggregate: aggregate 'name' for type type does not exist @@ -133,7 +133,7 @@ ERROR: RemoveAggregate: aggregate 'aggint4: -DROP AGGREGATE myavg int4; +DROP AGGREGATE myavg(int4); -- cgit v1.2.3