X-Original-To: pgsql-hackers@postgresql.org Received: from localhost.localdomain (unknown [203.217.65.65]) by postgresql.org (Postfix) with ESMTP id 1E4B7475FC6; Mon, 10 Mar 2003 16:41:11 -0500 (EST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h2ALfAi2010942; Tue, 11 Mar 2003 08:41:10 +1100 Subject: Re: [INTERFACES] Roadmap for FE/BE protocol redesign From: Bruce Badger To: pgsql-hackers@postgresql.org, pgsql-interfaces@postgresql.org In-Reply-To: <19483.1047325975@sss.pgh.pa.us> References: <19041.1047322279@sss.pgh.pa.us> <1047324016.99075.31.camel@jester> <19294.1047324622@sss.pgh.pa.us> <1047325296.99075.35.camel@jester> <19483.1047325975@sss.pgh.pa.us> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 11 Mar 2003 08:41:10 +1100 Message-Id: <1047332470.10722.6.camel@alice> Mime-Version: 1.0 X-Archive-Number: 200303/385 X-Sequence-Number: 36631 On Tue, 2003-03-11 at 06:52, Tom Lane wrote: > Rod Taylor writes: > >> We already have that: you send a startup packet with a version less than > >> the latest, and the backend speaks that version to you. > > > Yes, but that requires you know the backend is less than the latest. > > As opposed to knowing what? You send the version number you wish to speak; > either the backend can handle it, or not. If the backend can not handle the version I request, but can handle a prior version, I'd like to know. I am planning on having handlers for multiple protocol versions in the same memory space (I'm using Smalltalk, BTW) so that one application can talk to various databases of various vintages. I suppose that the client can just keep retrying the connection with different versions until it gets a match, though.