From e287fb27a5d2419286cd90cd7ddc1a077325d93f Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Fri, 16 Jun 2006 22:27:55 +0000 Subject: [PATCH] docs for DROP ... IF EXISTS for the following cases: language, tablespace, trigger, rule, opclass, function, aggregate. operator, and cast. --- doc/src/sgml/ref/drop_aggregate.sgml | 15 +++++++++++++-- doc/src/sgml/ref/drop_cast.sgml | 15 +++++++++++++-- doc/src/sgml/ref/drop_function.sgml | 16 +++++++++++++--- doc/src/sgml/ref/drop_language.sgml | 15 +++++++++++++-- doc/src/sgml/ref/drop_opclass.sgml | 15 +++++++++++++-- doc/src/sgml/ref/drop_operator.sgml | 15 +++++++++++++-- doc/src/sgml/ref/drop_rule.sgml | 15 +++++++++++++-- doc/src/sgml/ref/drop_tablespace.sgml | 15 +++++++++++++-- doc/src/sgml/ref/drop_trigger.sgml | 15 +++++++++++++-- 9 files changed, 117 insertions(+), 19 deletions(-) diff --git a/doc/src/sgml/ref/drop_aggregate.sgml b/doc/src/sgml/ref/drop_aggregate.sgml index 407f63764f..e6d03e0bda 100644 --- a/doc/src/sgml/ref/drop_aggregate.sgml +++ b/doc/src/sgml/ref/drop_aggregate.sgml @@ -1,5 +1,5 @@ @@ -20,7 +20,7 @@ PostgreSQL documentation -DROP AGGREGATE name ( type ) [ CASCADE | RESTRICT ] +DROP AGGREGATE [ IF EXISTS ] name ( type ) [ CASCADE | RESTRICT ] @@ -38,6 +38,17 @@ DROP AGGREGATE name ( Parameters + + + IF EXISTS + + + Do not throw an error if the aggregate does not exist. A notice is issued + in this case. + + + + name diff --git a/doc/src/sgml/ref/drop_cast.sgml b/doc/src/sgml/ref/drop_cast.sgml index 4b193cd864..44363b8ae6 100644 --- a/doc/src/sgml/ref/drop_cast.sgml +++ b/doc/src/sgml/ref/drop_cast.sgml @@ -1,4 +1,4 @@ - + @@ -17,7 +17,7 @@ -DROP CAST (sourcetype AS targettype) [ CASCADE | RESTRICT ] +DROP CAST [ IF EXISTS ] (sourcetype AS targettype) [ CASCADE | RESTRICT ] @@ -39,6 +39,17 @@ DROP CAST (sourcetype AS targettypeParameters + + + IF EXISTS + + + Do not throw an error if the cast does not exist. A notice is issued + in this case. + + + + sourcetype diff --git a/doc/src/sgml/ref/drop_function.sgml b/doc/src/sgml/ref/drop_function.sgml index 85290acff0..546283b54c 100644 --- a/doc/src/sgml/ref/drop_function.sgml +++ b/doc/src/sgml/ref/drop_function.sgml @@ -1,5 +1,5 @@ @@ -20,7 +20,7 @@ PostgreSQL documentation -DROP FUNCTION name ( [ [ argmode ] [ argname ] argtype [, ...] ] ) +DROP FUNCTION [ IF EXISTS ] name ( [ [ argmode ] [ argname ] argtype [, ...] ] ) [ CASCADE | RESTRICT ] @@ -41,7 +41,17 @@ DROP FUNCTION name ( [ [ Parameters - + + IF EXISTS + + + Do not throw an error if the function does not exist. A notice is issued + in this case. + + + + + name diff --git a/doc/src/sgml/ref/drop_language.sgml b/doc/src/sgml/ref/drop_language.sgml index 1f44cf11f4..d565df3975 100644 --- a/doc/src/sgml/ref/drop_language.sgml +++ b/doc/src/sgml/ref/drop_language.sgml @@ -1,5 +1,5 @@ @@ -20,7 +20,7 @@ PostgreSQL documentation -DROP [ PROCEDURAL ] LANGUAGE name [ CASCADE | RESTRICT ] +DROP [ PROCEDURAL ] LANGUAGE [ IF EXISTS ] name [ CASCADE | RESTRICT ] @@ -38,6 +38,17 @@ DROP [ PROCEDURAL ] LANGUAGE name [ Parameters + + + IF EXISTS + + + Do not throw an error if the function does not exist. A notice is issued + in this case. + + + + name diff --git a/doc/src/sgml/ref/drop_opclass.sgml b/doc/src/sgml/ref/drop_opclass.sgml index c06de89fd8..c37c902436 100644 --- a/doc/src/sgml/ref/drop_opclass.sgml +++ b/doc/src/sgml/ref/drop_opclass.sgml @@ -1,5 +1,5 @@ @@ -20,7 +20,7 @@ PostgreSQL documentation -DROP OPERATOR CLASS name USING index_method [ CASCADE | RESTRICT ] +DROP OPERATOR CLASS [ IF EXISTS ] name USING index_method [ CASCADE | RESTRICT ] @@ -37,6 +37,17 @@ DROP OPERATOR CLASS name USING Parameters + + + IF EXISTS + + + Do not throw an error if the operator class does not exist. A notice is issued + in this case. + + + + name diff --git a/doc/src/sgml/ref/drop_operator.sgml b/doc/src/sgml/ref/drop_operator.sgml index b928e72193..43529ff179 100644 --- a/doc/src/sgml/ref/drop_operator.sgml +++ b/doc/src/sgml/ref/drop_operator.sgml @@ -1,5 +1,5 @@ @@ -20,7 +20,7 @@ PostgreSQL documentation -DROP OPERATOR name ( { lefttype | NONE } , { righttype | NONE } ) [ CASCADE | RESTRICT ] +DROP OPERATOR [ IF EXISTS ] name ( { lefttype | NONE } , { righttype | NONE } ) [ CASCADE | RESTRICT ] @@ -38,6 +38,17 @@ DROP OPERATOR name ( { Parameters + + + IF EXISTS + + + Do not throw an error if the operator does not exist. A notice is issued + in this case. + + + + name diff --git a/doc/src/sgml/ref/drop_rule.sgml b/doc/src/sgml/ref/drop_rule.sgml index b139009d48..68331b6063 100644 --- a/doc/src/sgml/ref/drop_rule.sgml +++ b/doc/src/sgml/ref/drop_rule.sgml @@ -1,5 +1,5 @@ @@ -20,7 +20,7 @@ PostgreSQL documentation -DROP RULE name ON relation [ CASCADE | RESTRICT ] +DROP RULE [ IF EXISTS ] name ON relation [ CASCADE | RESTRICT ] @@ -36,6 +36,17 @@ DROP RULE name ON Parameters + + + IF EXISTS + + + Do not throw an error if the rule does not exist. A notice is issued + in this case. + + + + name diff --git a/doc/src/sgml/ref/drop_tablespace.sgml b/doc/src/sgml/ref/drop_tablespace.sgml index bd4fb6dcd5..7e5d018238 100644 --- a/doc/src/sgml/ref/drop_tablespace.sgml +++ b/doc/src/sgml/ref/drop_tablespace.sgml @@ -1,5 +1,5 @@ @@ -20,7 +20,7 @@ PostgreSQL documentation -DROP TABLESPACE tablespacename +DROP TABLESPACE [ IF EXISTS ] tablespacename @@ -44,6 +44,17 @@ DROP TABLESPACE tablespacename Parameters + + + IF EXISTS + + + Do not throw an error if the tablespace does not exist. A notice is issued + in this case. + + + + tablespacename diff --git a/doc/src/sgml/ref/drop_trigger.sgml b/doc/src/sgml/ref/drop_trigger.sgml index bfcad66ae8..4c45e76f81 100644 --- a/doc/src/sgml/ref/drop_trigger.sgml +++ b/doc/src/sgml/ref/drop_trigger.sgml @@ -1,5 +1,5 @@ @@ -20,7 +20,7 @@ PostgreSQL documentation -DROP TRIGGER name ON table [ CASCADE | RESTRICT ] +DROP TRIGGER [ IF EXISTS ] name ON table [ CASCADE | RESTRICT ] @@ -38,6 +38,17 @@ DROP TRIGGER name ON Parameters + + + IF EXISTS + + + Do not throw an error if the trigger does not exist. A notice is issued + in this case. + + + + name