Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C006F9F9EED for ; Fri, 8 Dec 2006 12:33:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 38781-06 for ; Fri, 8 Dec 2006 12:33:07 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from exchange.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by postgresql.org (Postfix) with ESMTP id C9E0D9F93A4 for ; Fri, 8 Dec 2006 12:33:06 -0400 (AST) Received: from 10.10.1.37 ([10.10.1.37]) by exchange.g2switchworks.com ([10.10.1.2]) with Microsoft Exchange Server HTTP-DAV ; Fri, 8 Dec 2006 16:32:59 +0000 Received: from state.g2switchworks.com by mail.g2switchworks.com; 08 Dec 2006 10:33:04 -0600 Subject: Re: Should clients warn in case of server version mismatch From: Scott Marlowe To: Tom Lane Cc: Rajesh Kumar Mallah , Adam Radlowski , Lista Postgres In-Reply-To: <5037.1165591013@sss.pgh.pa.us> References: <45790F91.4090404@informatyka.gdansk.pl> <5037.1165591013@sss.pgh.pa.us> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1165595584.3243.45.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 08 Dec 2006 10:33:04 -0600 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/85 X-Sequence-Number: 23877 On Fri, 2006-12-08 at 09:16, Tom Lane wrote: > "Rajesh Kumar Mallah" writes: > > IMHO for major version mismatch psql should not present the > > user with a prompt at all as certain commands are most likely > > not work. > > The analogy you're drawing with pg_dump is faulty. There are at least > three good reasons for psql to be more forgiving of version mismatches > than pg_dump is: One more difference, pg_dump is backward compatible. i.e. you don't have to use the -i switch to run pg_dump v 8.1.x against pgsql v < 8.1 because pg_dump knows how to back up older version of the db on purpose. So, pg_dump is VERY forgiving going in one direction, as it should be, and very unforgiving going in the other, again, as it should be.