Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: psql wrappe...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 29 Topic 9335 of 10122
Post > Topic >>

Re: psql wrapped format default for backslash-d

by bruce@[EMAIL PROTECTED] (Bruce Momjian) May 9, 2008 at 04:07 PM

Brendan Jurd wrote:

[ email paragraphs reordered.]

> I seem to recall there was some discussion of an "auto" mode in the
> original wrapping thread, but if there was any meaningful conclusion I
> lost it in amongst the width detection flame war.

I wasn't going to bring up the 'auto' idea yet because it might confuse
things, but I guess I should address it now.

"wrapped" format doesn't wrap if the column headings don't fit the
screen width _without_ wrapping (it then uses 'aligned').  My idea was
for an 'auto' format mode to use wrapped, or expanded if wrapped can't
be displayed.

> > The attached patch uses wrapped format for \d* output if the current
> > output format is 'aligned'.  It certainly helps the \df and \dT
because
> > those outputs have normally narrow values with a few wide values that
> > cause aligned output to be much too wide.  The downside of the patch
is
> > that you can no longer get 'aligned' output for \d* commands anymore
> > because there is no way to know if the user specified 'aligned' or if
> > they are just using the default.
> >
> 
> Doesn't this suggest that we need an "auto" formatting mode which has
> the semantics "let psql decide what format mode I want"?

The big problem is unless we default psql to 'auto' we can't know if
they really want 'aligned', 'wrapped', or whatever looks good on the
screen, 'auto'.

> Then the people who object to wrapped mode can just set formatting to
> aligned explicitly and be done with it.

Right, but 'wrapped' is kind of a dramatic change so we have to be sure
most people wanted 'wrapped' (or 'auto').  I think the way we did the
detection defaults will help because a default of 'auto' will only
affect screen output, by default.

-- 
  Bruce Momjian  <bruce@[EMAIL PROTECTED]
>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 29 Posts in Topic:
psql wrapped format default for backslash-d commands
bruce@[EMAIL PROTECTED]   2008-05-09 13:52:24 
Re: psql wrapped format default for backslash-d commands
direvus@[EMAIL PROTECTED]  2008-05-10 04:31:31 
Re: psql wrapped format default for backslash-d commands
alvherre@[EMAIL PROTECTED  2008-05-09 14:37:44 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-09 16:07:57 
Re: psql wrapped format default for backslash-d commands
direvus@[EMAIL PROTECTED]  2008-05-10 04:42:24 
Re: psql wrapped format default for backslash-d commands
aidan@[EMAIL PROTECTED]   2008-05-09 14:51:51 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-09 16:51:17 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-09 16:50:22 
Re: psql wrapped format default for backslash-d
Kevin.Grittner@[EMAIL PRO  2008-05-09 15:47:03 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-09 16:53:52 
Re: psql wrapped format default for backslash-d commands
alvherre@[EMAIL PROTECTED  2008-05-09 17:19:10 
Re: psql wrapped format default for
Kevin.Grittner@[EMAIL PRO  2008-05-09 16:07:37 
Re: psql wrapped format default for
bruce@[EMAIL PROTECTED]   2008-05-09 17:12:34 
Re: psql wrapped format default for backslash-d
Kevin.Grittner@[EMAIL PRO  2008-05-09 16:56:44 
Re: psql wrapped format default for backslash-d commands
tgl@[EMAIL PROTECTED] (T  2008-05-09 23:49:58 
Re: psql wrapped format default for backslash-d commands
bryce2@[EMAIL PROTECTED]   2008-05-12 23:12:55 
Re: psql wrapped format default for backslash-d commands
direvus@[EMAIL PROTECTED]  2008-05-13 16:39:55 
Re: psql wrapped format default for backslash-d commands
bryce2@[EMAIL PROTECTED]   2008-05-13 00:17:06 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-13 10:21:34 
Re: psql wrapped format default for backslash-d commands
alvherre@[EMAIL PROTECTED  2008-05-13 10:43:02 
Re: psql wrapped format default for backslash-d commands
tgl@[EMAIL PROTECTED] (T  2008-05-13 11:47:58 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-13 11:53:09 
Re: psql wrapped format default for backslash-d commands
alvherre@[EMAIL PROTECTED  2008-05-13 12:09:29 
Re: psql wrapped format default for backslash-d commands
tgl@[EMAIL PROTECTED] (T  2008-05-13 12:30:47 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-13 12:57:57 
Re: psql wrapped format default for backslash-d commands
alvherre@[EMAIL PROTECTED  2008-05-13 14:19:16 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-05-13 14:33:37 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-06-30 15:45:28 
Re: psql wrapped format default for backslash-d
bruce@[EMAIL PROTECTED]   2008-06-30 15:41:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 13:02:32 CDT 2008.