pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
To: Adam Radlowski <adamr@informatyka.gdansk.pl>
Cc: Lista Postgres <pgsql-admin@postgresql.org>
Subject: Re: Should clients warn in case of server version mismatch ?
Date: Fri, 8 Dec 2006 13:00:54 +0530
Message-ID: <a97c77030612072330j6871a095u1ba469c7eee2e242@mail.gmail.com> (raw)
In-Reply-To: <45790F91.4090404@informatyka.gdansk.pl>
References: <a97c77030612072049q7acab446v6999f892b17a42ee@mail.gmail.com>
	<45790F91.4090404@informatyka.gdansk.pl>

On 12/8/06, Adam Radlowski <adamr@informatyka.gdansk.pl> wrote:
> I had problem such this. I've got 8.1.3 client and 8.0.6 server. But
> psql 8.1.3 warned me, that some \? functions can not work properly. I've
> resolved this problem in very simply way.

thanks.
my problem is resolved as i mantain symbolic links to different pgsql versions
in /opt/usr/local i just gave full path to psql binary of old version instead
of psql.

My concern was that it is quite likely that developers willl
FAIL to see the warning if they are presented with the
psql prompt despite mismatch of major version numbers.

IMHO for major version mismatch psql should not present the
user with a prompt at all as certain commands are most likely
not work.

Regds
Mallah.





 I got binary psql from 8.0.x
> and run. Psql program is a client program, that uses libpq library, so
> it is (I think) no difference until the libpq includes correct and
> enough routines to call them from psql. I've tested for example my own
> application compiled with 8.1.3 libpq on 7.4.8 libpq, or compiled with
> 8.0.7 on 8.1.3. But the not use functions, like \?. No problems. But the
> \? functions in psql are implemented (I think) in other way and are
> version specific, becouse the consttruction of information part of
> database is not compatible between versions 8.0.x and 8.1.x and 8.2.x
> (the first two numbers of a version are signifficant in this case).
> Brgds
> Adam
>
> Rajesh Kumar Mallah wrote:
>
> > Hi,
> >
> > We connected psql 8.2.0 accidently to postmaster ver 8.1.5.
> > \d tablename does not work.
> >
> > should psql at least warn like pg_dump does in case
> > of such client server version mismatches ?
> >
> > regds
> > mallah.
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 9: In versions below 8.0, the planner will ignore your desire to
> >       choose an index scan if your joining column's datatypes do not
> >       match
> >
> >
>
>



view thread (7+ messages)  latest in thread

Message-ID: <a97c77030612072330j6871a095u1ba469c7eee2e242@mail.gmail.com>
Permalink:  ../a97c77030612072330j6871a095u1ba469c7eee2e242@mail.gmail.com/
Also on:    postgresql.org/message-id/a97c77030612072330j6871a095u1ba469c7eee2e242@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mallah.rajesh@gmail.com, adamr@informatyka.gdansk.pl
  Subject: Re: Should clients warn in case of server version mismatch ?
  In-Reply-To: <a97c77030612072330j6871a095u1ba469c7eee2e242@mail.gmail.com>
  References: <a97c77030612072049q7acab446v6999f892b17a42ee@mail.gmail.com> <45790F91.4090404@informatyka.gdansk.pl> <a97c77030612072330j6871a095u1ba469c7eee2e242@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox