Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhRgA-0006ER-3O for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Apr 2022 07:56:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nhRg8-0001Uq-PQ for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Apr 2022 07:56:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhRg7-0001UG-Ap for pgsql-hackers@lists.postgresql.org; Thu, 21 Apr 2022 07:56:40 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhRg0-0002PI-9u for pgsql-hackers@postgresql.org; Thu, 21 Apr 2022 07:56:38 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 85EBE3202152; Thu, 21 Apr 2022 03:56:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 21 Apr 2022 03:56:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1650527788; x=1650614188; bh=A1YG5KH06D dx8MFFiN3M6fEvLpq/iFvo4WCCBRsbx2M=; b=TesUdbY+c7NmiAi80VRr6UdYio dv5y8l7TF8d/WSRpElweJnHLTqYreDJP2HQ0qJmW9jJOGTtPUx+B+krEfW02ASGS d/d+4j62Ix02FQI4NzowiV8JdXnm5zAQ6IjR8kYN3e2wNpDFAi4GNHh8kLXoOSxk FuyiWt8IC3ggIJ8aqGO09fOGqBXqqaR2m5VJQzqpsNfMOT1CEXNjWeIlyOgOUbmf 4kVioKfdumGwB8CAFiJkR1JviK2SUcXsME65pzWzlBHiStj+0IlHiTCgjee/AlXK IG7Ii1w4ga9jbQSgUoU16KInZ6oq580CAYnWXaOO5SywpxFbHT4nRsinxj0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1650527788; x= 1650614188; bh=A1YG5KH06Ddx8MFFiN3M6fEvLpq/iFvo4WCCBRsbx2M=; b=r 1JiU8g/UH1YO5/3zcSabl9C4ynxOqXecIhKl2zm/r6tKHLrRGncMNLxOlesbOUeB 5iAjmzTbeoaP3rE35/xPPc8Ov0QIy8hQ9Gpq/RNPChI7o1BccI2JMMjIzGMXb3dT OK3l37BOxLFJ9iGN1Wgst3McZhxfahyIlca3dabukfusiylWfZCidNsFfSRo9asL BVFYX0g9sy18Z+0oSSucLdA0opTBE7lxeLE+M2Q/xldSdzdJqG51VfjqyLdIxlso QEQiU397Khl4osA0J/mIIdsqN0wFKNVnqQa6CKkhKHdvHlOHpfzeXEWk8QJwHSV3 eOXn467sGHnrqn/w7L2ng== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrtddugdduvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Apr 2022 03:56:26 -0400 (EDT) Date: Thu, 21 Apr 2022 16:56:23 +0900 From: Michael Paquier To: Thomas Munro Cc: pgsql-hackers Subject: Re: Checking pgwin32_is_junction() errors Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VY3t/Q+qavL/lO0g" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --VY3t/Q+qavL/lO0g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 24, 2022 at 04:30:26PM +1300, Thomas Munro wrote: > I think it'd be better to add missing_ok and elevel parameters, > following existing patterns. Unfortunately, it can't use the generic > frontend logging to implement elevel in frontend code from its current > location, because pgport can't call pgcommon. For now I came up with > a kludge to work around that problem, but I don't like it, and would > need to come up with something better... The only barrier reason why elevel if needed is because of pg_wal in SyncDataDirectory() that cannot fail hard. I don't have a great idea here, except using a bits32 with some bitwise flags to control the behavior of the routine, aka something close to a MISSING_OK and a FAIL_HARD_ON_ERROR. This pattern exists already in some of the *Extended() routines. -- Michael --VY3t/Q+qavL/lO0g Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmJhDicACgkQnvQgOdby QH10NA/8C715AmDr56DrsIF7sYDhRrx7JnOPsnhMav26WAj0QQNXNeUmSgF0NuLB PVl22oOSohftuh8wgB5TM3fEOosfEOH37io6EbAqyWphO8b+BR1bbiLTNccyLAP1 PPDSWxc8GPXFcH5Ut0tfwiu1y5hTSdH+o7TD/FLoYxKcORRLNurWRhb6wRbwS/ng E+yiHZyp0nMupRgjwhdtJ6MMcpHA5Cin0Il8J1s2ikhk8hJJhIUwd1xZDeX/whVd qAzDIeexEi6JWaO2THIGIbcvA+RCNTcfd+Rc/vFJfBM56P4nGR2EpIds16w1KBPJ LZvMZ23c81mMfPQcuNYVJbZsxFqt5SETkbv+tCtV5Upy68J0KaOlhq+pmlJ2r6f6 fClpXwhhvMa6Poq+Pva4sOSMtPdvNJZv3+uQW24o87u0g+qv3xAvpZ51tQOt2LbX 6iMDUZ6ZefNQ11CPWarouAD1bEypeaucDa/lrGQOYxLTc1UAVuyq/wXjViT6Z7+a adCqgIsB8jtRCr/ZnlyHPbBWH3X+nMgXtnROtYIw2Cc2MCpTsT1HpfmZW0KLvEll aE8gXjwVE2ltYfpDXq3mRxd3Nh2Z7gmuwd72ZA1X/OarN9nLM1PgtU8YfvD3lwMW m5KL7pCD3i84A47cPk5SCzweEST3vxG8Q4/mFNalCJUf/tfzqwc= =ynnr -----END PGP SIGNATURE----- --VY3t/Q+qavL/lO0g--