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 1g0wuS-0004jr-Pt for pgsql-committers@arkaria.postgresql.org; Fri, 14 Sep 2018 22:49:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g0wuR-0005D5-1k for pgsql-committers@arkaria.postgresql.org; Fri, 14 Sep 2018 22:49:55 +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 1g0wuQ-0005Cy-94 for pgsql-committers@lists.postgresql.org; Fri, 14 Sep 2018 22:49:54 +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 1g0wuH-0006wd-KN for pgsql-committers@lists.postgresql.org; Fri, 14 Sep 2018 22:49:52 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 60CCB2CDE5; Fri, 14 Sep 2018 18:49:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 14 Sep 2018 18:49:44 -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= fm2; bh=xj0xM/IABMVQjstd3jYICgYwzf6EbM9rjbIkCffJrsU=; b=e9JEJ8WP 28X1aqsCMF7uUz2Lq6N71vByaGcfqQ/InxEK2afgnNwyMyhey0j2fkDkbGyTpdo6 WnOPnz/kO/jWl8nIBPoaKRv8zfjLbqtY+gHnGSrWgyttpZ2tBf+TphFgGeClkXe+ ChSIbBv7pR++lB7nx5Bkodo3E63tluGFllGZBpVNZVlv3dBHNyMF28VIu8r2kwK9 FWKlrjcsWrzVTQ0JWTGJGbD7BAMJGtsamednK0Ysh8EzoMpaNsXU8tTPrUsKIF+h /DgEcqtaW0cEUaVPTIOfxuaZcVLQ0kfn3uWkDK1iXLyuq0Or1kib0RBnUqPUmzDp qR7nCpSWng2WZw== 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=xj0xM/IABMVQjstd3jYICgYwzf6Eb M9rjbIkCffJrsU=; b=n5coY2gRUKGXtPfoHW6YuIUhd8owB3wR/PqZ4yZtdGbg7 DDmjw6nsCepvR/ZbQTnQ0MolcyW69YEjXytPDC/a1UyLLIb8/2hKSXb2+2LNVWa0 HiV1qr9gkDiGSLcfDxj4HO9JwUvLq2frGC1Ret3f1kj+AmhY5u2ONkt654FTHcW3 SUCdHIlGMNCliB+E3+8k6xljrMcAInbgM/A8ylhpMOvMSb7mh5BpgRtDnCPIQnUf WmvWeItbzl1ysMxSUGonL7GnBydlfFsgHcvfjvIkFW1oG9lowRHZ7gHoLTt9E5nP qEALKC4R01HrgL2Fg2Peydz9AEXLFiolfZ1eG/FUg== 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 A6543102A0; Fri, 14 Sep 2018 18:49:42 -0400 (EDT) Date: Sat, 15 Sep 2018 07:49:39 +0900 From: Michael Paquier To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Allow concurrent-safe open() and fopen() in frontend code for Wi Message-ID: <20180914224939.GA1178@paquier.xyz> References: <23543.1536938575@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline In-Reply-To: <23543.1536938575@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 14, 2018 at 11:22:55AM -0400, Tom Lane wrote: > I'm surprised you didn't back-patch this --- isn't it a bug fix? >=20 > A compromise might be to push it to v11 but not further. Yes, that's clearly a bug fix from pg_ctl point of view with TAP tests. However, I have rather cold feet about back-patching for two reasons as this introduces a behavior change: - The concurrency part disappears. - Caller of open() needs to enforce text mode to strip correctly CRLF characters. I would be fine to get that into v11 though, as that is not released yet. You will have to wait for a couple of days though, there is a long week-end here away from laptops and electronic devices ;) -- Michael --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlucOwMACgkQnvQgOdby QH29chAAqG4qenq8WDIZGm/BeE55JnZBotEq22gcYrrrGaCYO/rVYaTtPAHXI91y j2q1MIn/F+YNP3OwsZR5WP0A9oVyttjKm6ret8VKaWSjMkCj3rviOaIQOM6Q0ubj z2hYTPF9G27FM9+ZvCPaME1ne3eoDubALAlFiEYNRYhMNKpmF6x21s4BXN9yVkvk K4bILvBT0tzorkIqeJoPjth69G3YG/gn7G3jLB2Gr3+fLMvShTR141jOAoyybhT5 rUtWWB7QHN1uGYyWugxaFX93t621zWETiJGIkLUqr4YTlhLxgjevD0UKqBgr4z9s JjQ+DnQp7DGrFbHx9VtYVwMVmA4AchYUJmgtlgv9NoI+4fVJe7zuRC/bMQuj958Q aKMWTppjrQOp3XRQAgcEmrfzVmFoErzFCvHo7xhZSptgQSzTomzfaZvWXD4iVN3V G/2OipLqIb6qKUXmyZQU61uawGxHKnDfkd3vEH7+QODQDcMidvFW3AcQFpcnmL/D ihIU53l/Kr9imgXLTetItAkgPh/KJeSXM6Q5B3JKyTMi6wg2VZ4MxV4CdqnYd7Df sBLiFXSVT0t2FFVIJe1WV7QSqhk3tCp5Gw42agaUJTMmT3ZbJoK3ibC57CqssZkr neScKZIFrk7vJiEdLBYhX1lIis9IMARnLEuUguKOxSP1yNL7sRQ= =UAlg -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--