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 1ewEkn-0006DH-EI for pgsql-committers@arkaria.postgresql.org; Wed, 14 Mar 2018 22:20:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ewEkl-0000Js-VF for pgsql-committers@arkaria.postgresql.org; Wed, 14 Mar 2018 22:20:11 +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 1ewEkl-0000JY-8X for pgsql-committers@lists.postgresql.org; Wed, 14 Mar 2018 22:20:11 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewEkh-0008WQ-1O for pgsql-committers@postgresql.org; Wed, 14 Mar 2018 22:20:10 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7451420D18; Wed, 14 Mar 2018 18:20:05 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 14 Mar 2018 18:20:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=VA1TQZI9jq45sM9Gy6hJppMbHE6IYUx/0ccMvOqetMY=; b=r2m8ST3R juwVhDwOpLB7bFUHhzWg8I+rCeIVp1JFUXbZshj0LKMAHS0N/WQOJO2qyCbgqwlO 8smiimV/YKTamBWpcX2UjnxrQtIEI7R570uwBF1sodcCSmZcl+qMuQEOgMpEIQC1 hIO5tNFnzTyPoaapUaU37Bn4QRZm9sKYr4debjRIfQ3gOWz5QE1UJTXiasPAkTSO fhexBEuLXmdx+WvCbdtGqfiLtd+Tn7hig8RWbGM+pQ0c4SZnp7Lqi8Wj0ukN1bO7 tLdilE4A+E3ohlQv2J15tBE5QAVmEjnm+44QYwpURXuC4wXvYn7L8gJDzUP3mhRo s/p5RwRUe2mtXQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=VA1TQZI9jq45sM9Gy6hJppMbHE6IY Ux/0ccMvOqetMY=; b=TnHI2PVeJ1Bb3T05/kkqQIGigEtrG5wnugbgjM9phBjLL MzdJ3w2ig1PjO5w16ULbFoiPOT1wHgqkaFFMGfpsjhhakJybFS/ptNOh06xOo8Qv sSafIe/Xee8RL/GQGctljq9qbtmgssk4SejJUn4rArnUT7mUfczvJDPN6P7rfmMa WBvu4OGfqDkwFXsjlfzvZZd1WLeTLqR/Wy1DEm+M2WYNuzYfZE4UP7DopJgr8q+v uwjbS7nTXDHgWnK0xS/ewbo1TH2aw8+NB2ux/rqMjODIR8kF7fCAxzjQO9tf44+U iBRaudhhDIHVbNlNExpoRM1vf06cuImHTbXbxsAYw== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 31D5F7E1B3; Wed, 14 Mar 2018 18:20:05 -0400 (EDT) Date: Wed, 14 Mar 2018 15:20:04 -0700 From: Andres Freund To: Stephen Frost Cc: Peter Eisentraut , andrew@dunslane.net, pgsql-committers@postgresql.org Subject: Re: pgsql: Remove pg_class.relhaspkey Message-ID: <20180314222004.zzxvk55miwbmdafg@alap3.anarazel.de> References: <20180314211344.3x2bhr7bmqmtvor6@alap3.anarazel.de> <20180314220907.GN2416@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180314220907.GN2416@tamriel.snowman.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-03-14 18:09:07 -0400, Stephen Frost wrote: > Greetings, > > * Andres Freund (andres@anarazel.de) wrote: > > On 2018-03-14 19:35:40 +0000, Peter Eisentraut wrote: > > > Remove pg_class.relhaspkey > > > > > > It is not used for anything internally, and it cannot be relied on for > > > external uses, so it can just be removed. To correct recommended way to > > > check for a primary key is in pg_index. > > > > > > Discussion: https://www.postgresql.org/message-id/flat/b1a24c6c-6913-f89c-674e-0704f0ed69db@2ndquadrant.com > > > > I'm not clear on the mechanics, and the animal doesn't show the critical > > log. But this might have caused the issue, being the only commit between > > runs: > > > > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=crake&dt=2018-03-14%2019%3A37%3A20 > > > > Andrew, any chance you could modify the module to capture > > pg_upgrade_dump_*.log? > > I've not quite tracked it down, but I would caution against blaming this > commit- when doing some parallel regression test runs, I was seeing > failures also, but they've not been consistent and I was trying to get > something else done so didn't focus on them, so they may have been > failures due to my environment, but might also be some kind of race > condition in an earlier commit (my guess at the moment is actually the > INOUT arguments for procedures commit...). > > I'll try doing some more runs to see if I can reproduce it, but wanted > to mention it, just to encourage people to consider looking more broadly > than just this commit if they run into similar issues. It failed identically twice in a row now, preceded by a significant number of successful runs: https://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=crake&br=HEAD and afaik there's no concurrency during the cross-version test. So sure, it's possible that something else is to blame, but I'd not bet on it. Greetings, Andres Freund