Re: Changing the continuation-line prompt in psql?

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: Changing the continuation-line prompt in psql?
Дата
Msg-id 53519010-7AA8-49C6-9AE8-6DF22C8A74EF@kineticode.com
обсуждение исходный текст
Ответ на Re: Changing the continuation-line prompt in psql?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Changing the continuation-line prompt in psql?  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
On Apr 29, 2011, at 8:22 AM, Tom Lane wrote:

> AFAICT the initial prompt is always "mysql> ", so they don't have to
> think hard about how many spaces to insert to make it line up.  But
> we could certainly invent a prompt escape that means "as many spaces
> as there are characters in the current DB name".  (Or maybe we should
> try to generalize that idea, so you could get similar behavior for
> custom prompts involving usernames etc?)

+1 I like this idea, so the prompt might by default be
postgres=>         +> 

Best,

David


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Changing the continuation-line prompt in psql?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Changing the continuation-line prompt in psql?