Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 9A5E89FA0B7 for ; Fri, 8 Dec 2006 03:30:59 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 48132-04 for ; Fri, 8 Dec 2006 03:30:53 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by postgresql.org (Postfix) with ESMTP id 33EC59F9C35 for ; Fri, 8 Dec 2006 03:30:55 -0400 (AST) Received: by py-out-1112.google.com with SMTP id d32so393274pye for ; Thu, 07 Dec 2006 23:30:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=f60fX6LQnNtXS+mkHSkhqrdozmq4/Zu5IS7L0qOCc2dmoQFcwVntzKVaOTBC4pkgm5XqgdvCSGSgti+ij4dGD6Hfy/cHjkfrFIDhJyzAQfaaEfaPeOG2KSMk41DEP1Oiz84vghBIaCSSFeLNfpwB1IyKladtLpMAHLXZbG/s3gU= Received: by 10.35.106.15 with SMTP id i15mr1629935pym.1165563054204; Thu, 07 Dec 2006 23:30:54 -0800 (PST) Received: by 10.35.80.8 with HTTP; Thu, 7 Dec 2006 23:30:54 -0800 (PST) Message-ID: Date: Fri, 8 Dec 2006 13:00:54 +0530 From: "Rajesh Kumar Mallah" To: "Adam Radlowski" Subject: Re: Should clients warn in case of server version mismatch ? Cc: "Lista Postgres" In-Reply-To: <45790F91.4090404@informatyka.gdansk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45790F91.4090404@informatyka.gdansk.pl> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/56 X-Sequence-Number: 23848 On 12/8/06, Adam Radlowski 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 > > > > > >