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 1f9EfG-0002rh-P6 for pgsql-general@arkaria.postgresql.org; Thu, 19 Apr 2018 18:52:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9EfF-0002Kf-Hs for pgsql-general@arkaria.postgresql.org; Thu, 19 Apr 2018 18:52:13 +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 1f9EfF-0002KV-6E for pgsql-general@lists.postgresql.org; Thu, 19 Apr 2018 18:52:13 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9EfC-0003k3-FB for pgsql-general@postgresql.org; Thu, 19 Apr 2018 18:52:12 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 5EAC7C698A4C for ; Thu, 19 Apr 2018 11:52:09 -0700 (MST) Date: Thu, 19 Apr 2018 11:52:09 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1524163929384-0.post@n3.nabble.com> In-Reply-To: <5cae1bca-4536-bc12-e74f-12a2fff95452@aklaver.com> References: <1524160534707-0.post@n3.nabble.com> <7cb5806e-7371-5c19-1c7b-b8ac556bdfb5@aklaver.com> <1524162628880-0.post@n3.nabble.com> <5cae1bca-4536-bc12-e74f-12a2fff95452@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 My point of view that there was a partial rollback, just on detail table. I= f I=C2=B4ve done a delete from Master and I have a foreign key to it with cas= cade option, or all records should be deleted or no one should, this is my point= . Did you see that Master table has no records and Detail table has one recor= d ? I think you agree with me that we have a a detail record with no master, so it=C2=B4s unusable, right ? I=C2=B4m not able to do a backup/restore of this database because that reco= rd doesn=C2=B4t match.=20 -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.ht= ml