pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove useless if-test.
Date: Sun, 25 Mar 2018 18:54:21 +0000
Message-ID: <E1f0Amb-0000vw-N5@gemulon.postgresql.org> (raw)

Remove useless if-test.

Coverity complained that this check is pointless, and it's right.
There is no case where we'd call ExecutorStart with a null plannedstmt,
and if we did, it'd have crashed before here.  Thinko in commit cc415a56d.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3a2cb59887421a04b5ee158580198d731d115c61

Modified Files
--------------
src/backend/executor/execMain.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)



Message-ID: <E1f0Amb-0000vw-N5@gemulon.postgresql.org>
Permalink:  ../E1f0Amb-0000vw-N5@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f0Amb-0000vw-N5@gemulon.postgresql.org

 · 

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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Remove useless if-test.
  In-Reply-To: <E1f0Amb-0000vw-N5@gemulon.postgresql.org>
  References: <E1f0Amb-0000vw-N5@gemulon.postgresql.org>

* 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