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 19 of 29 Topic 9335 of 10966
Post > Topic >>

Re: psql wrapped format default for backslash-d

by bruce@[EMAIL PROTECTED] (Bruce Momjian) May 13, 2008 at 10:21 AM

Bryce Nesbitt wrote:
> It's not that hard to do.
> 
> I chose not to, when writing the patch, because it makes the result flow

> over many more lines.
> And regardless, it pretty much has to cut long "words", of which there 
> are many in typical SQL output.
> And, I hardly ever read actual large blocks of English at the SQL 
> prompt, so: designing for that use case did
> not float my boat at the time.
> And, word wrapping messes with the cell contents more than I was 
> comfortable doing. With the current wrapping all whitespace is preserved

> and apparent.
> 
> But, if your boat is floated, then by all means go for it.

Yea, you could probably call it a 'chopped' format rather than a
'wrapped' format.

While I got a lot of feedback on screen width detection for wrapped, I
got little freedback on the display format.  We can address that now.

I think we can wrap if there is whitespace within a few characters
before the break point, and use a dash if we have to break a word.  Is
that what people want?

Also, about the format 'auto' idea that uses expanded display, I am
thinking because expanded is a separate setting and not a format, I
should just add a possible 'auto' value to the expanded format that
could be triggered by either 'aligned' or 'wrapped' formats when the
output doesn't fit on the screen.

(In hindsight, I think we should have had pager be on/auto/off rather
than always/on/off;  the later is kind of confusing and would be
inconsistent if I add 'auto' to expanded.)

-- 
  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 Mon Dec 1 14:18:09 CST 2008.