Re: get rid of psql welcome message

From: Chris Browne <cbbrowne(at)acm(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: get rid of psql welcome message
Date: 2008-04-17 20:33:19
Message-ID: 60k5iwql0w.fsf@dba2.int.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

sfrost(at)snowman(dot)net (Stephen Frost) writes:
> * Peter Eisentraut (peter_e(at)gmx(dot)net) wrote:
>> Around <http://archives.postgresql.org/pgsql-patches/2008-01/msg00089.php> it
>> was proposed to truncate the psql welcome screen. What do you think about
>> that?
>
> I'd recommend an option in .psqlrc to disable it, if possible. That
> would be in line with what alot of other "splash-screen" type things do.

Shorten:

Welcome to psql 8.1.9 (server 8.1.8), the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

To:

psql 8.1.9 (server 8.1.8) - PostgreSQL interactive terminal
Type: \h for SQL help, \? for psql help, \q to quit

which removes 3/4 of the "bloat," whilst only losing info about
\copyright and \g.

That's close enough to an 80% improvement for me.

That *would* be a big win in doing cut'n'paste of psql sessions, and
while the experienced user may not care about \h, \?, and \q, I'd miss
getting the version information.

There's enough room still there, by the way, that one might cleverly
add in the port number without forcing the addition of an extra line,
which could be useful material, even in a cut'n'paste...
--
(format nil "~S(at)~S" "cbbrowne" "linuxfinances.info")
http://www3.sympatico.ca/cbbrowne/spiritual.html
Editing is a rewording activity.
-- Alan J. Perlis
[And EMACS a rewording editor. Ed.]

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas 'ads' Scherbaum 2008-04-17 20:35:25 Re: get rid of psql welcome message
Previous Message Stephen Denne 2008-04-17 20:32:01 Re: count(*) performance improvement ideas