Allow non-btree unique indexes for partition keys
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 18 Mar 2025 10:25:36 +0000 (11:25 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 18 Mar 2025 10:25:36 +0000 (11:25 +0100)
commitf278e1fe300ab1b7d43c3efb55a29aa17e5f5dda
treeb51f02d63bd72e47b884f2e74babb7a60b2a0283
parent7317e641268fb9b08d32519920adf1f16c8591ea
Allow non-btree unique indexes for partition keys

We were rejecting non-btree indexes in some cases owing to the
inability to determine the equality operators for other index AMs;
that problem no longer exists, because we can look up the equality
operator using COMPARE_EQ.  The problem of not knowing the strategy
number for equality in other index AMs is already resolved.

Stop rejecting the indexes upfront, and instead reject any for which
the equality operator lookup fails.

Author: Mark Dilger <mark.dilger@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/E72EAA49-354D-4C2E-8EB9-255197F55330@enterprisedb.com
src/backend/commands/indexcmds.c