pgsql: Remove dead code from nbtsplitloc.c. - Mailing list pgsql-committers

From Peter Geoghegan
Subject pgsql: Remove dead code from nbtsplitloc.c.
Date
Msg-id E1h88rS-0002IH-Ho@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Avoid double-free in vacuumlo error path.
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Make heap TID a tiebreaker nbtree index column.