Re: New version of psql

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: hackers(at)postgresql(dot)org
Subject: Re: New version of psql
Date: 1999-11-06 13:27:44
Message-ID: Pine.LNX.4.20.9911061417460.347-100000@peter-e.yi.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 1999-11-04, Bruce Momjian mentioned:

> OK, new version of psql installed. Only problem I see is that \h shows
> TRUNCATE as the first help item. I assume the directory contents are
> not being sorted. Peter?
>
> Second, the new psql prompt is #, so it shows as:
>
> test-#
>
> Not sure I like that. I liked the > better, I think, unless # grows on
> me.

The new prompt is the same as the the old one. *** Scratches head ***

The '>' is replaced by a '#' if you are the superuser. (Correction: if the
username is "postgres". I'm still thinking about ways to make this a
little more elegant though. Ideas welcome.)

The '-' shouldn't be there unless you're in continue mode, as usual. Works
for me:

testdb=> select *
testdb-> from foo;
ERROR: foo: Table does not exist.
testdb=> \c - postgres
You are now connected as new user postgres.
testdb=# select *
testdb-# from foo;
ERROR: foo: Table does not exist.

Of course you can also completely customize your prompt. See the docs for
that.

-Peter

--
Peter Eisentraut Sernanders vaeg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 1999-11-06 13:29:50 Re: [HACKERS] New version of psql
Previous Message Thomas Lockhart 1999-11-06 06:13:25 Re: [HACKERS] PostgreSQL 6.5.3 built, but not released ...