Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f9EMa-0001Zc-Sd for pgsql-general@arkaria.postgresql.org; Thu, 19 Apr 2018 18:32:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9EMZ-00075Q-QE for pgsql-general@arkaria.postgresql.org; Thu, 19 Apr 2018 18:32:55 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1f9EKI-0006jm-Cd for pgsql-general@lists.postgresql.org; Thu, 19 Apr 2018 18:30:34 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9EKE-0007w9-9B for pgsql-general@postgresql.org; Thu, 19 Apr 2018 18:30:33 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id D781DC696997 for ; Thu, 19 Apr 2018 11:30:28 -0700 (MST) Date: Thu, 19 Apr 2018 11:30:28 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1524162628880-0.post@n3.nabble.com> In-Reply-To: <7cb5806e-7371-5c19-1c7b-b8ac556bdfb5@aklaver.com> References: <1524160534707-0.post@n3.nabble.com> <7cb5806e-7371-5c19-1c7b-b8ac556bdfb5@aklaver.com> Subject: Re: Problem with trigger makes Detail record be invalid 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 I know my trigger is incorrect. I know that I can use TG_OP to know what operation is being done.=20 My question is ... > Is this a bug or it=C2=B4s mine responsability to check that trigger resu= lt ? I think it=C2=B4s a bug because if something got wrong on detail deletion a= nd it was rolled back, how could be a parent record be deleted ? -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.ht= ml