Subject: Re: btree_gist into core?

From: Emre Hasegeli <[email-masked]>
Date: Thu, 14 Dec 2023 12:35:17 +0100

> Thoughts?

I think it'd be really nice to do this without btree_gist.

I imagine something like this:

CREATE INDEX ON tbl USING gist (
    range_col,
    int_col USING btree
)

I think this would make the index access methods interface more
useful.  Index access method developers wouldn't need to provide
operator classes for all data types.  We could extend ACCESS METHOD
definition to allow this:

CREATE ACCESS METHOD my_hash_index
    TYPE INDEX
    IMPLEMENTS hash
    HANDLER my_hash_index_handler

I realise this is a difficult project.