Remove redundant AttStatsSlot initialization in eqjoinsel()

Поиск
Список
Период
Сортировка
От Chao Li
Тема Remove redundant AttStatsSlot initialization in eqjoinsel()
Дата
Msg-id CAEoWx2kfWifbgfyjZwb0HzUZ8QC5+pj-6RCqE6xH6Xg6SCyprA@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hi Hackers,

I noticed this problem while reviewing Tom’s patch [1]. The function eqjoinsel() unnecessarily zero-out sslot1 and sslot2 before calling get_attstatsslot() because get_attstatsslot() will unconditionally zero-out sslot in the first place.

I searched over the source tree, none of other callers of get_attstatsslot() initialize sslot. So for consistency, we should remove the unnecessary zero-out from eqjoinsel().


Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/




Вложения

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