Make deduplication use number of key attributes.
authorPeter Geoghegan <pg@bowt.ie>
Sun, 29 Mar 2020 03:25:03 +0000 (20:25 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Sun, 29 Mar 2020 03:25:03 +0000 (20:25 -0700)
commita7b9d24e4e00048bf9d99b197996476dcf9492de
treebef61fd82db7983b17e07e1b5880cb80e96779c6
parent9950c8aadf0edd31baec74a729d47d94af636c06
Make deduplication use number of key attributes.

Use IndexRelationGetNumberOfKeyAttributes() rather than
IndexRelationGetNumberOfAttributes() when determining whether or not two
index tuples are suitable for merging together into a single posting
list tuple.  This is a little bit tidier.  It brings affected code in
nbtdedup.c a little closer to similar, related code in nbtsplitloc.c.
src/backend/access/nbtree/nbtdedup.c