Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id BA49663347C for ; Wed, 5 May 2010 13:13:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 28394-07 for ; Wed, 5 May 2010 16:13:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id AEF6E633392 for ; Wed, 5 May 2010 13:13:29 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o45GDOoD003378; Wed, 5 May 2010 12:13:24 -0400 (EDT) To: Greg Smith cc: Jason Tan Boon Teck , pgsql-admin@postgresql.org Subject: Re: Downgrading v8.4 database to v8.3 In-reply-to: <4BE1958F.8050708@2ndquadrant.com> References: <4BE1958F.8050708@2ndquadrant.com> Comments: In-reply-to Greg Smith message dated "Wed, 05 May 2010 11:58:07 -0400" Date: Wed, 05 May 2010 12:13:24 -0400 Message-ID: <3377.1273076004@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.877 tagged_above=-10 required=5 tests=AWL=0.033, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/67 X-Sequence-Number: 34540 Greg Smith writes: > Jason Tan Boon Teck wrote: >> I need to move some databases written in Psql v8.4 to the stable >> production server running v8.3. I tried pg_dump and pg_restore as well >> as PgAdmin3. I am unable to do so due to the backward >> incompatibility. Is there anyway to do this? > You can try connecting a 8.3 client to the 8.4 server, then running > pg_dump from that 8.3 client. That's a common approach for > dump/restore when moving forward a version, and it may resolve your > issue when moving backward one too. The 8.3 client shouldn't dump > anything the 8.3 server doesn't know how to restore. That's very likely to fail, and worse to do so silently, because 8.3 pg_dump doesn't know what's different about 8.4 system catalogs. I think your only real recourse in this situation is to do a plain dump from the 8.4 server (with 8.4 pg_dump) and then manually edit the dump script to remove any 8.4-only syntax. If your application isn't actually using any 8.4-only features this should be a pretty trivial matter. If it is, then of course you have some work to do. regards, tom lane