Re: Nitpicking: unnecessary NULL-pointer check in pg_upgrade's controldata.c - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Nitpicking: unnecessary NULL-pointer check in pg_upgrade's controldata.c
Date
Msg-id CA+TgmobhJqHJR=0uLFOZ5Zn7VwpDGsF0d8LXQ+QQopMOZ+3efQ@mail.gmail.com
Whole thread Raw
In response to Re: Nitpicking: unnecessary NULL-pointer check in pg_upgrade's controldata.c  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, Jun 26, 2015 at 10:54 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Well, if you find this to be good code cleanup on its own merits,
> you have a commit bit, you can go commit it.  I'm just saying that
> Coverity is not a good judge of code readability and even less of
> a judge of likely future changes.  So we should not let it determine
> whether we approve of "unnecessary" tests.

Yes, it might not be right in every case, but this one seems like a
good change to me, so committed.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: Re: Let PostgreSQL's On Schedule checkpoint write buffer smooth spread cycle by tuning IsCheckpointOnSchedule?
Next
From: Peter Geoghegan
Date:
Subject: Re: Nitpicking: unnecessary NULL-pointer check in pg_upgrade's controldata.c