Re: psql record separator

Поиск
Список
Период
Сортировка
Искать
От
Charley Tiggs
Тема
Re: psql record separator
Дата
Msg-id
47862489.4020407@tiggs.net
Ответ на
Re: psql record separator (Andrej Ricnik-Bay)
Список
Дерево обсуждения
psql record separator Charley Tiggs <lists@tiggs.net>
Re: psql record separator Tom Lane <tgl@sss.pgh.pa.us>
Re: psql record separator Charley Tiggs <lists@tiggs.net>
Re: psql record separator "Andrej Ricnik-Bay" <andrej.groups@gmail.com>
Re: psql record separator Charley Tiggs <lists@tiggs.net>
Andrej Ricnik-Bay wrote:
> On 10/01/2008, Charley Tiggs  wrote:
> 
>> I added the "-A" switch and it output the string "\r\n" instead of an
>> actual CRLF.
>>
>> psql -A -R "\r\n" -t dbname username -c "select * from foo" > data_file.txt
> I can't tell you what the proper incantation is (I didn't manage to get
> it to play nice within 10 minutes), but how about a hackish solution like:
> psql -A -t dbname username -c "select * from foo"|todos > data_file.txt

I got it to work by using the actual character surrounded by quotes. 
That's not ideal but at least I got the line endings I needed.

Charley
В списке pgsql-novice по дате отправления
От: kenneth d'souza
Дата:
Сообщение: Re: two postgres binaries
От: Oeschey, Lars (I/EK-142, extern)
Дата:
Сообщение: Re: Problem restoring database
FAQ