Re: Query plan not updated after dropped index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query plan not updated after dropped index
Дата
Msg-id 26415.1455807931@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Query plan not updated after dropped index  (Victor Blomqvist <vb@viblo.se>)
Ответы Re: Query plan not updated after dropped index  (Victor Blomqvist <vb@viblo.se>)
Список pgsql-general
Victor Blomqvist <vb@viblo.se> writes:
> We just had a major issue on our databases, after a index was replaced a
> user defined function didnt change its query plan to use the new index.

I'm suspicious that this is some variant of the problem discussed a couple
days ago:

http://www.postgresql.org/message-id/flat/CAKt_ZfsvdE3WiHUjg81MT1KzOkebqz_bg=DBHf4L6rkfjtEJ_w@mail.gmail.com

However, that theory requires that the index not have been immediately
usable, which implies that it initially had some broken HOT chains,
which really should not have happened if you were simply replacing one
index with an identical one.  (The pre-existing index should've been
enough to ensure HOT chain consistency for its columns.)

Perhaps you were doing something "cute" like replacing a single-column
index with a multi-column one?

            regards, tom lane


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

Предыдущее
От: Vitaly Burovoy
Дата:
Сообщение: Re: Query plan not updated after dropped index
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: Multiple databases and shared_buffers