Re: CREATE OR REPLACE TRIGGER not supported? - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: CREATE OR REPLACE TRIGGER not supported?
Date
Msg-id 4144F888.6080403@familyhealth.com.au
Whole thread Raw
In response to CREATE OR REPLACE TRIGGER not supported?  (Satoshi Nagayasu <nagayasus@nttdata.co.jp>)
Responses Re: CREATE OR REPLACE TRIGGER not supported?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> A few days ago, I found that "CREATE OR REPLACE TRIGGER"
> is not allowed on 7.4.2.  However, functions and rules allow
> "CREATE OR REPLACE" statement.
> 
> Is threre any reason not to support "CREATE OR REPLACE"
> only for triggers?

Because the oid of a trigger doesn't matter.  You can go being; drop 
trigger; create trigger; commit; atomically.

Chris



pgsql-hackers by date:

Previous
From: John Hansen
Date:
Subject: Re: CREATE OR REPLACE TRIGGER not supported?
Next
From: Tom Lane
Date:
Subject: Re: CREATE OR REPLACE TRIGGER not supported?