Re: Fast path for empty relids in check_outerjoin_delay()

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Fast path for empty relids in check_outerjoin_delay()
Дата
Msg-id ae987d24-51e8-d6c0-0ddd-a83b7b7c0a84@2ndquadrant.com
обсуждение исходный текст
Ответ на Fast path for empty relids in check_outerjoin_delay()  (Richard Guo <riguo@pivotal.io>)
Ответы Re: Fast path for empty relids in check_outerjoin_delay()  (Richard Guo <riguo@pivotal.io>)
Список pgsql-hackers
On 12/12/2018 08:32, Richard Guo wrote:
> This small revise is not expected to bring performance improvements, but
> can improve the readability of the code that for empty relids, the qual
> is always considered as being not-outerjoin_delayed.

I think code readability and maintainability would be improved by having
fewer special cases and fast paths.  In this particular case, I'd even
remove the existing fast path and just let the subsequent loop run zero
times.  I doubt there is a performance benefit to the existing coding.
And if there is no performance benefit, then it's not really a fast
path, just another path.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: FETCH FIRST clause PERCENT option
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: START/END line number for COPY FROM