Re: [PATCHES] Version checking when loading psql

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [PATCHES] Version checking when loading psql
Дата
Msg-id Pine.LNX.4.33L2.0111220131560.16910-100000@aguila.protecne.cl
обсуждение исходный текст
Ответ на Re: [PATCHES] Version checking when loading psql  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: email time warps
Следующее
От: Eric Cholet
Дата:
Сообщение: Re: Determining which index to create