language, tablespace, trigger, rule, opclass, function, aggregate. operator, and cast.
-DROP AGGREGATE name ( type ) [ CASCADE | RESTRICT ]
+DROP AGGREGATE [ IF EXISTS ] name ( type ) [ CASCADE | RESTRICT ]
Parameters
+
+
+ IF EXISTS
+
+ Do not throw an error if the aggregate does not exist. A notice is issued
+ in this case.
+
+
+
+
name
-
+
-DROP CAST (sourcetype AS targettype) [ CASCADE | RESTRICT ]
+DROP CAST [ IF EXISTS ] (sourcetype AS targettype) [ CASCADE | RESTRICT ]
Parameters
+
+
+ IF EXISTS
+
+ Do not throw an error if the cast does not exist. A notice is issued
+ in this case.
+
+
+
+
sourcetype
-DROP FUNCTION name ( [ [ argmode ] [ argname ] argtype [, ...] ] )
+DROP FUNCTION [ IF EXISTS ] name ( [ [ argmode ] [ argname ] argtype [, ...] ] )
[ CASCADE | RESTRICT ]
Parameters
-
+
+ IF EXISTS
+
+ Do not throw an error if the function does not exist. A notice is issued
+ in this case.
+
+
+
+
+
name
-DROP [ PROCEDURAL ] LANGUAGE name [ CASCADE | RESTRICT ]
+DROP [ PROCEDURAL ] LANGUAGE [ IF EXISTS ] name [ CASCADE | RESTRICT ]
Parameters
+
+
+ IF EXISTS
+
+ Do not throw an error if the function does not exist. A notice is issued
+ in this case.
+
+
+
+
name
-DROP OPERATOR CLASS name USING index_method [ CASCADE | RESTRICT ]
+DROP OPERATOR CLASS [ IF EXISTS ] name USING index_method [ CASCADE | RESTRICT ]
Parameters
+
+
+ IF EXISTS
+
+ Do not throw an error if the operator class does not exist. A notice is issued
+ in this case.
+
+
+
+
name
-DROP OPERATOR name ( { lefttype | NONE } , { righttype | NONE } ) [ CASCADE | RESTRICT ]
+DROP OPERATOR [ IF EXISTS ] name ( { lefttype | NONE } , { righttype | NONE } ) [ CASCADE | RESTRICT ]
Parameters
+
+
+ IF EXISTS
+
+ Do not throw an error if the operator does not exist. A notice is issued
+ in this case.
+
+
+
+
name
-DROP RULE name ON relation [ CASCADE | RESTRICT ]
+DROP RULE [ IF EXISTS ] name ON relation [ CASCADE | RESTRICT ]
Parameters
+
+
+ IF EXISTS
+
+ Do not throw an error if the rule does not exist. A notice is issued
+ in this case.
+
+
+
+
name
-DROP TABLESPACE tablespacename
+DROP TABLESPACE [ IF EXISTS ] tablespacename
Parameters
+
+
+ IF EXISTS
+
+ Do not throw an error if the tablespace does not exist. A notice is issued
+ in this case.
+
+
+
+
tablespacename
-DROP TRIGGER name ON table [ CASCADE | RESTRICT ]
+DROP TRIGGER [ IF EXISTS ] name ON table [ CASCADE | RESTRICT ]
Parameters
+
+
+ IF EXISTS
+
+ Do not throw an error if the trigger does not exist. A notice is issued
+ in this case.
+
+
+
+
name