diff --git a/doc/src/sgml/ref/drop_aggregate.sgml b/doc/src/sgml/ref/drop_aggregate.sgml
index 407f63764f2..e6d03e0bdab 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 4b193cd864e..44363b8ae69 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 85290acff08..546283b54ca 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 1f44cf11f49..d565df39759 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 c06de89fd86..c37c9024367 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 b928e721936..43529ff179f 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 b139009d48f..68331b60639 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 bd4fb6dcd5e..7e5d018238a 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 bfcad66ae8f..4c45e76f811 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