Re: psql record separator - Mailing list pgsql-novice

From Andrej Ricnik-Bay
Subject Re: psql record separator
Date
Msg-id b35603930801091755i38786677qf4b2e375811f4e7b@mail.gmail.com
Whole thread Raw
In response to Re: psql record separator  (Charley Tiggs <lists@tiggs.net>)
Responses Re: psql record separator  (Charley Tiggs <lists@tiggs.net>)
List pgsql-novice
On 10/01/2008, Charley Tiggs <lists@tiggs.net> 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

> Charley
Cheers,
Andrej



--
Please don't top post, and don't use HTML e-Mail :}  Make your quotes concise.

http://www.american.edu/econ/notes/htmlmail.htm

pgsql-novice by date:

Previous
From: Charley Tiggs
Date:
Subject: Re: psql record separator
Next
From: "G. J. Walsh"
Date:
Subject: Error in make for postgresql8.3RC1