Re: Unicode UTF-8 table formatting for psql text output

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Unicode UTF-8 table formatting for psql text output
Дата
Msg-id 20091109225236.GK3584@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Unicode UTF-8 table formatting for psql text output  (Andrew Dunstan <andrew@dunslane.net>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Unicode UTF-8 table formatting for psql text output
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Controlling changes in plpgsql variable resolution