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

From Dickson S. Guedes
Subject Re: WIP patch for TODO Item: Add prompt escape to display the client and server versions
Date
Msg-id 1241698179.25272.16.camel@analise3.cresoltec.com.br
Whole thread Raw
In response to Re: WIP patch for TODO Item: Add prompt escape to display the client and server versions  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: WIP patch for TODO Item: Add prompt escape to display the client and server versions  (Jaime Casanova <jcasanov@systemguards.com.ec>)
List pgsql-hackers
Em Qui, 2009-05-07 às 10:11 +0300, Peter Eisentraut escreveu:
> On Thursday 07 May 2009 05:23:41 Dickson S. Guedes wrote:
> > This is a WIP patch (for the TODO item in the subject) that I'm putting
> > in the Commit Fest queue for 8.5.
>
> How about you just put the values in a variable and use the existing facility
> to put those variables in the prompt?

Change all "pset.version calculations" in "case 'V'" to something like
"case 'v'" is doing with PG_VERSION? Yes, could be better.

The specific code used to %V and %v in this patch was "inspired" in the
code in connection_warnings function in commands.c, so should this be
"refactored" too?

Thanks.

Dickson S. Guedes
mail/xmpp: guedes@guedesoft.net - skype: guediz
http://guedesoft.net - http://planeta.postgresql.org.br

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Serializable Isolation without blocking
Next
From: Heikki Linnakangas
Date:
Subject: Re: Serializable Isolation without blocking