Re: [PATCHES] Version checking when loading psql - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: [PATCHES] Version checking when loading psql
Date
Msg-id Pine.LNX.4.33L2.0111220131560.16910-100000@aguila.protecne.cl
Whole thread Raw
In response to Re: [PATCHES] Version checking when loading psql  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Wed, 21 Nov 2001, Tom Lane wrote:

> Peter Eisentraut <peter_e@gmx.net> writes:
> > Greg Sabino Mullane writes:
> >> Attached is a little patch that simply verifies that the
> >> version of psql you are running is the same as the version
> >> of postgresql you are attaching to.
>
> > I'm sure this would annoy people.
>
> I'm of two minds about it.  It'd annoy *me*, but I know we have seen
> trouble reports from people who were using version-mismatched psql
> and didn't understand why some \d commands didn't work.  Maybe we
> should be catering more to newbies here.

What about refusing to connect with unmatching versions unless you have
some environment variable set?

This way, newbies will have their connection refused and will have to
take some action (at least read some docs as to how to make it work),
but those who know better can just use it right away.

--
Alvaro Herrera (<alvherre[@]atentus.com>)
"El miedo atento y previsor es la madre de la seguridad" (E. Burke)



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: email time warps
Next
From: Eric Cholet
Date:
Subject: Re: Determining which index to create