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 1ixpSc-0007EM-Tm for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Feb 2020 09:53:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ixpSa-0006ZO-Ph for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Feb 2020 09:53:04 +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 1ixpSa-0006ZG-D1 for pgsql-hackers@lists.postgresql.org; Sat, 01 Feb 2020 09:53:04 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ixpSY-0004eJ-5i for pgsql-hackers@lists.postgresql.org; Sat, 01 Feb 2020 09:53:03 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id EACB64D5; Sat, 1 Feb 2020 04:53:00 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 01 Feb 2020 04:53:01 -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=hMty+EOpoDVyiFm4esx4STEEQvH 77zHxIjkVNlwR+gU=; b=k4I2uoWuSvURN1GIsNeIo5WH35/j3k0xV+If6hA7fjI Mh67TKpadGYJbTU362yDfcPpdkCvsnD7w2NrJZMxuIbGNsXLRXtZoVG5ekXdT7+A n2Yqc+gi9xM/mIZ09VCLPOzEBt0T+w7FgHxsyC5V3YMTUtZ38gDlBnjzLWfXNAAa dzLLm0T2c1vTosPBOK7sS4B5SLmUIjTesdxGS2G8GEcnKfbhvyZvtH9GkhBfijWv DxtZZfPd8AMAwsWDr5/8edcpt9Q/aVR8kFue37vC4gkEkeOgFxr7tGLTISJ/yVcb i4b88l6rWNat28Oolzm+Rbh2fxIvOKVmJBtb+YA5vFw== 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=hMty+E OpoDVyiFm4esx4STEEQvH77zHxIjkVNlwR+gU=; b=VCHJQiJG1PCUwieGGIaLVY KqmZCVv8AnrJHEuPVymXDMec2xRWcMjTa3iWKkwBuOG23EEXjRXXel2TIhsPI8C1 GVEWnJiQMJNbv7yJ/4u8OjDV5bd380O7hBpWMXNP5BQzvqaZ13eNu4/02P0Kgprm VmvpHLoSBDG/mZR0TSmIIY5cwGecJh079j25AGzlmavW1TV04hWZ5JVfI/9j+Fhm NGORCP9jPg76F00d1snFkMvZvmSQ6eYiK7TyfMYOurdzvWqSdu6PeF/cdWIE+xqU Cjr+qMX1uTFnbVdHJd9f2powLWDhXsjOV3S4cEK+liGLhNZjGoixhQ5g1r8/GVtw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrgedvgddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesph grqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 186903060B16; Sat, 1 Feb 2020 04:52:58 -0500 (EST) Date: Sat, 1 Feb 2020 18:52:56 +0900 From: Michael Paquier To: Tom Lane Cc: Alvaro Herrera , Pg Hackers Subject: Re: widen vacuum buffer counters Message-ID: <20200201095256.GC4133@paquier.xyz> References: <20200131205926.GA16367@alvherre.pgsql> <4969.1580508833@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="32u276st3Jlj2kUU" Content-Disposition: inline In-Reply-To: <4969.1580508833@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --32u276st3Jlj2kUU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jan 31, 2020 at 05:13:53PM -0500, Tom Lane wrote: > +1 for widening these counters, but since they're global variables, -0.2 > or so for back-patching. I don't know of any reason that an extension > would be touching these, but I feel like the problem isn't severe enough > to justify taking an ABI-break risk. I would not recommend doing a back-patch because of that. I don't think that's worth taking any risk. Extension authors can have a lot of imagination. > Also, %zd is the wrong format code for int64. Recommended practice > these days is to use "%lld" with an explicit cast of the printf argument > to long long (just to be sure). That doesn't work safely before v12, > and if you did insist on back-patching further, you'd need to jump > through hoops to avoid having platform-specific format codes in a > translatable string. (The side-effects for translation seem like > an independent argument against back-patching.) Surely you meant INT64_FORMAT here? Anyway, looking at the patch, couldn't we just use uint64? -- Michael --32u276st3Jlj2kUU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl41SngACgkQnvQgOdby QH024A/8C/SJPWed5/6QD2FRaXm0fieWLTIXXZrWx0u3q4tVkU4Of3t1sjWkJgM0 14/cGC//slswcIwIGpzZ0clRywebFrQamSzt8sE9LNsJDbLjztFprhVJjgRptj7E noeVSZhT/vSAa8Q9dMy7/mwlVMhHFTqROvOw1cIwlwpZo7J7i6m+0SbHDcRih/Dz 1vs4uCq8k6XcWy/qNWkrSGJGzHZQTTRydfSRAx6rXl50m7fvKwrOi7DPcae+4Xl9 EYE4j7RRQF0tEFC++pfOsvvEuoddvPLsw521dnevxtI9zQgchShGLcnQiKPLwq3z yczHQ+Dc1Mhi7kD+t0XkrXrRNPQVpYJR81jBwXlFcKvXOSLzMGIqFQUUgUqyn7+Z qwOeWL5H8Ai2/yxylc7vO2dTYYIIbee8a/9sF/JyJsB7lze7pXItHJZUN3XC9n+d IMLfbb6I9G7kv/W9Wh6LC1iWJm7pmYKdv4sgzeilgPvNoL5f3l+VkmKxIS8mV6Nw HQj5v52orb4NCHidVE8O0DN1mcF6ZLJow6SNTfH6ukI2cEge9GCAFUFqhGYjy+/U qU1G4QZXLpa+BoaNszEN3dBvC6QYMJUSFq1H98+sK1z8shDyfN9GrmVXxYB8wVMp pAKaqsxyIbixnMfiFW6GUGABiCt3AQ+0+C78oZWhiVPTKnPXIUs= =pLFy -----END PGP SIGNATURE----- --32u276st3Jlj2kUU--