psql: \x and slash commands

Started by Neil Conwayover 20 years ago4 messages
#1Neil Conway
neilc@samurai.com

Someone commented to me recently that they usually use psql's \x
"expanded output" mode, but find that it produces pretty illegible
results for psql slash commands such as \d. I can't really see a reason
you would _want_ "expanded output" mode for the result sets of psql
slash commands. Would anyone object to changing \x to not affect that
way that the result sets of slash commands are printed?

-Neil

#2Christopher Kings-Lynne
chriskl@familyhealth.com.au
In reply to: Neil Conway (#1)
Re: psql: \x and slash commands

Someone commented to me recently that they usually use psql's \x
"expanded output" mode, but find that it produces pretty illegible
results for psql slash commands such as \d. I can't really see a reason
you would _want_ "expanded output" mode for the result sets of psql
slash commands. Would anyone object to changing \x to not affect that
way that the result sets of slash commands are printed?

I have complained about that a few times before, but for some
unbeknownst reason people thought that having totally messed up table
displays was a feature, not a bug :)

Chris

#3Jon Jensen
jon@endpoint.com
In reply to: Neil Conway (#1)
Re: psql: \x and slash commands

On Fri, 10 Jun 2005, Neil Conway wrote:

Someone commented to me recently that they usually use psql's \x "expanded
output" mode, but find that it produces pretty illegible results for psql
slash commands such as \d. I can't really see a reason you would _want_
"expanded output" mode for the result sets of psql slash commands. Would
anyone object to changing \x to not affect that way that the result sets of
slash commands are printed?

I would very much like to see that behavior changed, but if there are
people who like it the way it is, maybe we can have a \X command that uses
expanded mode only for non-slash output.

What do others think about this?

Jon

--
Jon Jensen
End Point Corporation
http://www.endpoint.com/

#4Robert Treat
xzilla@users.sourceforge.net
In reply to: Christopher Kings-Lynne (#2)
Re: psql: \x and slash commands

On Thursday 09 June 2005 22:03, Christopher Kings-Lynne wrote:

Someone commented to me recently that they usually use psql's \x
"expanded output" mode, but find that it produces pretty illegible
results for psql slash commands such as \d. I can't really see a reason
you would _want_ "expanded output" mode for the result sets of psql
slash commands. Would anyone object to changing \x to not affect that
way that the result sets of slash commands are printed?

I have complained about that a few times before, but for some
unbeknownst reason people thought that having totally messed up table
displays was a feature, not a bug :)

If have found that \x on and \df+ can often produce nice results (especially
with a lot of \n in the function definitions.) I'm more neutral toward other
other things (\d on a table is kind of ugly, but \dv isnt so bad), but
wouldn't want to have to choose which ones some people would like and which
ones they wouldn't

--
Robert Treat
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL