docs for DROP ... IF EXISTS for the following cases:
authorAndrew Dunstan
Fri, 16 Jun 2006 22:27:55 +0000 (22:27 +0000)
committerAndrew Dunstan
Fri, 16 Jun 2006 22:27:55 +0000 (22:27 +0000)
  language, tablespace, trigger, rule, opclass, function, aggregate. operator, and cast.

doc/src/sgml/ref/drop_aggregate.sgml
doc/src/sgml/ref/drop_cast.sgml
doc/src/sgml/ref/drop_function.sgml
doc/src/sgml/ref/drop_language.sgml
doc/src/sgml/ref/drop_opclass.sgml
doc/src/sgml/ref/drop_operator.sgml
doc/src/sgml/ref/drop_rule.sgml
doc/src/sgml/ref/drop_tablespace.sgml
doc/src/sgml/ref/drop_trigger.sgml

index 407f63764f25701dd3512b3cdbadb78aa96a0221..e6d03e0bdabffe51eb0031f20b8ee48ae513cdfa 100644 (file)
@@ -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
     
index 4b193cd864eef67cba75d14a2770603630407363..44363b8ae69db2340f65f66d9fa032df4dbb4bc9 100644 (file)
@@ -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 targettype
   Parameters
 
    
+
+   
+    IF EXISTS
+    
+     
+      Do not throw an error if the cast does not exist. A notice is issued 
+      in this case.
+     
+    
+   
+
     
      sourcetype
 
index 85290acff0830addb5d9833583b42119b2a07038..546283b54ca9736755f6b2a8673582239efbeb06 100644 (file)
@@ -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
     
      
index 1f44cf11f494d9bf9fde8ca57be787315c633076..d565df397599ea93ddec1f27a23ecdab18c5129b 100644 (file)
@@ -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
     
index c06de89fd8622b8f72d83d4db5d9301b21f2b3bd..c37c902436712af3bc20f49e6310d9c02833c01a 100644 (file)
@@ -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
     
index b928e721936e3b13d4a86a7e2bd5c315cb5504ae..43529ff179f09e61aba58753ddcb2d275cff415c 100644 (file)
@@ -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
     
index b139009d48f379b7461b12480eba0f749edbb9e5..68331b60639c87154a04c91662e58a70fed08c15 100644 (file)
@@ -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
     
index bd4fb6dcd5e9899482fca13c2590471814b8bd8a..7e5d018238a953268f1e644bed44e6d3a4e66b51 100644 (file)
@@ -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
     
index bfcad66ae8f68fb79db153c407c0713247dcce58..4c45e76f811e38b531e88ec350a42475c33d5f75 100644 (file)
@@ -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