pgsql: Fix handling of non-key columns get_index_column_opclass()

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Fix handling of non-key columns get_index_column_opclass()
Дата
Msg-id E1i7HUh-0008JG-PJ@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix handling of non-key columns get_index_column_opclass()

f2e40380 introduces support of non-key attributes in GiST indexes.  Then if
get_index_column_opclass() is asked by gistproperty() to get an opclass of
non-key column, it returns garbage past oidvector value.  This commit fixes
that by making get_index_column_opclass() return InvalidOid in this case.

Discussion: https://postgr.es/m/20190902231948.GA5343%40alvherre.pgsql
Author: Nikita Glukhov, Alexander Korotkov
Backpatch-through: 12

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c6ce5f71b08235f9ed8e0206267ae560ea1ebc91

Modified Files
--------------
src/backend/utils/cache/lsyscache.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)


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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Fix handling of non-key columns get_index_column_opclass()
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Reorder EPQ work,to fix rowmark related bugs and improve effici