Re: Missed compiler optimization issue in function select_rtable_names_for_explain

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Missed compiler optimization issue in function select_rtable_names_for_explain
Дата
Msg-id 6806.1716408332@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Missed compiler optimization issue in function select_rtable_names_for_explain  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Hash join and picking which result set to build the hash table with.
Список pgsql-general
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> I think if we want to improve how this code is seen by the compiler by
> modifying it, we should just remove the NULL/NIL assignments.  It's a
> pretty arbitrary (and rather small) subset of fields being initialized,
> fields which very obviously have been zeroed by memset already, so I
> don't see any value in the explicit assignments.

I have to concede that it's unclear why we're filling just these
fields explicitly and not any others.  We're at least consistent:
all the callers of select_rtable_names do it the same way.

            regards, tom lane



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: search_path and SET ROLE
Следующее
От: "Dirschel, Steve"
Дата:
Сообщение: Hash join and picking which result set to build the hash table with.