Re: [PATCHES] Version checking when loading psql

From: Alvaro Herrera <alvherre(at)atentus(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Greg Sabino Mullane <greg(at)turnstep(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: [PATCHES] Version checking when loading psql
Date: 2001-11-22 14:14:56
Message-ID: Pine.LNX.4.33L2.0111220131560.16910-100000@aguila.protecne.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

On Wed, 21 Nov 2001, Tom Lane wrote:

> Peter Eisentraut <peter_e(at)gmx(dot)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[(at)]atentus(dot)com>)
"El miedo atento y previsor es la madre de la seguridad" (E. Burke)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gurunandan R. Bhat 2001-11-22 14:19:29 Re: Default conversion of type numeric to text in 7.1.3
Previous Message Eric Cholet 2001-11-22 14:12:44 Re: Determining which index to create

Browse pgsql-patches by date

  From Date Subject
Next Message Weiping He 2001-11-22 15:34:02 Re: the new patches for zh_CN NLS
Previous Message Colin 't Hart 2001-11-22 11:14:54 Re: Version checking when loading psql