Re: Some optimizations for COALESCE expressions during constant folding

Поиск
Список
Период
Сортировка
От Dagfinn Ilmari Mannsåker
Тема Re: Some optimizations for COALESCE expressions during constant folding
Дата
Msg-id 87h5ui6zfo.fsf@wibble.ilmari.org
обсуждение исходный текст
Ответ на Some optimizations for COALESCE expressions during constant folding  (Richard Guo <guofenglinux@gmail.com>)
Список pgsql-hackers
Richard Guo <guofenglinux@gmail.com> writes:

> +                    ListCell   *lc;
> +
> +                    foreach(lc, coalesceexpr->args)
> +                    {
> +                        Node       *coalescearg = (Node *) lfirst(lc);

I have no comment on the rest of the patch, but this could be simplifed
using the foreach_ptr macro:

    foreach_ptr(Node, coalescearg, coalesceexpr->args)
    {

- ilmari



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