Re: Roadmap for FE/BE protocol redesign

From: Rod Taylor <rbt(at)rbt(dot)ca>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Roadmap for FE/BE protocol redesign
Date: 2003-03-10 19:41:36
Message-ID: 1047325296.99075.35.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

On Mon, 2003-03-10 at 14:30, Tom Lane wrote:
> Rod Taylor <rbt(at)rbt(dot)ca> writes:
> > I'd be tempted to make a startup packet that will allow libpq to revert
> > back to old protocols easily enough for the future so that we can do=20
> > incremental changes to the protocol.
>
> 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.

If you send version A, and the backend responds don't know A, but I know
A - 2, then libpq may want to try speaking A - 2.

> types without calling it a protocol revision. The protocol need only
> specify "ignore any fields whose label you do not recognize".

This is probably just as good, if it's done for both sides.

--
Rod Taylor <rbt(at)rbt(dot)ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2003-03-10 19:49:50 Re: Roadmap for FE/BE protocol redesign
Previous Message Merlin Moncure 2003-03-10 19:37:35 Re: [GENERAL] division by zero

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2003-03-10 19:52:55 Re: Roadmap for FE/BE protocol redesign
Previous Message Tom Lane 2003-03-10 19:30:22 Re: Roadmap for FE/BE protocol redesign