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 1f9LBZ-0005l5-Ti for pgsql-general@arkaria.postgresql.org; Fri, 20 Apr 2018 01:50:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9LBY-0001mh-RY for pgsql-general@arkaria.postgresql.org; Fri, 20 Apr 2018 01:50:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f9LBY-0001mX-G9 for pgsql-general@lists.postgresql.org; Fri, 20 Apr 2018 01:50:00 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9LBU-0005zX-KQ for pgsql-general@postgresql.org; Fri, 20 Apr 2018 01:49:58 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 1B744C6BB636 for ; Thu, 19 Apr 2018 18:49:54 -0700 (MST) Date: Thu, 19 Apr 2018 18:49:54 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1524188994110-0.post@n3.nabble.com> In-Reply-To: References: <1524160534707-0.post@n3.nabble.com> <7cb5806e-7371-5c19-1c7b-b8ac556bdfb5@aklaver.com> <24449.1524164237@sss.pgh.pa.us> <2795.1524165702@sss.pgh.pa.us> 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 Correct, that delete done a partial commit. And this is absolutely unacceptable. I know I did that trigger incorrectly but referential integrity is obligatory. Imagine if I have a database crash and need to restore as soon as possible. How much time I=C2=B4ll spend removing those records from a backup to get e= ntire database restored properly.=20 Well, I=C2=B4ll review all my triggers. And I have hundreds of them. -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.ht= ml