Prompts in psql

From: Sam Barnett-Cormack <s(dot)barnett-cormack(at)lancaster(dot)ac(dot)uk>
To: PostgreSQL Administrators Mailing List <pgsql-admin(at)postgresql(dot)org>
Subject: Prompts in psql
Date: 2003-09-01 13:31:36
Message-ID: Pine.LNX.4.50.0309011430190.12002-100000@short.lancs.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Is there any way to change the prompt in the psql CLI client? In the
same way as one does with bash, or other shells.

Ideally I want:

username(at)host:database $

as the prompt. Anyone got any ideas/references?

--

Sam Barnett-Cormack
Software Developer | Student of Physics & Maths
UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bruce Momjian 2003-09-01 16:53:08 Re: Prompts in psql
Previous Message stessy 2003-09-01 07:37:48 pg_atoi: error in.....: can't parse..."