Re: pretty print viewdefs - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: pretty print viewdefs
Date
Msg-id 20090826174035.GG5065@alvh.no-ip.org
Whole thread Raw
In response to Re: pretty print viewdefs  (Andreas Pflug <pgadmin@pse-consulting.de>)
List pgsql-hackers
Andreas Pflug escribió:

> When initially implementing the pretty option, I ran into the same
> consideration. Back then, I decided not to try any line breaking on the
> column list. Instead, I treated the columns as "just a bunch of
> columns", laying the emphasis on the from-clause (with potentially many
> joined tables).
> So a pretty column formatting should still be white-space saving.

It would be neat to have a way of detecting the client terminal's width
(psql knows it; it'd have to pass it as an additional parameter) and
output as many columns as fit on each line.  This is a much more
invasive change though.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: 8.5 release timetable, again
Next
From: Alvaro Herrera
Date:
Subject: Re: 8.5 release timetable, again