]> granicus.if.org Git - postgresql/commit
I found that when changing databases from within psql the prompt went sort of
authorMarc G. Fournier <scrappy@hub.org>
Sun, 22 Dec 1996 03:26:52 +0000 (03:26 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Sun, 22 Dec 1996 03:26:52 +0000 (03:26 +0000)
commite768c418b5bc26f804c64ebf10876218fd49b625
treeaacca8343b3f6145899d4349d01efc451721e3a5
parent502a6531b3d341c4f847c7860da29c6cc307d54e
I found that when changing databases from within psql the prompt went sort of
strange.

bash$ psql disks
Welcome to the POSTGRESQL interactive sql monitor:
  Please read the file COPYRIGHT for copyright terms of POSTGRESQL

   type \? for help on slash commands
   type \q to quit
   type \g or terminate with semicolon to execute query
 You are currently connected to the database: disks

disks=> \c postgres
closing connection to database: disks
connecting to new database: postgres
postgres==  \c disks
closing connection to database: postgres
connecting to new database: disks
disks==  \q
bash$

Note the => changes to == after a connect and stays that way on subsequent
database changes.

Submitted by: Keith Parks <emkxp01@mtcc.demon.co.uk>
src/bin/psql/psql.c