Re: COPY support for parameters

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adrian Phinney <adrian(dot)phinney+postgres(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: COPY support for parameters
Date: 2019-02-14 15:22:43
Message-ID: 12415.1550157763@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Adrian Phinney <adrian(dot)phinney+postgres(at)gmail(dot)com> writes:
> Does Postgres support COPY with parameters?

No. In general you can only use parameters in DML statements
(SELECT/INSERT/UPDATE/DELETE); utility statements don't cope,
mainly because most of them lack expression eval capability
altogether.

Perhaps the special case of COPY from a SELECT could be made
to allow parameters inside the SELECT, but I don't think
anyone has tried.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2019-02-14 15:25:27 Re: Early WIP/PoC for inlining CTEs
Previous Message Peter Eisentraut 2019-02-14 15:22:13 Re: Early WIP/PoC for inlining CTEs