Re: EXECUTE does not process parameters

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: EXECUTE does not process parameters
Date: 2018-04-30 23:43:43
Message-ID: 28928.1525131823@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> writes:
> The SQL-level EXECUTE statement does not process parameters in its
> arguments. So for example, the following does not work:
> ...
> It seems this needs some special treatment in transformStmt(). Any
> reason not to do that?

I have a vague recollection of having poked at this years ago and
found out that there were some interesting corner cases to worry about.
I think they had to do with parameters being passed through multiple
execution layers, but I don't remember for sure. All I can say is
that this is probably trickier than it looks.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-05-01 00:01:40 Re: "could not reattach to shared memory" on buildfarm member dory
Previous Message Andres Freund 2018-04-30 23:08:50 Re: Fsync request queue