pgsql: Remove useless if-test.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove useless if-test.
Date: 2018-03-25 18:54:21
Message-ID: E1f0Amb-0000vw-N5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2018-03-25 19:01:00 pgsql: initdb: Further polishing of --wal-segsize option
Previous Message Tom Lane 2018-03-25 18:16:32 Re: pgsql: Exclude unlogged tables from base backups