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 1hTZcQ-00012d-F9 for pgsql-general@arkaria.postgresql.org; Wed, 22 May 2019 22:21:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hTZcO-0002VN-Pt for pgsql-general@arkaria.postgresql.org; Wed, 22 May 2019 22:21:52 +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 1hTZcO-0002VD-GQ for pgsql-general@lists.postgresql.org; Wed, 22 May 2019 22:21:52 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hTZcL-0006s3-Iw for pgsql-general@postgresql.org; Wed, 22 May 2019 22:21:51 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id D44D1143761B3 for ; Wed, 22 May 2019 15:21:46 -0700 (MST) Date: Wed, 22 May 2019 15:21:46 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1558563706827-0.post@n3.nabble.com> In-Reply-To: References: <1558560792308-0.post@n3.nabble.com> Subject: Re: Trigger bug ? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk sorry, I wasn=C2=B4t clear, when I sad returning Null I tried to say that n= ew.PK was Null, not the function result. Try to create exactly what I sent you and you=C2=B4ll see null values on th= at pk.=20 And that occurs just because that trigger was created without EACH ROW/STATEMENT.=20 So, my question is, PG should return an error and not create that trigger because ROW/STATEMENT was not specified, correct ? -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.ht= ml