Re: WIP patch for TODO Item: Add prompt escape to display the client and server versions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: WIP patch for TODO Item: Add prompt escape to display the client and server versions
Date
Msg-id 8507.1247865841@sss.pgh.pa.us
Whole thread Raw
In response to Re: WIP patch for TODO Item: Add prompt escape to display the client and server versions  ("Dickson S. Guedes" <listas@guedesoft.net>)
Responses Re: WIP patch for TODO Item: Add prompt escape to display the client and server versions
List 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 by date:

Previous
From: ANdreas Wenk
Date:
Subject: psql - small fix in \du
Next
From: Martin Pihlak
Date:
Subject: Re: Non-blocking communication between a frontend and a backend (pqcomm)