Re: nbtsort.c performs unneeded (though harmless) truncation

2018-05-04 Thread Peter Geoghegan
On Fri, May 4, 2018 at 2:39 AM, Teodor Sigaev wrote: > Thank you, pushed. Thanks. -- Peter Geoghegan

Re: nbtsort.c performs unneeded (though harmless) truncation

2018-05-04 Thread Teodor Sigaev
Thank you, pushed. Peter Geoghegan wrote: I noticed that we're calling _bt_nonkey_truncate() needlessly when a minimum key is needed at the leftmost page on each level of the tree. This was always a special case, and I think that it should remain as one. Attached patch avoids unneeded truncation

nbtsort.c performs unneeded (though harmless) truncation

2018-04-30 Thread Peter Geoghegan
I noticed that we're calling _bt_nonkey_truncate() needlessly when a minimum key is needed at the leftmost page on each level of the tree. This was always a special case, and I think that it should remain as one. Attached patch avoids unneeded truncations, while preserving the generic BTreeTupleGet