Re: Custom prompt

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: craig(at)gtek(dot)biz
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Custom prompt
Date: 2012-09-24 18:53:42
Message-ID: 5060AC36.6030608@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 09/24/2012 11:20 AM, craig(at)gtek(dot)biz wrote:
> Good afternoon,
>
> When accessing PostgreSQL via psql, is it possible to make use of a custom prompt? I would like something like postgres=# instead of just postgres=#. My search was fruitless (see next paragraph).

Should have added:
To make it stick between sessions you can use a psqlrc file. They are
handy for customizing psql in general. These can be system wide or per
user. For more information do a find(psqlrc) on the page I previously
linked to.

>
> And if I'm allowed two questions in one post, how does one search for a phrase such as "custom prompt" in the mailing list archives? Everything I tried found every page with either the word custom, the word prompt, or both words somewhere in the message. I just wanted to search for messages containing the exact phrase "custom prompt".

Not sure about that mailing list, but using custom prompt in the search
box in the docs finds the page I posted.

>
> Thanks,
> Craig
>
>
> Sent - Gtek Web Mail
>
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message craig 2012-09-24 19:07:29 Re: Custom prompt
Previous Message craig 2012-09-24 18:42:50 Re: Custom prompt