[HACKERS] Version-aware psql?

2003-08-01 Thread David Fetter
Kind people, I've been digging through the CVS code and trying to figure out the best approach to making one psql that does the right thing for different versions of the back-end. This has come up in a real situation already, where the dev box is 7.3.3 and the production box is (Yikes!) 7.2.1.

Re: [HACKERS] Version-aware psql?

2003-08-01 Thread Christopher Kings-Lynne
I'm wondering if maybe the Right Thing(TM) might be for all connections to return (optionally?) the version number, but that seems like a giant project with many backward-compatibility snags attached. I think it would be for psql to check the connection version and then load a shared library

Re: [HACKERS] Version-aware psql?

2003-08-01 Thread Tom Lane
David Fetter [EMAIL PROTECTED] writes: I'm wondering if maybe the Right Thing(TM) might be for all connections to return (optionally?) the version number, but that seems like a giant project with many backward-compatibility snags attached. Already done, see PQparameterStatus at