Re: pg_dump, pg_restore from 9.2 on 8.4 server

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Ian Lawrence Barwick <barwick(at)gmail(dot)com>
Cc: Jiří Hlinka <jiri(dot)hlinka(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_dump, pg_restore from 9.2 on 8.4 server
Date: 2013-07-03 20:50:56
Message-ID: 1372884656.2517.1.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, 2013-07-03 at 20:53 +0900, Ian Lawrence Barwick wrote:
> 2013/7/3 Jiří Hlinka <jiri(dot)hlinka(at)gmail(dot)com>:
> > Hi All,
> >
> > I have a 8.4 server and I'd like to use --section parameter of pg_dump and
> > pg_restore, which is available only in 9.2.
> >
> > 1. Is it, in general, safe to use 9.2 tools on 8.4 server? AFAIK the tools
> > are backward compatible, at least in case of plain SQL commands it should be
> > compatible, right?
>
> pg_dump is backwards-compatible all the way to 7.0; see:
> http://www.postgresql.org/docs/9.2/static/app-pgdump.html#PG-DUMP-NOTES
>

Sure, but you may not be able to restore it on a less recent release
(ie, in that case, previous than 9.2). If you use a 9.2 pg_dump, you'll
be garanteed to restore it on 9.2 and upper, not lower (not 8.4 for
instance).

--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Sergey Konoplev 2013-07-04 01:12:43 Re: pg_upgrade / postgis issue
Previous Message Dev Kumkar 2013-07-03 15:38:02 Re: Migration from Sybase to Postgresql