Re: Custom prompt - Mailing list pgsql-general

From David Salisbury
Subject Re: Custom prompt
Date
Msg-id 5060A6E8.90802@globe.gov
Whole thread Raw
In response to Custom prompt  (craig@gtek.biz)
Responses Re: Custom prompt
List pgsql-general

On 9/24/12 12:20 PM, craig@gtek.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). 
>
> And if I'm allowed two questions in one post, how does one search for a phrase such as "custom prompt" in the mailing
listarchives? Everything I tried found every page with either the word custom, the word prompt, or both words somewhere
inthe message. I just wanted to search for messages containing the exact phrase "custom prompt". 
>
> Thanks,
> Craig
>
>
> Sent - Gtek Web Mail

Try along the lines of

psql -h some.host.com   -U postgres -v "PROMPT1=*my_cool_prompt%/> " -d my_db

no se on the second Q.

ds


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Custom prompt
Next
From: craig@gtek.biz
Date:
Subject: Re: Custom prompt