Re: Custom prompt

Поиск
Список
Период
Сортировка
От David Salisbury
Тема Re: Custom prompt
Дата
Msg-id 5060A6E8.90802@globe.gov
обсуждение исходный текст
Ответ на Custom prompt  (craig@gtek.biz)
Ответы Re: Custom prompt  (craig@gtek.biz)
Список 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 по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Custom prompt
Следующее
От: craig@gtek.biz
Дата:
Сообщение: Re: Custom prompt