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 1gOYLp-0000cT-Fd for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Nov 2018 01:27: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 1gOYLo-0003JT-2P for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Nov 2018 01:27:44 +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 1gOYLm-0003JM-As for pgsql-hackers@lists.postgresql.org; Mon, 19 Nov 2018 01:27:43 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gOYLi-0005iS-Pt for pgsql-hackers@postgresql.org; Mon, 19 Nov 2018 01:27:41 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 1C1FD409; Sun, 18 Nov 2018 20:27:37 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 18 Nov 2018 20:27:37 -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=vperZF2YzZxO+FlbNmwTc5zTzw9 2SMQVr1wwAcBw1/4=; b=TRKOu7LeAwZ9d7Pk9QyB+FgHi0hr8XGqMmS+HljCwv6 ena1HQTr9ShinTjFKZfh9njHz6Ixu1K6mUwJJ1uDozSLDKSz53AjyWZqOaxVqazX aEczRd95It5WIYhr8hcAJXefTBqDIFaq1B0cHiqKiLXPanv2/Pumj0NI5alAAy2k LSs3ZfPEvLOQtTyqSJ+W/9FDnlvcun4nuweymEhPf7OVZtera59XR6KWmgB58xlB 6oZJn638v1JccM5k/RoL/Nh4/aj6OrW83T3LwsUWDaOrhj82WpBQVmKKuqL82MmW ON6cp57icjuUPBr+HK3+1NZBfSu5Ih9jVbcxyhMLbfA== 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=fm1; bh=vperZF 2YzZxO+FlbNmwTc5zTzw92SMQVr1wwAcBw1/4=; b=KpEU0IYXP8mJnoVH6/ZeDA pUJEnywXZGwasi/mmxzEC8ECiX4Q/hecms59dNK42QQLvRA49+MYhQO6S749H5JS OmnxO65sN9Tsy7IUlKRGS2XYCk1GDbM5qdgPPVpA7lw+hhRTTAsgKzFWrDghykSJ gPSxvwD/7G84lLPV4wgBwYd5eV4ImgVICGF0nvtc0Zv8DyZXmTQ2Xgqa/I0hPF5L YlPviybh+OrN+GHgHtZshisPcEe4wkhTcEjb6T6kY79nPJJevn5wzsl1tTLP0atB 5qD4g1xpmaQcDBcepjpFCYZvGY8RxKS6UsPknlIRtpW9ET6/xWZqA9yzxTSekfnw == X-ME-Sender: X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 1A5EB103B0; Sun, 18 Nov 2018 20:27:32 -0500 (EST) Date: Mon, 19 Nov 2018 10:27:29 +0900 From: Michael Paquier To: Kyotaro HORIGUCHI Cc: a.lepikhov@postgrespro.ru, hlinnaka@iki.fi, pgsql-hackers@postgresql.org Subject: Re: [PATCH] XLogReadRecord returns pointer to currently read page Message-ID: <20181119012728.GA1578@paquier.xyz> References: <2553f2b0-0e39-eb0e-d382-6c0ed08ca8ae@postgrespro.ru> <20181026.143300.212568635.horiguchi.kyotaro@lab.ntt.co.jp> <20181115.181238.258013477.horiguchi.kyotaro@lab.ntt.co.jp> <20181116062355.GE6613@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: <20181116062355.GE6613@paquier.xyz> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 16, 2018 at 03:23:55PM +0900, Michael Paquier wrote: > I was looking at this patch, and shouldn't we worry about compatibility > with plugins or utilities which look directly at what's in readRecordBuf > for the record contents? Let's not forget that the contents of > XLogReaderState are public. And a couple of days later, committed. I did not notice first that the comments of xlogreader.h mention that a couple of areas are private, and readRecordBuf is part of that, so objection withdrawn. There is a comment in xlog.c (on top of ReadRecord) referring to readRecordBuf which has not been removed as part of 7fcbf6a4 when WAL reading has been moved to its own facility. The original comment was =66rom 0ffe11a. So I have removed the comment at the same time. -- Michael --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlvyEYAACgkQnvQgOdby QH38GQ//aJCX1lPgZWYXeC+cY2rzJuBjGuDJmaYuN5uWRmotzt3DGCQVDbH+wECU +6kdNt8qD5kikEJR4nIzN0kvgJ6G6qXAq+drOEnMjRWTEXPt14MqX8CYVpCUel3V GVT3yf+viFSYa5Yg2Udryoa7obCK3tISePC9ZXu1kFu31a5LNgepG7YxUevPSEPm y/fpgEDunGqHV7Plad/xj/mI/lW65tL0Jah094Z72UKAxy1M+YTI1N6MpFcNMyYF ZElPDFbLPpPYzGcCGdBZM2jS2Goj2Q9RNOBMQjYMqMaxM9504/YPUgkDeBYUGeSY G7g6ILSDaLCXnt4fvgScu2lGZFQgGJNF+1B71yGyrEql7k1R5V0wxCqnBPLmA80S lRCnSaV49E3jr9+VANYRtztUJ1wcqgv0IGq0Ia7awUfhDrbZxCBTlMrvtM72Iny8 7z9zKftO4YjaPgKYTXbMgXL6iwXjkREddK9RNaIzUxRmw3LkGU1ipZWu9XT2EgQG Z3HILKXxSCafA+kefqnbF+CqChJCyFBYhZS8RKLRFyTgqj8JDV+Z4o8CO/wkaL00 D9HsOghrRmlELBDHZsgRFkebhagjdl3oLgc6KWzrNIElavuhO7CjfOjchn6LQwXF RkRop+3Xdz1jbL3m99oZDyxUj8JztXgAoY+T9WxMyiG5+dIlD3s= =wfIX -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ--