Re: using COPY table FROM STDIN within script run as psql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: using COPY table FROM STDIN within script run as psql
Дата
Msg-id 2757.1096307615@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: using COPY table FROM STDIN within script run as psql  (Kevin Murphy <murphy@genome.chop.edu>)
Ответы Re: using COPY table FROM STDIN within script run as psql  (Kevin Murphy <murphy@genome.chop.edu>)
Список pgsql-general
Kevin Murphy <murphy@genome.chop.edu> writes:
> I can reproduce the problem with this command:

> psql -U egenome_test -P pager=off -f
> /Users/murphy/cvs/egora/sql/data_build/junk.sql < ./junk.dat

> with junk.sql and junk.dat as follows:

> COPY import_sts_tmp FROM STDIN WITH NULL AS '';

This command says to copy from the SQL script file.  You can use
psql's \copy command to get the effect you are after.

            regards, tom lane

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

Предыдущее
От: Kevin Murphy
Дата:
Сообщение: Re: using COPY table FROM STDIN within script run as psql
Следующее
От: Kevin Murphy
Дата:
Сообщение: Re: using COPY table FROM STDIN within script run as psql