Re: WIP patch for TODO Item: Add prompt escape to display the client and server versions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: WIP patch for TODO Item: Add prompt escape to display the client and server versions
Дата
Msg-id 8507.1247865841@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: WIP patch for TODO Item: Add prompt escape to display the client and server versions  ("Dickson S. Guedes" <listas@guedesoft.net>)
Ответы Re: WIP patch for TODO Item: Add prompt escape to display the client and server versions  (Dimitri Fontaine <dfontaine@hi-media.com>)
Список pgsql-hackers
"Dickson S. Guedes" <listas@guedesoft.net> writes:
> Em Thu, 16 Jul 2009 17:40:45 -0300, Peter Eisentraut <peter_e@gmx.net>  
> escreveu:
>> More generally, does anyone actually need this feature?  psql complains  
>> loudly enough if the version numbers are not the right ones.  I don't  
>> know why this would need to be repeated in the prompt.

> An use case that i can figure out is an user that connects in multiples  
> instances in a lot of remote sites (like home-officer for example) and  
> needs this information in the prompt to don't lost the context of your  
> work. Is this valid?

It seems unlikely that the DB version number would be worth the prompt
space.  In situations like that you'd much more likely need identifying
info like the DB hostname and port number.
        regards, tom lane


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

Предыдущее
От: ANdreas Wenk
Дата:
Сообщение: psql - small fix in \du
Следующее
От: Martin Pihlak
Дата:
Сообщение: Re: Non-blocking communication between a frontend and a backend (pqcomm)