Re: function calls optimization

Поиск
Список
Период
Сортировка
От Andrzej Barszcz
Тема Re: function calls optimization
Дата
Msg-id CAOUVqAzrk2KoWucrKJ5AUest2JdYrvM2qaR93QWB+COAH2EWYg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: function calls optimization  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: function calls optimization  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
x <> 0 is evaluated first, 1/x only when x <> 0, not ?

czw., 31 paź 2019 o 16:45 Tom Lane <tgl@sss.pgh.pa.us> napisał(a):
Andres Freund <andres@anarazel.de> writes:
> Potentially related note: for nodes like seqscan, combining the qual and projection processing into one expression seems to be a noticable win (at least when taking care do emit two different sets of deform expression steps).

There's just one problem: that violates SQL semantics, and not in
a small way.

        select 1/x from tab where x <> 0

                        regards, tom lane

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: function calls optimization
Следующее
От: Igor Calabria
Дата:
Сообщение: Adding percentile metrics to pg_stat_statements module