Re: Unicode UTF-8 table formatting for psql text output - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Unicode UTF-8 table formatting for psql text output
Date
Msg-id 20091109225236.GK3584@alvh.no-ip.org
Whole thread Raw
In response to Re: Unicode UTF-8 table formatting for psql text output  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan wrote:

> >You can set the field separator to ',' but you can't do a
> >  \pset format csv
> >and get CSV with correct quoting, escaping etc AFAICS.  It'll
> >still break on line wrapping if wrapping is enabled, and with
> >newlines in the data.
> >
> >If that would be a useful addition, I can add it.
> 
> It's done by the backend, not by psql, but it has psql support - see \copy

I agree with Roger that we should really have a CSV option in \pset format.
COPY as CVS is certainly very useful, but it's a different use case.
(You can't \copy a \-command for example).

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Unicode UTF-8 table formatting for psql text output
Next
From: Bruce Momjian
Date:
Subject: Re: Controlling changes in plpgsql variable resolution