Re: copy command...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: copy command...
Дата
Msg-id 27789.1004124483@sss.pgh.pa.us
обсуждение исходный текст
Ответ на copy command...  ("Peter Tan" <kaihua@cs.stanford.edu>)
Список pgsql-novice
"Peter Tan" <kaihua@cs.stanford.edu> writes:
> When using the copy command to bulk load data, could I specify the string of
> "end of record", insted of using newline? If the answer is no, is there any
> alternative way?

Make a sed or awk script that changes newlines to backslash-newline,
except for the ones you want to treat as end of record.

            regards, tom lane

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

Предыдущее
От: "Peter Tan"
Дата:
Сообщение: copy command...
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: Too much postmaster prozesses / CPU near 100%