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 1f8p8O-0007gf-Du for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Apr 2018 15:36:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8p8N-0006Xi-5r for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Apr 2018 15:36:35 +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 1f8p8M-0006XY-Uj for pgsql-hackers@lists.postgresql.org; Wed, 18 Apr 2018 15:36:34 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8p8J-0002CH-0f for pgsql-hackers@postgresql.org; Wed, 18 Apr 2018 15:36:34 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 28829135E; Wed, 18 Apr 2018 11:36:29 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 18 Apr 2018 11:36:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=YsuxaiTfjRlsPIwxS qayBD3dlk5xQST4SAbSKpo4oss=; b=EAc4WIAmxidMaRYNWHQdHNf+NxVFJkPEm IwvTKC8ZNoEREXs+KUqDLer5aUUeZHk4U8frJgzkYXc5rSCPf9cTKhFBhwo2t2gT tHS7T3f0dPf4WAxFZQnKdj26vpq4sNEIg/7nRoJdqdYVJPBEzkJktILrn52wN29C rwAXRcutpc4xunX49tpOFQRaLBYUyMigiq3RI1vlTsg9p7XLEX57ovYKmjJ91LRG KsrpZA3TEE1nY4mgpD5u8/yXwChlBj84s8GtFRkKsWjfT9Eh3ZAvXlokC2jgTjIA Dz9irIRI0o3VxvqHGToRyx9x2sJFWY0fGLiepnpgsQlpMoEmFZ1jA== X-ME-Sender: Received: from alvin.alvh.no-ip.org (unknown [179.56.29.253]) by mail.messagingengine.com (Postfix) with ESMTPA id 7B080E4350; Wed, 18 Apr 2018 11:36:28 -0400 (EDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 63BB660D; Wed, 18 Apr 2018 12:36:26 -0300 (-03) Date: Wed, 18 Apr 2018 12:36:26 -0300 From: Alvaro Herrera To: Tom Lane Cc: Jeff Janes , pgsql-hackers Subject: Re: Deadlock in multiple CIC. Message-ID: <20180418153626.didla63talgczupk@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8071.1524065269@sss.pgh.pa.us> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tom Lane wrote: > Anyway, at this point I'm going to give up on the debug logging, revert > 9.4 to its prior state, and then see if the transaction-restart patch > makes the problem go away. Agreed, thanks. > >> (A couple of the other isolation tests do fail reliably under this > >> scenario; is it worth hardening them?) > > > Yes, I think it's worth making them pass somehow -- see commits > > f18795e7b74c, a0eae1a2eeb6. > > Will look into that too. I'm not sure that adding extra expected > outputs is sane, though --- might be best to just force the intended > isolation level within those tests. As I recall (not much, admittedly) that was one of the options we considered in the old commit, but since the other isolation levels behaved differently we ageed that it was worth adding coverage for them. I don't know which ones are failing now; maybe forcing a specific isolation level is sufficient. Clearly we should have done something to make sure these tests were run periodically with different isolation levels. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services