From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | stan <stanb(at)panix(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Shouldn;t this trigger be called? |
Date: | 2019-09-15 15:42:02 |
Message-ID: | 4e60c990-3361-5d9f-d125-ed580b5548fc@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 9/15/19 8:33 AM, 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.
What is the actual command you are using?
For more info see:
https://www.postgresql.org/docs/11/sql-copy.html
which is the command that is being used by \copy.
>
> Shouldn't this fucntion be aclled for that?
>
>
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | stan | 2019-09-15 15:55:26 | FW: Re: Shouldn;t this trigger be called? |
Previous Message | stan | 2019-09-15 15:37:56 | Re: Shouldn;t this trigger be called? |