Re: EXECUTE does not process parameters - Mailing list pgsql-hackers

From Tom Lane
Subject Re: EXECUTE does not process parameters
Date
Msg-id 28928.1525131823@sss.pgh.pa.us
Whole thread Raw
In response to EXECUTE does not process parameters  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.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


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Fsync request queue
Next
From: Tom Lane
Date:
Subject: Re: "could not reattach to shared memory" on buildfarm member dory