Re: coupling of index and table access methods

2024-10-01 Thread Aleksey Demakov
As far as I see a possible way to do this is to add two optional functions to table AM interface: char * (*default_index_am)(void) ; bool (*validate_index_am)(char *); If the first one is not provided then DEFAULT_INDEX_TYPE, that is "btree", has to be used instead. If the second one is not provi

coupling of index and table access methods

2024-10-01 Thread Aleksey Demakov
Hi hackers, My extension introduces a new table access method together with an index access method. Specifically, these AMs work with in-memory data. I would like to make a CREATE TABLE request with PRIMARY KEY, UNIQUE constraints etc, to pick my in-memory index AM over default btree when the tab