Don't truncate away non-key attributes for leftmost downlinks.
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 4 May 2018 09:38:23 +0000 (12:38 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 4 May 2018 09:38:23 +0000 (12:38 +0300)
commit2a9e04f0a8ada12d4af4f095e4dbe164e2983bce
tree04538ab27d56e8b7b15e3b8e3d84065a67e07a55
parent0bef1c0678d94436f80450d562a866bb6fa5e509
Don't truncate away non-key attributes for leftmost downlinks.

nbtsort.c does not need to truncate away non-key attributes for the
minimum key of the leftmost page on a level, since this is only used to
build a minus infinity downlink for the level's leftmost page.
Truncating away non-key attributes in advance of truncating away all
attributes in _bt_sortaddtup() does not affect the correctness of CREATE
INDEX, but it is misleading.

Author: Peter Geoghegan
Discussion: https://www.postgresql.org/message-id/CAH2-WzkAS2M3ussHG-s_Av=Zo6dPjOxyu5fNRkYnxQV+YzGQ4w@mail.gmail.com
src/backend/access/nbtree/nbtsort.c