Re: -HEAD pg_dumpall broken against older backends - Mailing list pgsql-patches

From Stefan Kaltenbrunner
Subject Re: -HEAD pg_dumpall broken against older backends
Date
Msg-id 442ACACD.9050103@kaltenbrunner.cc
Whole thread Raw
In response to Re: -HEAD pg_dumpall broken against older backends  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
Peter Eisentraut wrote:
> Stefan Kaltenbrunner wrote:
>
>>looks like somebody forgot to test some changes to the pg_dumpall
>>code in Revision 1.70 against <8.1 installations -  resulting in the
>>following syntax error:
>
>
> Dump output is never expected to be backward compatible.

yeah - but if you take a look at the code/patch you will see that the
problem in this case is that pg_dumpall generates invalid SQL if it is
operating against an older backend which is an obvious typo/thinko in
this case.
It has nothing to do with generating backwards compatible dumps - and
using the pg_dumpall from the (newer) target version for upgrades has
been recommended for a while (or rather is documented to work in the
manual) I think.


Stefan

pgsql-patches by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: -HEAD pg_dumpall broken against older backends
Next
From: BERTHOULE Emmanuel
Date:
Subject: restore to defaults values when commenting of variables in postgresql.conf