X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id C2A97D1B8B4 for ; Mon, 1 Sep 2003 16:53:23 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 54926-10 for ; Mon, 1 Sep 2003 13:53:13 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 4F911D1B8BD for ; Mon, 1 Sep 2003 13:53:12 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h81Gr8A16655; Mon, 1 Sep 2003 12:53:08 -0400 (EDT) From: Bruce Momjian Message-Id: <200309011653.h81Gr8A16655@candle.pha.pa.us> Subject: Re: Prompts in psql In-Reply-To: To: Sam Barnett-Cormack Date: Mon, 1 Sep 2003 12:53:08 -0400 (EDT) Cc: PostgreSQL Administrators Mailing List X-Mailer: ELM [version 2.4ME+ PL106 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/4 X-Sequence-Number: 10092 Sam Barnett-Cormack wrote: > 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@host:database $ > > as the prompt. Anyone got any ideas/references? Sure, see the psql manual page. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073