Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSUfB-0007B0-GQ for pgsql-committers@arkaria.postgresql.org; Mon, 11 Jun 2018 21:47:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fSUf9-00048p-WB for pgsql-committers@arkaria.postgresql.org; Mon, 11 Jun 2018 21:47:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSUf8-00048f-7H for pgsql-committers@lists.postgresql.org; Mon, 11 Jun 2018 21:47:43 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSUf4-00052L-5M for pgsql-committers@lists.postgresql.org; Mon, 11 Jun 2018 21:47:40 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4865A21356; Mon, 11 Jun 2018 17:47:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 11 Jun 2018 17:47:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; 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=biOzHimgRBEer41bcIN59mdQGE27F+cxB9ZY3O+xcyE=; b=IGh+lC9G DS/oP3OZhNWj5F1vnh51FnwD4nNCZ8Ybg64S2n6LXEUKTtVugNMT2/8tE9+Yqkdp 4OFuyaV6Ji43h3wSlNVgjdoMM03VeQANSHZ+7ChdCrz7ip5ZywF1OG8XsQqim22y y7RQU3hG2p+SOKNhALyPVRJr0h5oB0NxfpgRZIMpFYkMzBCU4uuTqqWUc00BDaBe 3WwhQLgIhucmgziIgM/UEra5eaYgCagqbB4pstbQ+FJMN/LIZWa2XXeygsBeuXev 6socQuooS8tUBTzf/GG6B9T3yPdJAwfn8D7WDY3wfduXKq9nQ18ivYf8jIVlOFAZ KhyFHpF8vW4ZSA== 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=fm3; bh=biOzHimgRBEer41bcIN59mdQGE27F +cxB9ZY3O+xcyE=; b=KFw5U9VxTOF0gD+hbFhUtMvqUr1GedCpXYlfPJ7D61bZ+ A7TqTB0Td/T3mfiOYg1rVjUM8E7MaNrGPsSf85MOm66xdSe6XB6BvbU6GqqVrdrF sTG2VHuchp8cgAhxYgF6G+yt9bYqqfX8WaJadQ77M+gc0M6O+p2xc61CEv8LCKvU rO0UnNP8tJPdRliUXl7rDT8VC9K23QTLBJEM29uhEjUqow36ismkrh5QGbANCoFb yLdPnJVcc5Yx3o0X2yE1/fXzQmcs4L+pc6DgmSSSf6YxMSu1u1aWlyQ5sbJBaJAR e44M40Fm8YZ2E2/JWnXicRhma+80shc6KGKwLEpiA== X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 98BC41025D; Mon, 11 Jun 2018 17:47:35 -0400 (EDT) Date: Tue, 12 Jun 2018 06:47:27 +0900 From: Michael Paquier To: Andres Freund Cc: pgsql-hackers@postgresql.org, pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix and document lock handling for in-memory replication slot da Message-ID: <20180611214727.GA2269@paquier.xyz> References: <20180611164952.vmxdpdpirdtkdsz6@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <20180611164952.vmxdpdpirdtkdsz6@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 11, 2018 at 09:49:52AM -0700, Andres Freund wrote: > Same is true for the codepaths calling GetRedoRecPtr(). You are right. I'll fix in a minute. A first commit's stress make things really harder to get right... > I don't object to the general idea of adding locking - although the > benefit are nearly guaranteed to be cosmetic - but this has the > potential to make things worse. Thanks. -- Michael --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlse7e8ACgkQnvQgOdby QH1rKRAAi4Qbh2NrglJwFPCB3U5nJCez+AYQb/OwkHsH+RXDq4VFzyzrXXURoXEY 88ek+gAAIkKT/szvqdumMB/oYCEcbpgj3pp1zR1Yqv5x/9XUPFGldmW0/F1vQP1l JfkG7oSsHHSAh/sSuCbK6RNOaKWqpL5tyDfDHpEITk5UlFA2a9r2O/ytyJbTnXHT Plp2mEKn20CtnxawxVDKppemOye7B6gQlxT2NsRnykioUDnmBbYgpYvdF3Qf6bKj f07k9UyAsUg9vUYyv26fhJib5naKD8AoiIiiygMwh2gIKWJ9TFvjgUSVmIGPfKV4 u1vLReb0T3MEDm27E9cAoIrkJvDqmsngnMnjAbsSylhtBcpM4cPs/F3ZKyGfH4Fz aNKhnR7Ds9BLXurU7OaoMq+hRVYTbjeZGFBiAOiiayGEK9iXnIi+F7RvRDt/fXrS j4++AU6oceARl/UjvDvc/YXvMDAFmKb5U9Jb2p5gVIIatyi0lD4TvqqXB+Vj9/CF 2ZufzXHAmU16gTIHdnQA+lXuJC4Acu7bvf3UR81X7WXUIbb6UFsLgAa9AryGtdy2 Q6xa09ArgdEExNaFr66aVew3kO836WoJTdTELUb/0QnnTsTcL89oB7jrfhCZqfF/ WFwSM1JgDFa4867okfrq01tcv/n77SoaOj/lX8zSG0ivS2nh5b8= =Ziw2 -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--