Re: Custom prompt

From: David Salisbury <salisbury(at)globe(dot)gov>
To: craig(at)gtek(dot)biz
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Custom prompt
Date: 2012-09-24 18:31:04
Message-ID: 5060A6E8.90802@globe.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 9/24/12 12:20 PM, 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).
>
> 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".
>
> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message craig 2012-09-24 18:42:50 Re: Custom prompt
Previous Message Adrian Klaver 2012-09-24 18:27:57 Re: Custom prompt