Re: Index AM change proposals, redux

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Index AM change proposals, redux
Дата
Msg-id 5584.1207849694@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Index AM change proposals, redux  (Teodor Sigaev <teodor@sigaev.ru>)
Ответы Re: Index AM change proposals, redux  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-hackers
Teodor Sigaev <teodor@sigaev.ru> writes:
> Both GIN and GiST make a call of transformation function before indexing value. 
> I suppose, there is no automatic way to set this flag even in case when type of 
> storage and type of indexing value are the same.

> So, I see three variant:
>   - add flag in pg_am
>   - add flag to create operator class and by default it should point to
>     impossibility to get value from index. At least for GIN and GiST.

Yeah, just as messy as I feared :-(.  My inclination for the first pass
would be to just make it a per-AM flag in pg_am.  We could always
complicate matters later.

(Of course, this is all hypothetical since no patch is on the
horizon...)
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Index AM change proposals, redux
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Kludge in pg_standby.c