Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UuU10-0000gN-Br for pgsql-admin@arkaria.postgresql.org; Wed, 03 Jul 2013 20:51:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UuU0z-0002lP-SI for pgsql-admin@arkaria.postgresql.org; Wed, 03 Jul 2013 20:51:01 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UuU0z-0002lJ-4Q for pgsql-admin@postgresql.org; Wed, 03 Jul 2013 20:51:01 +0000 Received: from 88-190-26-230.rev.dedibox.fr ([88.190.26.230] helo=sd-30687.dedibox.fr) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UuU0w-0002iJ-OT for pgsql-admin@postgresql.org; Wed, 03 Jul 2013 20:51:00 +0000 Received: from [192.168.10.5] (AMontsouris-652-1-205-182.w86-212.abo.wanadoo.fr [86.212.80.182]) by sd-30687.dedibox.fr (Postfix) with ESMTPSA id B0859643237; Wed, 3 Jul 2013 22:50:56 +0200 (CEST) Message-ID: <1372884656.2517.1.camel@localhost.localdomain> Subject: Re: pg_dump, pg_restore from 9.2 on 8.4 server From: Guillaume Lelarge To: Ian Lawrence Barwick Cc: =?UTF-8?Q?Ji=C5=99=C3=AD?= Hlinka , pgsql-admin@postgresql.org Date: Wed, 03 Jul 2013 22:50:56 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.3 (3.8.3-2.fc19) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: 1.8 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Wed, 2013-07-03 at 20:53 +0900, Ian Lawrence Barwick wrote: > 2013/7/3 Jiří Hlinka : > > 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 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin