pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Use new overflow aware integer operations.
Date: Sat, 23 Dec 2017 00:16:42 +0100
Message-ID: <D060B40F-5781-4981-B853-509D06E7DCD0@anarazel.de> (raw)
In-Reply-To: <4294.1513968774@sss.pgh.pa.us>
References: <E1eOvQF-00075s-D1@gemulon.postgresql.org>
	<18169.1513958454@sss.pgh.pa.us>
	<20171222175225.3vaod42gv34l32wv@alap3.anarazel.de>
	<4294.1513968774@sss.pgh.pa.us>



On December 22, 2017 7:52:54 PM GMT+01:00, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>Andres Freund <andres@anarazel.de> 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.
>
>> I don't agree. Please note that that the function's documentation
>> explicitly says "The content of *result is implementation defined in
>> case of overflow.".
>
>I will not accept an implementation that spews compiler warnings
>all over the place, which is what this one is doing.  Please fix that,
>or else I will.

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 exactly define which value *result is set to in case of overflow. Without having resolved the discussion of semantics it just seemed pointless to start fixing...

Andres
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.




view thread (15+ messages)  latest in thread

Message-ID: <D060B40F-5781-4981-B853-509D06E7DCD0@anarazel.de>
Permalink:  ../D060B40F-5781-4981-B853-509D06E7DCD0@anarazel.de/
Also on:    postgresql.org/message-id/D060B40F-5781-4981-B853-509D06E7DCD0@anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Use new overflow aware integer operations.
  In-Reply-To: <D060B40F-5781-4981-B853-509D06E7DCD0@anarazel.de>
  References: <E1eOvQF-00075s-D1@gemulon.postgresql.org> <18169.1513958454@sss.pgh.pa.us> <20171222175225.3vaod42gv34l32wv@alap3.anarazel.de> <4294.1513968774@sss.pgh.pa.us> <D060B40F-5781-4981-B853-509D06E7DCD0@anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox