Enable deduplication in system catalog indexes.
authorPeter Geoghegan <pg@bowt.ie>
Sun, 3 Oct 2021 00:12:59 +0000 (17:12 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Sun, 3 Oct 2021 00:12:59 +0000 (17:12 -0700)
commit2903f1404df37e11ecc303dbc164826c4717194b
tree4dcbf8ffa25a5e8a3329aafd3d5b9cad8efc4a3d
parent9b8d68cc6589814d121344f59e927a7e4506fb8c
Enable deduplication in system catalog indexes.

The "equality implies image equality" opclass infrastructure disallowed
deduplication in system catalog indexes and TOAST indexes before now.
That seemed like the right approach back when the infrastructure was
added by commit 612a1ab7, since ALTER INDEX cannot set deduplicate_items
to 'off' (due to an old implementation restriction).  But that decision
now seems arbitrary at best.  Remove special case handling implementing
this policy.

No catversion bump, since existing catalog indexes will still work.

Author: Peter Geoghegan <pg@bowt.ie>
Discussion: https://postgr.es/m/CAH2-Wz=rYQHFaJ3WYBdK=xgwxKzaiGMSSrh-ZCREa-pS-7Zjew@mail.gmail.com
src/backend/access/nbtree/nbtutils.c