Re: Alternative to \copy in psql modelled after \g

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Alternative to \copy in psql modelled after \g
Дата
Msg-id CAKFQuwa6V-2aNna4o+A1fYfiPZw5A-RWYNb=3YVUqeg1oq76cg@mail.gmail.com
обсуждение исходный текст
Ответ на Alternative to \copy in psql modelled after \g  ("Daniel Verite" <daniel@manitou-mail.org>)
Ответы Re: Alternative to \copy in psql modelled after \g  ("Daniel Verite" <daniel@manitou-mail.org>)
Список pgsql-hackers
On Fri, Nov 9, 2018 at 4:19 AM Daniel Verite <daniel@manitou-mail.org> wrote:
> Examples of use
>
> 1. $ psql -v filename="/path/data-$(date -I).csv"
> COPY (SELECT *
>    FROM table
>    WHERE ...)
> TO STDOUT (FORMAT csv) \copyto :filename

Do I understand correctly that you are proposing a slightly less
verbose alternative of:

\o :filename
COPY TO STDOUT
\o

David J.


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

Предыдущее
От: Konstantin Knizhnik
Дата:
Сообщение: Re: [HACKERS] Surjective functional indexes
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: notice processors for isolationtester