Re: psql \copy with multi-line query

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: psql \copy with multi-line query
Дата
Msg-id CAKFQuwYHXdsx6MQ_jZWU3mgm+5GZVD6BEeB_gL7++pFGyM_ZXw@mail.gmail.com
обсуждение исходный текст
Ответ на psql \copy with multi-line query  (Rob Sargent <robjsargent@gmail.com>)
Ответы Re: psql \copy with multi-line query  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-general
On Fri, Mar 24, 2023 at 4:04 PM Rob Sargent <robjsargent@gmail.com> wrote:
Using version 13 psql on version 14 server and having trouble sending a multi-line select in the \copy.  I don't see any remark about this in the man page.

The copy meta-command cannot contain newlines.  You should use "COPY ... TO STDOUT" directly instead.

All of this is discussed under "\copy" in the documentation (including notes).


David J.

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

Предыдущее
От: Rob Sargent
Дата:
Сообщение: psql \copy with multi-line query
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: psql \copy with multi-line query