Skip site navigation (1) Skip section navigation (2)

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

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Roger Leigh <rleigh(at)codelibre(dot)net>,Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Brad T(dot) Sliger" <brad(at)sliger(dot)org>,pgsql-hackers(at)postgresql(dot)org, Robert Haas <robertmhaas(at)gmail(dot)com>,Selena Deckelmann <selenamarie(at)gmail(dot)com>,Roger Leigh <rleigh(at)debian(dot)org>
Subject: Re: Unicode UTF-8 table formatting for psql text output
Date: 2009-09-30 18:02:43
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Andrew Dunstan escribió:
> Peter Eisentraut wrote:
> >On Wed, 2009-09-30 at 11:03 -0400, Andrew Dunstan wrote:
> >>Thinking about this some more, ISTM a much better way of
> >>approaching it would be to provide a flag for psql to turn off
> >>the fancy formatting, and have pg_regress use that flag.
> >
> >Well, it might not be a bad idea, but adding a feature just to satisfy
> >the test suite instead of fixing the test suite doesn't feel satisfying.
> >Is there another use case?
> Sure, as Tom noted pg_regress probably won't be the only user. There
> are lots of legacy scripts out there that parse psql output, and it
> should be of use to them.

All scripts I've seen parsing psql output use unaligned, undecorated
mode.  I have yet to see one messing with the |'s.

Alvaro Herrera                      
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to


pgsql-hackers by date

Next:From: Magnus HaganderDate: 2009-09-30 18:08:34
Subject: Re: CommitFest 2009-09, two weeks on
Previous:From: Abhijit Menon-SenDate: 2009-09-30 17:56:33
Subject: Re: pg_hba.conf: samehost and samenet [REVIEW]

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group