Re: BUG #17195: Can't bind $1::int param when I use COPY TO STDOUT statement - libpq, C++

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17195: Can't bind $1::int param when I use COPY TO STDOUT statement - libpq, C++
Дата
Msg-id 1552784.1632064109@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #17195: Can't bind $1::int param when I use COPY TO STDOUT statement - libpq, C++  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
>     auto sql = "COPY(SELECT version_ts FROM test_point WHERE serie_id =
> $1::int) TO STDOUT (FORMAT binary)";

Don't hold your breath for that to work :-(.  Utility statements in
general do not support parameterization.  COPY is not an exception,
even when it contains what looks like a full DML command.  Maybe
somebody will improve that someday, but we'll certainly treat it
as a new feature not a bug fix.

            regards, tom lane



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #17194: Issue with pgoutput
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Query planning on partitioned table causes postgres 13.4 to consume all memory