From: | Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> |
---|---|
To: | Magnus Hagander <magnus(at)hagander(dot)net> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: backward incompatible pg_basebackup and pg_receivexlog |
Date: | 2013-03-25 09:23:47 |
Message-ID: | 515017A3.3090308@vmware.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 19.03.2013 13:49, Magnus Hagander wrote:
> On Tue, Mar 19, 2013 at 11:39 AM, Heikki Linnakangas
> <hlinnakangas(at)vmware(dot)com> wrote:
>> On 19.03.2013 04:42, Peter Eisentraut wrote:
>>>
>>> Also, using the old tools against new server versions either behaves
>>> funny or silently appears to work, both of which might be a problem.
>>
>> Hmm, it would be good to fix that. I wonder how, though. The most
>> straightforward way would be to add an explicit version check in the
>> clients, in backbranches. That would give a nice error message, but that
>> would only help with new minor versions.
>
> Still better to do it in a backbranch, than not at all. At least we
> are then nicer to the ones that do keep up with upgrades, which we
> recommend they do...
Ok, here are patches for 9.1, 9.2 and master, to add explicit version
checks. Each branch has its own quirks. A 9.1 client should still work
with a 9.2 server, because we don't want to break things in a minor
version that used to accidentally work, even if it was never explicitly
supported. In master, I tweaked pg_basebackup so that it still works
with older servers if you don't use the "-X stream" option. The changes
to the streaming protocol only affected "-X stream".
This doesn't yet add the "streaming protocol version number" that was
discussed.
- Heikki
Attachment | Content-Type | Size |
---|---|---|
version-checks-91.patch | text/x-diff | 2.5 KB |
version-checks-92.patch | text/x-diff | 3.3 KB |
version-checks-master.patch | text/x-diff | 7.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Stark | 2013-03-25 12:21:38 | Re: Limiting setting of hint bits by read-only queries; vacuum_delay |
Previous Message | Albe Laurenz | 2013-03-25 08:38:10 | Re: Default connection parameters for postgres_fdw and dblink |