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 1f9EXj-0002Jm-Vw for pgsql-general@arkaria.postgresql.org; Thu, 19 Apr 2018 18:44:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f9EXi-0001hr-IW for pgsql-general@arkaria.postgresql.org; Thu, 19 Apr 2018 18:44:26 +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 1f9EXi-0001hg-9v for pgsql-general@lists.postgresql.org; Thu, 19 Apr 2018 18:44:26 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f9EXf-0008FD-96 for pgsql-general@postgresql.org; Thu, 19 Apr 2018 18:44:25 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 717AA21903; Thu, 19 Apr 2018 14:44:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 19 Apr 2018 14:44:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=dB/ubRL/G/PLQYRqTuxrcfsYhXhY/ 2sxrtP3ijvmEqY=; b=B/iu5H6b2kfQ+wNnIPAYcONf14xmQ7vezgv4Qk0axUVX2 7kRLg2ayXdeL0Q3hWIARQWlcF0QsCi6ES/flGe5FGLJKaSApLdBICrWOZE5crpEj xa48n9ljwFAKgkbwZYoVXZwtjkihdyxGTKjy6B3R/WbSnsGidNmeZDo7XNXpfp32 nd09woxfUpLEKpE0wHp/UGtl5TbjjscrpqLv96JqvkOfZkPPAggB7hpej0QkL+Uw 0kDLR5rSi0Sd5qxjpRWEbeKYelaryXW25ns5Oj/xc+H8B8SRlmB78Vlj89t2L8Kl e3r0c8tsDPGMajzIRfUR3cOSXtX23YMB6j+a4mP4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=dB/ubR L/G/PLQYRqTuxrcfsYhXhY/2sxrtP3ijvmEqY=; b=mVWmR0DdZ+ZtLss8G+hlRR ldRe2vNTxyLh3dpIdv/0DBp0+HW8fRgb4PaFCsPoDgHI2+RlkuzyjeDJfuNbQ6e6 y8z3IiLe/3/wEksQFd09YOmQ15O3ENiYoSQuiwh0dK+oG7gWoqpGC3kHDfmMykc8 5s5CRJNwmiElc9gxmMeewyGGcJmt99r8keYdCGouEWi98OoWT2lUvkKrLMhW2pGk t1NKGgtufAHF3+Hl7Dvy32yLVHZuo7LXYDpv2Jctm7fT+kxiy//FySgryD/ePJQn esweQblvBVlZoHmpbgszJGZkBsntG33agV5GEVR5sHqPWYk1yv+1UfLErKVVoIhg == X-ME-Sender: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id D1158E442A; Thu, 19 Apr 2018 14:44:20 -0400 (EDT) Subject: Re: Problem with trigger makes Detail record be invalid To: PegoraroF10 , pgsql-general@postgresql.org References: <1524160534707-0.post@n3.nabble.com> <7cb5806e-7371-5c19-1c7b-b8ac556bdfb5@aklaver.com> <1524162628880-0.post@n3.nabble.com> From: Adrian Klaver Message-ID: Date: Thu, 19 Apr 2018 11:44:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1524162628880-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 04/19/2018 11:30 AM, PegoraroF10 wrote: > I know my trigger is incorrect. I know that I can use TG_OP to know what > operation is being done. > My question is ... >> Is this a bug or it´s mine responsability to check that trigger result ? > > I think it´s a bug because if something got wrong on detail deletion and it > was rolled back, how could be a parent record be deleted ? Another thought, are there are any other triggers on the Master and/or Detail tables? > > > > -- > Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html > -- Adrian Klaver adrian.klaver@aklaver.com