Re: psql wrapped format default for backslash-d commands - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: psql wrapped format default for backslash-d commands
Date
Msg-id 200805131553.m4DFr9T04886@momjian.us
Whole thread Raw
In response to Re: psql wrapped format default for backslash-d commands  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: psql wrapped format default for backslash-d commands  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > Bruce Momjian wrote:
> >> 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?
> 
> > Ugh.
> 
> Inserting dashes would be a truly horrid idea: "ab" and "a-b" mean
> quite different things within a function, for instance.

The idea would be for the dash to appear outside where normal data
appears:
internal | RI_FKey_cas-| referential         ; cade_del    ;  integrity

If we don't allow a dash, I think wrapping on word boundaries will be
impossible because we can't guarantee no word breaks, and I think if we
sometimes word break we had better indicate that somehow.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: psql wrapped format default for backslash-d commands
Next
From: Andrew Dunstan
Date:
Subject: Re: odd output in restore mode