Avoid overwiriting cache entry (src/backend/utils/cache/relcache.c)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Avoid overwiriting cache entry (src/backend/utils/cache/relcache.c)
Дата
Msg-id CAEudQAr=i3_Z4GvmediX900+sSySTeMkvuytYShhQqEwoGyvhA@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hi.

In function *CheckNNConstraintFetch* the array index is
incremented only when "null combin" is not found.

IMO the last cache entry can be overwriting if the next tuple is null,
because, the fill array fields is not syncronized with array index increment.

Fix by moving the array fill.

patch attached.

best regards,
Ranier Vilela
Вложения

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