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

From: Zhihong Yu <zyu(at)yugabyte(dot)com>
To: Alexander Pyhalov <a(dot)pyhalov(at)postgrespro(dot)ru>
Cc: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Push down time-related SQLValue functions to foreign server
Date: 2021-08-20 13:28:40
Message-ID: CALNJ-vR8Zg_anOFArhtRjiq5BmiTFv_L-F69H8CfXcDcO=M=nA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Aug 20, 2021 at 12:13 AM Alexander Pyhalov <a(dot)pyhalov(at)postgrespro(dot)ru>
wrote:

> Hi.
>
> Ranier Vilela писал 2021-08-19 14:01:
> > Em qui., 19 de ago. de 2021 às 07:50, Zhihong Yu <zyu(at)yugabyte(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2021-08-20 13:46:17 Re: ExecRTCheckPerms() and many prunable partitions
Previous Message Jesper Pedersen 2021-08-20 12:58:59 Re: Middleware Messages for FE/BE