Re: Push down time-related SQLValue functions to foreign server

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Re: Push down time-related SQLValue functions to foreign server
Дата
Msg-id CAEudQApZjbi+jD40At_rFitMvyZn1_Sn2M7sscS2qj-fFHmKow@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Push down time-related SQLValue functions to foreign server  (Alexander Pyhalov <a.pyhalov@postgrespro.ru>)
Список pgsql-hackers
Em sex., 20 de ago. de 2021 às 09:18, Alexander Pyhalov <a.pyhalov@postgrespro.ru> escreveu:
Ranier Vilela писал 2021-08-20 14:19:

> Another question:
> For 0002 patch:
>
> + if (node->funcid == F_NOW)
> + {
> + SQLValueFunction *svf = makeNode(SQLValueFunction);
> +
> + svf->op = SVFOP_CURRENT_TIMESTAMP;
> + svf->type = TIMESTAMPTZOID;
> + svf->typmod = -1;
> + svf->location = -1;
> +
> + deparseSQLValueFunction(svf, context);
> +
> + return;
> + }
> It seems to me that the svf->xpr field ( SQLValueFunction *svf ) is
> not initialized somewhere even by deparseSQLValueFunction.
> If it's not really used, it should be initialized to NULL, ok?
>

xpr field just carries node type, which will be initialized by
makeNode().
Great, I missed it.

regards,
Ranier Vilela

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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: ExecRTCheckPerms() and many prunable partitions
Следующее
От: Robert Haas
Дата:
Сообщение: Re: The Free Space Map: Problems and Opportunities