pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove dead code from nbtsplitloc.c.
Date: Sun, 24 Mar 2019 19:32:50 +0000
Message-ID: <E1h88rS-0002IH-Ho@gemulon.postgresql.org> (raw)

Remove dead code from nbtsplitloc.c.

It doesn't make sense to consider the possibility that there will only
be one candidate split point when choosing among split points to find
the split with the lowest penalty.  This is a vestige of an earlier
version of the patch that became commit fab25024.

Issue spotted while rereviewing coverage of the nbtree patch series
using gcov.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/59ab3be9e4d3e3cdf03bada2f6fb3d71a1e42908

Modified Files
--------------
src/backend/access/nbtree/nbtsplitloc.c | 20 ++++++--------------
1 file changed, 6 insertions(+), 14 deletions(-)



Message-ID: <E1h88rS-0002IH-Ho@gemulon.postgresql.org>
Permalink:  ../E1h88rS-0002IH-Ho@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h88rS-0002IH-Ho@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: pg@bowt.ie
  Subject: Re: pgsql: Remove dead code from nbtsplitloc.c.
  In-Reply-To: <E1h88rS-0002IH-Ho@gemulon.postgresql.org>
  References: <E1h88rS-0002IH-Ho@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