Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSWYd-0001UZ-3t for pgsql-committers@arkaria.postgresql.org; Fri, 22 Dec 2017 23:16:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eSWYc-0002X3-FQ for pgsql-committers@arkaria.postgresql.org; Fri, 22 Dec 2017 23:16:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eSWYc-0002Wt-2K for pgsql-committers@lists.postgresql.org; Fri, 22 Dec 2017 23:16:50 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eSWYZ-0000ou-5z for pgsql-committers@postgresql.org; Fri, 22 Dec 2017 23:16:49 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6F88420B88; Fri, 22 Dec 2017 18:16:45 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Fri, 22 Dec 2017 18:16:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=vgbaPP ddEyQo9QMDRX6Vk+0+TTVBVakURoOlBA7fXew=; b=pf5cJ5D0dWfsgz9oIeyErg sBExI05yvZXE7rgiHMU6jpOc98iY7rUfN97d/t0+OnZYBs4gc7Z8kJ7Vvj5f5ad1 kgeSRzrHO/qE7uzEuUi2G1qxLcPYXJYYiJ+Uy6X6oVOEAqYYKlruvbjFpC5UuUYz Uvs2XmM9teO5c5/kz3byPAFFjsLQo9o7SJQVbYI8TrN2QjQ78T4bhDiyX1U2E+n7 NuXQhmYkAxsi6/AMmuhggOSNcJ66eTzLSHdGYCKmLuwcMnkY4sykStBQNHOxTH9Y sR9zFLooqlfeJ2PSEv/qC7vg1MikQvgH6SOVM/BxmybDnZdAECAKj0UD8zZaFUbg == X-ME-Sender: Received: from [100.89.216.74] (unknown [172.56.12.115]) by mail.messagingengine.com (Postfix) with ESMTPA id 20E37245FD; Fri, 22 Dec 2017 18:16:43 -0500 (EST) Date: Sat, 23 Dec 2017 00:16:42 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <4294.1513968774@sss.pgh.pa.us> References: <18169.1513958454@sss.pgh.pa.us> <20171222175225.3vaod42gv34l32wv@alap3.anarazel.de> <4294.1513968774@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: pgsql: Use new overflow aware integer operations. To: Tom Lane CC: pgsql-committers@postgresql.org From: Andres Freund Message-ID: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On December 22, 2017 7:52:54 PM GMT+01:00, Tom Lane wrote: >Andres Freund writes: >> On 2017-12-22 11:00:54 -0500, Tom Lane wrote: >>> I do not think it is reasonable for these functions to not set the >>> output variable at all in the overflow case; it is not their job >>> to opine on whether the caller may use the result=2E > >> I don't agree=2E Please note that that the function's documentation >> explicitly says "The content of *result is implementation defined in >> case of overflow=2E"=2E > >I will not accept an implementation that spews compiler warnings >all over the place, which is what this one is doing=2E Please fix that, >or else I will=2E Are you seriously implying that I'm suggesting that we live with a warning= / that I refuse to fix one? All I was saying is that I don't want to exact= ly define which value *result is set to in case of overflow=2E Without havi= ng resolved the discussion of semantics it just seemed pointless to start f= ixing=2E=2E=2E Andres --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E