pgsql: Remove no-longer-needed loop in ExecGather().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove no-longer-needed loop in ExecGather().
Date: 2017-01-22 16:47:45
Message-ID: E1cVLIv-0001Su-36@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove no-longer-needed loop in ExecGather().

Coverity complained quite properly that commit ea15e1867 had introduced
unreachable code into ExecGather(); to wit, it was no longer possible to
iterate the final for-loop more or less than once. So remove the for().

In passing, clean up a couple of comments, and make better use of a local
variable.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0a8b9d3b2c57028f7100078cd711370f396d5a81

Modified Files
--------------
src/backend/executor/nodeGather.c | 39 +++++++++++++++------------------------
1 file changed, 15 insertions(+), 24 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-01-22 19:08:31 pgsql: Relocate static function declarations to be after typedefs in js
Previous Message Peter Eisentraut 2017-01-22 11:40:22 pgsql: Add missing break