Re: Push down time-related SQLValue functions to foreign server - Mailing list pgsql-hackers

From Zhihong Yu
Subject Re: Push down time-related SQLValue functions to foreign server
Date
Msg-id CALNJ-vR8Zg_anOFArhtRjiq5BmiTFv_L-F69H8CfXcDcO=M=nA@mail.gmail.com
Whole thread Raw
In response to Re: Push down time-related SQLValue functions to foreign server  (Alexander Pyhalov <a.pyhalov@postgrespro.ru>)
List pgsql-hackers


On Fri, Aug 20, 2021 at 12:13 AM Alexander Pyhalov <a.pyhalov@postgrespro.ru> wrote:
Hi.

Ranier Vilela писал 2021-08-19 14:01:
> Em qui., 19 de ago. de 2021 às 07:50, Zhihong Yu <zyu@yugabyte.com>
>> Hi,
>> For 0001 patch:
>>
>> +               if ((s->op != SVFOP_CURRENT_TIMESTAMP) &&
>> +                   (s->op != SVFOP_CURRENT_TIMESTAMP_N) &&
>> +                   (s->op != SVFOP_CURRENT_TIME) &&
>> ...
>>
>> The above check appears more than once. If extracted into a helper
>> method, it would help reduce duplicate and make the code more
>> readable.
>
> Perhaps in a MACRO?

Changed this check to a macro, also fixed condition in
is_foreign_param() and added test for it.
Also fixed comment in prepare_query_params().


--
Best regards,
Alexander Pyhalov,
Postgres Professional
Hi,
The patches are good by me.

Thanks 

pgsql-hackers by date:

Previous
From: Jesper Pedersen
Date:
Subject: Re: Middleware Messages for FE/BE
Next
From: Amit Langote
Date:
Subject: Re: ExecRTCheckPerms() and many prunable partitions