COPY statement cannot take binding parameters - Mailing list pgsql-hackers

From Stephen R. van den Berg
Subject COPY statement cannot take binding parameters
Date
Msg-id 20080902080752.GA24220@cuci.nl
Whole thread Raw
Responses Re: COPY statement cannot take binding parameters  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Trying to parse and bind the following:
  COPY (SELECT $1::INT) TO STDOUT

gives a correct parsing-done, but then in the parameterdescription tells
me that there are no parameters.

Is this intended?
Is this a limitation of the COPY statement that will not change?
In that case, might I suggest the server generates an appropriate error
message when someone attempts to do this?
-- 
Sincerely,          Stephen R. van den Berg.
"Having a non-smoking section in a restaurant is likehaving a non-peeing section in a pool."


pgsql-hackers by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: Is this really really as designed or defined in some standard
Next
From: Stefan Kaltenbrunner
Date:
Subject: Re: Window functions patch v04 for the September commit fest