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

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Alexander Pyhalov <a(dot)pyhalov(at)postgrespro(dot)ru>
Cc: Zhihong Yu <zyu(at)yugabyte(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:59:29
Message-ID: CAEudQApZjbi+jD40At_rFitMvyZn1_Sn2M7sscS2qj-fFHmKow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Em sex., 20 de ago. de 2021 às 09:18, Alexander Pyhalov <
a(dot)pyhalov(at)postgrespro(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2021-08-20 14:32:48 Re: The Free Space Map: Problems and Opportunities
Previous Message Amit Langote 2021-08-20 13:46:17 Re: ExecRTCheckPerms() and many prunable partitions