Use index with x = ANY(array_column) expression

Поиск
Список
Период
Сортировка
От Havasvölgyi Ottó
Тема Use index with x = ANY(array_column) expression
Дата
Msg-id CAOryeA2DHD_ZiuVtgzmBoBupjHHTPUUCW4_Ut9PbyjGM2ts=2Q@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
Hi all,

Is there a way to speed up ANY-based array element search with some kind of index?
I mean this:

WHERE <parameter> = ANY(<array_column>)

Or is GIN index the only option with the @> operator?

WHERE <array_column> @> ARRAY[<parameter>]

Thank you,
Otto




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

Предыдущее
От: Jeremy Finzel
Дата:
Сообщение: Re: ERROR: found multixact from before relminmxid
Следующее
От: Steve Atkins
Дата:
Сообщение: Re: Performance problem postgresql 9.5