Re: Server name in psql prompt - Mailing list pgsql-general

From Simon Riggs
Subject Re: Server name in psql prompt
Date
Msg-id 1262959052.19367.107431.camel@ebony
Whole thread Raw
In response to Server name in psql prompt  (Mark Morgan Lloyd <markMLl.pgsql-general@telemetry.co.uk>)
List pgsql-general
On Fri, 2010-01-08 at 11:20 +0000, Mark Morgan Lloyd wrote:

> Is there any way of getting psql to display the name of the
> currently-connected server in its prompt, and perhaps a custom string
> identifying e.g. a disc set, without having to create a psqlrc file on
> every client system that's got a precompiled psql installed?

It's a reasonable request but PostgreSQL databases don't have specific
names. You have to set up the logic yourself.

--
 Simon Riggs           www.2ndQuadrant.com


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Rows missing from table despite FK constraint
Next
From: Konrad Garus
Date:
Subject: Re: Rows missing from table despite FK constraint