Allow non-btree speculative insertion indexes
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 7 Feb 2025 10:17:25 +0000 (11:17 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 7 Feb 2025 10:23:34 +0000 (11:23 +0100)
commitb92c03342dcd69d259262b06b5c290e27249cb11
treefee9eafe74ffd6d0ce64bc42c3f5d59db41e0556
parentbfe21b760e039163b91279f58fd09a0298572775
Allow non-btree speculative insertion indexes

Previously, only btrees were supported as the arbiter index for
speculative insertion because there was no way to get the equality
strategy number for other index methods.  We have this now (commit
c09e5a6a016), so we can support this.

At the moment, only btree supports unique indexes, so this does not
change anything in practice, but it would allow another index method
that has amcanunique to be supported.

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