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 1j1kFK-0006PC-1N for pgsql-committers@arkaria.postgresql.org; Wed, 12 Feb 2020 05:07:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j1kFI-0001rI-5B for pgsql-committers@arkaria.postgresql.org; Wed, 12 Feb 2020 05:07:32 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1j1kFH-0001rB-Tc for pgsql-committers@lists.postgresql.org; Wed, 12 Feb 2020 05:07:31 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j1kFA-0005jy-GR for pgsql-committers@lists.postgresql.org; Wed, 12 Feb 2020 05:07:31 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 31C1A47D; Wed, 12 Feb 2020 00:07:22 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 12 Feb 2020 00:07:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=5FUI1IXu+Bq3C5FeTiXYNlDH18m Mq4gC1p0r99n3y48=; b=hmo/v/q+p2zeJMtYt205lycdPXuSUBSeV5suPl3uRwY BaVlO6+nlcnz3vqKL4WpJUtR0kEGq8Bio70nOk7kqtZ7iZfw1qomak4vTwoDoEqP JWlaE8r/Z9cy8gfJ/WkilcMtC/d6i4OW6741ADNzjZ0JqD24H4G4FKBylOKyVJCV fubhGf9+IkwZzOJdi2XbVUCNgFjGe/YnZxTVlaUgPVYadWDAam54gS4vNCLERl9U o21XxcMSiHLiWRS/E6WTJBAjTYtlnGyMjmnmIGAbUqZo5HPbD+oKPRfta8ZGhSWj naQisj/kah77ydWgv9L2PRltl7ZV4eFRSKmgpX6R83Q== 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=5FUI1I Xu+Bq3C5FeTiXYNlDH18mMq4gC1p0r99n3y48=; b=hrya6o7HkADxkvYFDbhzUo 2SEvckvEyQqa5QpOJoRqgycK+xuQ1Ajrzkx3x08DWXY3x8lbM4vGsjGzlKxoxFb5 9bYV0fI5t3QYoyLFP8hIswz0UIGHXsi0k2iaKM7kzgJAs2B/6awufTzcv33iFTel d+uj0AzwzjOVxTKaxLTa0xNSY5Gfyk6+WUpHRUfcD/d2OGynBgll5a5Fcg+iDwX3 KBNdPuratc4OMlfGA2DdwvM8jaqQpOvOnnGFLP5huV/NtxADn8aoVd4NScEB+rtj xoGZN0r4N3Sder6nBaC5pktTplJ2ldMefJXJ8QFLSvbGBraSBTivRB5J+HbvEqWQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrieeggdejgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfk phepudduuddruddtvddrudektddrudekheenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 9213530600DC; Wed, 12 Feb 2020 00:07:20 -0500 (EST) Date: Wed, 12 Feb 2020 14:07:17 +0900 From: Michael Paquier To: Andres Freund Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Test additional speculative conflict scenarios. Message-ID: <20200212050717.GA1464@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 12, 2020 at 12:43:09AM +0000, Andres Freund wrote: > Test additional speculative conflict scenarios. >=20 > Previously, the speculative insert tests did not cover the case when a > tuple t is inserted into a table with a unique index on a column but > before it can insert into the index, a concurrent transaction has > inserted a conflicting value into the index and the insertion of tuple t > must be aborted. guaibasaurus is unhappy after this commit: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dguaibasaurus&dt= =3D2020-02-12%2004%3A17%3A03 Here is the culprit diff: application_namelocktype mode granted + transactionid ExclusiveLock t isolation/insert-conflict-specconflict-s1speculative tokenShareLock f isolation/insert-conflict-specconflict-s1transactionid ExclusiveLock t isolation/insert-conflict-specconflict-s2speculative tokenExclusiveLock t= =20 -- Michael --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl5DiAUACgkQnvQgOdby QH38qQ/7BzUhB6JfqOqJE4qb0RDK5OSm30RnU9mv+AQhWjkFtrNeG38soA8n2S/c 8FbR2OAg783283qP/7PJ419mOVCKUaNOmwzd1Ud4zy0VlQoum/+PHb1quv018kRz 36SMKDJMuH1bNrTkMhXckPUOpm5WOsEljDatnmgO1vKMM3pNR46NB6bOKoLVj9mo B5PE0xKZo+x7UDZ6dOO7l6/gtv2fO9ndcnJ0l8RTk3mZxKbdD23m3R1R0cWpZCbb nx6BSKx0NPZyW6ZuJOIjdhdndFLICJlvFMX0Li927aQwm3ruvwi8uQdcATB+RU5A 6wd2sJVdPKEs5LDNNKsGtn+yLwY3T2JIoNZrIqCjWpfLB60xJ2ED9QZd23OquBo0 VHqbVYdCtnVKV/C7fGOo2keqQrF5EEtFvtMQvkN0f07YcXLV5oAiKo2jU/OvSfv+ KFLeYkoD+ykUdI2twbppQSC3j0LyA5j+K9FHBgLvM1GPnEZEW1bxBbR2TRNpY3zh vADPkAGtCsGzM7LpTNCmXkIDqqIGuHRxgWVBUVveHjoPzBx/xMl6cEcPnqxt4/DZ dW+fhrrVjrF6zR/lRKCzKXVjhDK0mXUzEHztFYISBY6ZxrHt68bVhtU2t8xgPWfZ pEoofsQKw2XoTEKn1vEYNd+2iGJCIKlsBNAluJPY97yDwpYZrkY= =/fwk -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3--