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 1j16Ou-0004ZK-T4 for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Feb 2020 10:34:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j16Ot-0002TG-Lk for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Feb 2020 10:34:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j16Os-0002T9-Vw for pgsql-bugs@lists.postgresql.org; Mon, 10 Feb 2020 10:34:47 +0000 Received: from mail.dalibo.com ([212.85.157.172]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j16Op-0000vM-9T for pgsql-bugs@lists.postgresql.org; Mon, 10 Feb 2020 10:34:45 +0000 Received: from firost (unknown [88.190.0.6]) by mail.dalibo.com (Postfix) with ESMTPSA id 08EEC1FF90; Mon, 10 Feb 2020 11:34:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1581330880; bh=lVS2ccoJq9Pq3Qrbg403jXMo/n/h1DSFOkY7FvpkzVo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=phlqJlxQfbR4gUWIdF4hmeE21eZ3Lvhb4sLzINRN25NR0fymSmuVrjYLHputtMsK/ J7bOebq+kjg6/lh0rWCMYCcCLP/7o999Lfc9AKcWs5ObZ/uq+M9lN5vl6F4uJjiSFT yPVoSY/Mj7ZsPu8CzqNzTUCCX/e86wIDPWoFgedQ= Date: Mon, 10 Feb 2020 11:34:39 +0100 From: Jehan-Guillaume de Rorthais To: Tom Lane Cc: Alvaro Herrera , pgsql-bugs@lists.postgresql.org Subject: Re: Another FK violation when referencing a multi-level partitioned table Message-ID: <20200210113439.0ea5f15e@firost> In-Reply-To: <467.1581270529@sss.pgh.pa.us> References: <20200207213051.GA32185@alvherre.pgsql> <467.1581270529@sss.pgh.pa.us> Organization: Dalibo MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/fpeM.PqXR_+Kj=qgUUIH59U" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --MP_/fpeM.PqXR_+Kj=qgUUIH59U Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, On Sun, 09 Feb 2020 12:48:49 -0500 Tom Lane wrote: > Alvaro Herrera writes: > > On 2020-Feb-06, Jehan-Guillaume de Rorthais wrote: > >> Please, find in attachment a proposal patch to fix this FK violation. > > > You fix looks correct to me, so pushed. I took a minute to apply some > > minor corrections to the comments, too. > > FWIW, I think the test query is too smart for its own good: > [...] Indeed, thank you. Please find in attachment a patch making the test simpler. Regards, --MP_/fpeM.PqXR_+Kj=qgUUIH59U Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-Simpler-FK-regression-test-with-mult-level-partition.patch