Re: .psqlrc output for \pset commands

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Bruce Momjian" <bruce(at)momjian(dot)us>
Cc: "PostgreSQL-development" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: .psqlrc output for \pset commands
Date: 2008-06-12 00:23:31
Message-ID: 87skvj4i2k.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Bruce Momjian" <bruce(at)momjian(dot)us> writes:

> In my .psqlrc I have:
>
> \pset format wrapped
>
> and this outputs this on psql startup:
>
> $ psql test
> --> Output format is wrapped.
> psql (8.4devel)
> Type "help" for help.
>
> Is this desirable? \set QUIET at the top of .psqlrc fixes it, but I am
> wondering if we should be automatically doing quiet while .psqlrc is
> processed.

I was wondering about this myself, but I'm still not used to the new banner.
It seems kind of... curt. Perhaps it should just be a single line instead of
two lines both around 20 characters...

Anyways the thing that struck me as odd was the messages appearing *before*
the header. It seems to me the header should print followed by .psqlrc output
followed by normal output.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support!

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2008-06-12 00:26:09 Re: Overhauling GUCS
Previous Message Gregory Stark 2008-06-12 00:17:59 Re: Proposal: Multiversion page api (inplace upgrade)