Re: Shouldn;t this trigger be called?

From: stan <stanb(at)panix(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Shouldn;t this trigger be called?
Date: 2019-09-15 15:37:56
Message-ID: 20190915153756.GA28027@panix.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Sep 15, 2019 at 11:33:09AM -0400, stan wrote:
> I have defined this function:
>
> CREATE FUNCTION fix_customer_types_case()
>
> and this trigger:
>
> CREATE TRIGGER fix_customer_types_case_trig BEFORE INSERT OR UPDATE ON customer
> FOR EACH ROW EXECUTE FUNCTION fix_customer_types_case();
>
> and I put a RAISE NOTICE so I cna tell if the function is called. Yet when I
> do a :
>
> \copy to bring data into this table, I do not see the notice.
>
> Shouldn't this fucntion be aclled for that?

Sorry, found my mistake.

--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2019-09-15 15:42:02 Re: Shouldn;t this trigger be called?
Previous Message stan 2019-09-15 15:33:09 Shouldn;t this trigger be called?