Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i9WbC-0001ih-V4 for pgsql-general@arkaria.postgresql.org; Sun, 15 Sep 2019 15:38:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i9WbB-0004vI-Nt for pgsql-general@arkaria.postgresql.org; Sun, 15 Sep 2019 15:38:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i9WbB-0004vA-Dz for pgsql-general@lists.postgresql.org; Sun, 15 Sep 2019 15:38:01 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i9Wb8-0005oa-Vb for pgsql-general@lists.postgresql.org; Sun, 15 Sep 2019 15:38:00 +0000 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 46WYRT2TSxzx67 for ; Sun, 15 Sep 2019 11:37:57 -0400 (EDT) Received: by panix2.panix.com (Postfix, from userid 17622) id 46WYRT0cXYz1ZVT; Sun, 15 Sep 2019 11:37:57 -0400 (EDT) Date: Sun, 15 Sep 2019 11:37:56 -0400 From: stan To: pgsql-general@lists.postgresql.org Subject: Re: Shouldn;t this trigger be called? Message-ID: <20190915153756.GA28027@panix.com> References: <20190915153309.GA19624@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190915153309.GA19624@panix.com> X-Editor: gVim User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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