Re: create or replace trigger?

From: "David Parker" <dparker(at)tazznetworks(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "postgres general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: create or replace trigger?
Date: 2005-03-27 13:04:33
Message-ID: 07FDEE0ED7455A48AC42AC2070EDFF7C5CECFF@corpsrv2.tazznetworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I only wondered because I had a situation recently where I had to create
a trigger based on an event in an application (don't want to initiate
the trigger processing until other stuff has happened in the
environment), and if I'd had the CREATE OR REPLACE I could have avoided
the step of checking if the trigger existed already (I had CREAT OR
REPLACE on the trigger function). But that's certainly not a hardship,
and probably more "correct", anyway!

Thanks.

- DAP

>-----Original Message-----
>From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
>Sent: Sunday, March 27, 2005 1:50 AM
>To: David Parker
>Cc: postgres general
>Subject: Re: [GENERAL] create or replace trigger?
>
>"David Parker" <dparker(at)tazznetworks(dot)com> writes:
>> Is there a technical reason that the "or replace" syntax isn't
>> supported for CREATE TRIGGER?
>
>Lack of round tuits.
>
>Does it seem like a high priority to you? I'd think that
>changes in the trigger function (which you *can* do with
>CREATE OR REPLACE) would be much more common than alterations
>in the trigger parameters per se.
>
> regards, tom lane
>

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2005-03-27 15:42:11 Re: PG constraint
Previous Message Jaqui Greenlees 2005-03-27 12:36:08 major delays in list....