Re: psql record separator

From: "Andrej Ricnik-Bay" <andrej(dot)groups(at)gmail(dot)com>
To: "Charley Tiggs" <lists(at)tiggs(dot)net>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: psql record separator
Date: 2008-01-10 01:55:44
Message-ID: b35603930801091755i38786677qf4b2e375811f4e7b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 10/01/2008, Charley Tiggs <lists(at)tiggs(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message G. J. Walsh 2008-01-10 04:51:51 Error in make for postgresql8.3RC1
Previous Message Charley Tiggs 2008-01-09 22:44:23 Re: psql record separator