pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: obouda@email.cz, Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: Wrong aggregate result when sorting by a NULL value
Date: Sun, 04 Nov 2018 19:15:47 -0500
Message-ID: <25772.1541376947@sss.pgh.pa.us> (raw)
In-Reply-To: <20181105000900.hmhvb5daedmxzm63@alap3.anarazel.de>
References: <87y3ab2ykj.fsf@news-spur.riddles.org.uk>
	<20181103055700.etsffelwr2rhrphh@alap3.anarazel.de>
	<20181103215009.slavgzc2kvyhpxlf@alap3.anarazel.de>
	<30989.1541283520@sss.pgh.pa.us>
	<20181103222709.c2hqlbipo7f53nx3@alap3.anarazel.de>
	<20181103230837.6rv63tajaodxmp6j@alap3.anarazel.de>
	<CAMkU=1xTHkS6d0iptCWykHc1Xrh3LBic_gZDo3JzDYru815fLQ@mail.gmail.com>
	<26185.1541348399@sss.pgh.pa.us>
	<20181104234410.f63uu33kfxy2zgjx@alap3.anarazel.de>
	<24674.1541375380@sss.pgh.pa.us>
	<20181105000900.hmhvb5daedmxzm63@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> On 2018-11-04 18:49:40 -0500, Tom Lane wrote:
>> Meh.  I'm unexcited about getting rid of one type of compiler warning by
>> introducing another one.

> It's impracticable to enable dead code warnings in postgres
> anyway. There's way way too many of them (all the returns after
> elog(ERROR) etc are enough to make it infeasible to change that).

I think you have a very limited conception of what sorts of warnings
code like that would trigger.  In particular, even given the
unsubstantiated assumption that nobody's compiler would complain,
I think static analyzers like Coverity might.

			regards, tom lane




view thread (16+ messages)

Message-ID: <25772.1541376947@sss.pgh.pa.us>
Permalink:  ../25772.1541376947@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25772.1541376947@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, jeff.janes@gmail.com, andrew@tao11.riddles.org.uk
  Subject: Re: Wrong aggregate result when sorting by a NULL value
  In-Reply-To: <25772.1541376947@sss.pgh.pa.us>
  References: <87y3ab2ykj.fsf@news-spur.riddles.org.uk> <20181103055700.etsffelwr2rhrphh@alap3.anarazel.de> <20181103215009.slavgzc2kvyhpxlf@alap3.anarazel.de> <30989.1541283520@sss.pgh.pa.us> <20181103222709.c2hqlbipo7f53nx3@alap3.anarazel.de> <20181103230837.6rv63tajaodxmp6j@alap3.anarazel.de> <CAMkU=1xTHkS6d0iptCWykHc1Xrh3LBic_gZDo3JzDYru815fLQ@mail.gmail.com> <26185.1541348399@sss.pgh.pa.us> <20181104234410.f63uu33kfxy2zgjx@alap3.anarazel.de> <24674.1541375380@sss.pgh.pa.us> <20181105000900.hmhvb5daedmxzm63@alap3.anarazel.de> <25772.1541376947@sss.pgh.pa.us>

* 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