Re: v9.1, DROP TRIGGER IF EXISTS behaving oddly

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: "Williamson, Michael" <Michael(dot)Williamson(at)tamucc(dot)edu>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: v9.1, DROP TRIGGER IF EXISTS behaving oddly
Date: 2016-01-14 00:13:49
Message-ID: 5696E83D.20202@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 01/13/2016 03:25 PM, Williamson, Michael wrote:

Ccing list
>>
>> Is that happening on all triggers you are trying to DROP, or just
>> this one?
>
> All, consistently.
>>
>> If just this one, you might want to check to see if the trigger was
>> created with a quoted mixed case name and therefore needs to have
>> the
>> exact case quoted when used in the DROP TRIGGER. Something else to
>> look
>> at is whether there is more then one customer table and you need to
>> schema qualify the name.
>>
>
> The triggers are all being defined in unquoted lowercase. Also, these
> triggers happen call functions, but I doubt that is relevant.

So is the below the actual error you are getting:

Observed Output:
ERROR: relation "udf_customer_update_trigger" does not exist

>
> Michael
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Berend Tober 2016-01-14 02:00:21 Re: WIP: CoC V5, etc., etc., etc., etc., ....
Previous Message Bruce Momjian 2016-01-13 23:42:03 Re: Code of Conduct: Is it time?