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?