Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRfbj-0006av-J6 for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Mar 2021 18:30:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lRfbh-00052b-2U for pgsql-hackers@arkaria.postgresql.org; Wed, 31 Mar 2021 18:30:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRfbg-00052U-S3 for pgsql-hackers@lists.postgresql.org; Wed, 31 Mar 2021 18:30:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRfbe-0004r1-C4 for pgsql-hackers@lists.postgresql.org; Wed, 31 Mar 2021 18:30:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 12VIUCQM3269785; Wed, 31 Mar 2021 14:30:12 -0400 From: Tom Lane To: Alvaro Herrera cc: Justin Pryzby , Amit Langote , pgsql-hackers@lists.postgresql.org Subject: Re: ALTER TABLE .. DETACH PARTITION CONCURRENTLY In-reply-to: <20210325210336.GA32325@alvherre.pgsql> References: <20210325210336.GA32325@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 25 Mar 2021 18:03:36 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3269783.1617215412.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 31 Mar 2021 14:30:12 -0400 Message-ID: <3269784.1617215412@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > I added that test as promised, and I couldn't find any problems, so I > have pushed it. Buildfarm testing suggests there's an issue under CLOBBER_CACHE_ALWAYS: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dtrilobite&dt=3D2= 021-03-29%2018%3A14%3A24 specifically diff -U3 /home/buildfarm/trilobite/buildroot/HEAD/pgsql.build/src/test/iso= lation/expected/detach-partition-concurrently-4.out /home/buildfarm/trilob= ite/buildroot/HEAD/pgsql.build/src/test/isolation/output_iso/results/detac= h-partition-concurrently-4.out --- /home/buildfarm/trilobite/buildroot/HEAD/pgsql.build/src/test/isolatio= n/expected/detach-partition-concurrently-4.out 2021-03-29 20:14:21.2581993= 11 +0200 +++ /home/buildfarm/trilobite/buildroot/HEAD/pgsql.build/src/test/isolatio= n/output_iso/results/detach-partition-concurrently-4.out 2021-03-30 18:54:= 34.272839428 +0200 @@ -324,6 +324,7 @@ 1 = 2 = step s1insert: insert into d4_fk values (1); +ERROR: insert or update on table "d4_fk" violates foreign key constraint= "d4_fk_a_fkey" step s1c: commit; = starting permutation: s2snitch s1b s1s s2detach s1cancel s3vacfreeze s1s = s1insert s1c regards, tom lane