Re: psql and tab-delimited output

Поиск
Список
Период
Сортировка
От Melvin Davidson
Тема Re: psql and tab-delimited output
Дата
Msg-id CANu8Fiz276h-x90An_a-CjOdZwctTcM6mZGbsGfdQgz3OtWLfA@mail.gmail.com
обсуждение исходный текст
Ответ на psql and tab-delimited output  (Abelard Hoffman <abelardhoffman@gmail.com>)
Ответы Re: psql and tab-delimited output  (Abelard Hoffman <abelardhoffman@gmail.com>)
Список pgsql-general
>the output I'd prefer is:
> id fld_1
> 1 test\tvalue
> 2 test\tvalue
> 3 >test\tvalue


Does this work for you?

copy (SELECT id, replace(fld_1, '    ', '\t') FROM tsv_test) to stdout  with csv header delimiter '    ';

query returned copy data:
id    replace
1    test\tvalue
2    test\tvalue
3    test\tvalue

--
Melvin Davidson
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.

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

Предыдущее
От: Sergey Burladyan
Дата:
Сообщение: xlog min recovery request is past current point -- is it real problem?
Следующее
От: "Huang, Suya"
Дата:
Сообщение: Re: Decreasing performance in table partitioning