Re: psql wrapped format default for backslash-d commands

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Bryce Nesbitt <bryce2(at)obviously(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql wrapped format default for backslash-d commands
Date: 2008-05-13 15:53:09
Message-ID: 200805131553.m4DFr9T04886@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)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(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2008-05-13 16:05:58 Re: odd output in restore mode
Previous Message Tom Lane 2008-05-13 15:47:58 Re: psql wrapped format default for backslash-d commands