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 1h74tC-0005w7-3x for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Mar 2019 21:06:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h74tA-0004L7-Rs for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Mar 2019 21:06:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h74tA-0004L0-HC for pgsql-hackers@lists.postgresql.org; Thu, 21 Mar 2019 21:06:12 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h74t7-0008Ml-PV for pgsql-hackers@lists.postgresql.org; Thu, 21 Mar 2019 21:06:11 +0000 Received: by mail-qt1-x844.google.com with SMTP id v20so198808qtv.12 for ; Thu, 21 Mar 2019 14:06:09 -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=MwKB04SXFLjZZnV6odHXJf7jS1PiTiL1jbJbG9i5lT4=; b=gKO/94AWlrjgkcBdyiCf6gJl5rlteQUdpsWPIbBXzfKwzJt0Hs+OkwvAx6MCTS+18j Q2V6ANUs2ZYd3TjAN1/x+X9Sj4OkK4hy8H/JZlMa59rh2yj7x93xH4x+LXLho77rl1YD ViPq9EpexqRLcdG2gCbu8YmkLCOmKU7EdZwywQvcV+J+yYYx87h88QF6BcA8Ba0N1mqC x9oGE1odavLeb6UfWwsmg92YqjNM7p5vY4dF/Z/vbVJOybk9o8685+RBkVePwDQpfGae lWVHx+Bja3esQazaABxJrI17MoyY3Erg53LZ/rd67MXwXuGd3MN546Ia5HNFJucru6y3 5wxQ== 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=MwKB04SXFLjZZnV6odHXJf7jS1PiTiL1jbJbG9i5lT4=; b=ZjoOWlDU/9Tjw3/ZGNmtWUpHT+pwMDrF35hiFcpicJUe613HQQUoewgk0YhkccugiD TO0OxBjmJQ5+XfPtgkXb5dP2RE43yn2gG5nzkJWljCybZXpyyEvODq4NIO1mBRxFgvvG QwqMTDJ26Izlww4RsJ6OA+KNbVcH5uXpHTGuGl1aBsM0Qng5dOrtx8u7XWEf+29R7Taa 56TPdb9lBNjSnOzolgVYUfqHdxbPCUA7jTX/G0LK2SFJ73xSwmyBR8hOWFQv6bM5RjUd gIMrSTRttJK6Ai49hSOiYVOim05KnZzuXbeDRxzrBntScw96XBEUAnUwFvAULSeQomyV 8Z9w== X-Gm-Message-State: APjAAAV+LR3bMEyP3MhU9fEN8mxLYxGGJApLGA6yWNdkECQXjMyX+IYn I/I3H2B4YPmbJASfRlJjr3HZrw== X-Google-Smtp-Source: APXvYqyvnPR+GOihP59pb8T8ggVzFkopoPtRsPTOEHqWEUEqxYj0hJv5DjfsLfgEgvtb+mgLeSkyvw== X-Received: by 2002:a0c:8957:: with SMTP id 23mr4932779qvq.92.1553202368861; Thu, 21 Mar 2019 14:06:08 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id r20sm4275922qtc.48.2019.03.21.14.06.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 14:06:08 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 7E99C120694; Thu, 21 Mar 2019 18:06:06 -0300 (-03) Date: Thu, 21 Mar 2019 18:06:06 -0300 From: Alvaro Herrera To: Alexander Korotkov Cc: Simon Riggs , Andres Freund , Andrey Borodin , Peter Geoghegan , chenhj , Teodor Sigaev , PostgreSQL Hackers Subject: Re: Connections hang indefinitely while taking a gin index's LWLock buffer_content lock Message-ID: <20190321210606.GA18716@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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-Mar-21, Alexander Korotkov wrote: > However, I think this still can be backpatched correctly. We can > determine whether xlog record data contains deleteXid by its size. > See the attached patch. I haven't test this yet. I'm going to test > it. If OK, then push. Wow, this is so magical that I think it merits a long comment explaining what is going on. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services