Re: psql \copy with multi-line query

Поиск
Список
Период
Сортировка
От Rob Sargent
Тема Re: psql \copy with multi-line query
Дата
Msg-id 8466823d-0b88-883e-ef51-e5df047bbe91@gmail.com
обсуждение исходный текст
Ответ на Re: psql \copy with multi-line query  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
On 3/24/23 17:14, David G. Johnston wrote:
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.

Thank you.  I realize now I went to COPY not \copy docs.


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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: psql \copy with multi-line query
Следующее
От: Inzamam Shafiq
Дата:
Сообщение: Re: PostgreSQL vs MariaDB