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 1hba4E-0007W8-AS for pgsql-committers@arkaria.postgresql.org; Fri, 14 Jun 2019 00:27:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hba4B-0001TU-KT for pgsql-committers@arkaria.postgresql.org; Fri, 14 Jun 2019 00:27:39 +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 1hba4B-0001TK-DI for pgsql-committers@lists.postgresql.org; Fri, 14 Jun 2019 00:27:39 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hba48-0000Wb-7f for pgsql-committers@lists.postgresql.org; Fri, 14 Jun 2019 00:27:38 +0000 Received: by mail-qk1-x742.google.com with SMTP id t8so628484qkt.1 for ; Thu, 13 Jun 2019 17:27:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=HSiSL2st6Ct3E7BLPSBFbGiq1RS6fdILMNUtTs2ZqgM=; b=CtFyEOMZAq40/sgdD3PsXhDvHPeW0gpkxQxngHnIAKpX9/CrHq1VTo9VdnAiZMq3xy 6u1PZlQFzp8C/KAtEGJlHyDGnqdSeNRcn0C7IoXG+9E8iwzYe/ATO/UxTrYP3/s4Bpyo bHbGwxi07B+ssvf7h36FlATwD6We0rc7EVrgPDmfr935ebeF4wqrdef/ZgW4bXg68Bs9 obdgqq8PZMwv5YR5NoDbEAdtWi8UOC3yMnCd39aBjzgA2ujAucdiXu1j3k6VlJkyacS1 +T00XlPWZjJd0AOJm26ECrniyuWLUseJe5p22VkGiNc9aUzbxQCJoxl99iZswivpwJL8 VBgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=HSiSL2st6Ct3E7BLPSBFbGiq1RS6fdILMNUtTs2ZqgM=; b=lEQqi11YesJ74RH3eg7NiiCPIia5oriJOrG4aJcpUtreeMkS1atYNf61DgD+6LD3cv bRC8PfCLDiceCCt42uYMW/00iJcjJXKI+S+Cav0sBnlgUFkyaLm7ZZDKHu53o6MOAUBN 0uvrRwhGf4RX0Nto2ZF40GTXw7coNp+02ESRIkYE+/UsuXMHUTmAKjJ4IZ+XGBrYhilh qH1Boe7NiIZr7twutiiMpZDRtEtqWUwcQDXhTP3mwyfK8gbdamdhnHMz3E6HAgvFW92w dxbBqL5jk5zX1nw/cJURfV9o2OkbIgPZGNR9V5UpSG8Ptmyw+U3oVCxx0KGxn/pquXd7 ExQw== X-Gm-Message-State: APjAAAVpamyX4NcpVaLbG5yrKhPTdxSyGRb5try5bulBtWhmYBk8IMYk BZAxj7V9bkcwSnAkn0tA3SCtS4plOQ3qJIJRGSbEs1mrpjMBNwvYPhAEMtDEJbMa6Ee/NmVhJzg vtRwelY+QCW52uFmRCZoyxVTpf3fbNCAO2ZrEQLX4kAfu+5sfthaE8Nt6IR9cQPzLqmkky9KOxn FuHzd2DV4rvRpy5m8Z7Q== X-Google-Smtp-Source: APXvYqwm1T/Y3t0AluE1ETM6j+B9JYM4aHR0+kwxPQXufKvouC5z/jWkTf2tup4/rirXbaIkPnmEmg== X-Received: by 2002:a37:dc45:: with SMTP id v66mr15084651qki.24.1560472054014; Thu, 13 Jun 2019 17:27:34 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.48.227]) by smtp.gmail.com with ESMTPSA id s23sm1080148qtj.56.2019.06.13.17.27.33 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 13 Jun 2019 17:27:33 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id BBB5D120B8D; Thu, 13 Jun 2019 20:27:30 -0400 (-04) Date: Thu, 13 Jun 2019 20:27:30 -0400 From: Alvaro Herrera To: Tatsuo Ishii Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Avoid spurious deadlocks when upgrading a tuple lock Message-ID: <20190614002730.GA12974@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190614.073229.1432207886733966773.t-ishii@sraoss.co.jp> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jun-14, Tatsuo Ishii wrote: > I am a little bit confused. Here T1 and X are the same transaction? Argh :-( Yes, X and T1 are the same transaction. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services