Re: get rid of psql welcome message

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: get rid of psql welcome message
Date: 2008-04-19 16:10:43
Message-ID: 480A1983.6090602@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> "Joshua D. Drake" <jd(at)commandprompt(dot)com> writes:
>> I would like to submit a further patch that has the one line screen
>> (although I think it will be two),
>
> Um, what's the point? Someone who knows enough to set WELCOME_MESSAGE
> in ~/.psqlrc is unlikely to need a one-line help reminder, so I don't
> see the value of offering that alternative if it isn't going to be the
> default. Given that the default will stay the same, I think Peter has
> covered the useful bases.

The information presented in the welcome screen is to verbose, but is
still useful information. It is surely a cosmetic patch but there was
support for the idea.

My thoughts are to have the initial prompt look something like this:

--
psql 8.1.10 - Server version 8.2.7 (some features may not work)

Type: \h for SQL help, \? for psql help, \q to quit

SSL: On {cert info}
--

One of the things I have found is that the more information you provide
someone, the less likely they are to read it. (Every single class I have
taught has this problem).

I think the above presentation is less bulky, provides essential
nutrients and still gets the job done.

Sincerely,

Joshua D. Drake

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-04-19 16:18:32 Re: get rid of psql welcome message
Previous Message Pavel Stehule 2008-04-19 16:00:58 Re: TODO, FAQs to Wiki?