pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jason Tan Boon Teck <tanboonteck@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Greg Smith <greg@2ndquadrant.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Downgrading v8.4 database to v8.3
Date: Thu, 6 May 2010 00:27:45 +0800
Message-ID: <AANLkTik2YBTHBCNV7msv_byFS_SHeCRUMFAUgshe65ko@mail.gmail.com> (raw)
In-Reply-To: <3377.1273076004@sss.pgh.pa.us>
References: <AANLkTinx2YotvMWtFTlB4-Hq57qoxguxgavbU6rpphNX@mail.gmail.com>
	<4BE1958F.8050708@2ndquadrant.com>
	<3377.1273076004@sss.pgh.pa.us>

I don't think I have used any new v8.4 feature, since I finally had my
first encounter with v8.4 this week.

What should i be looking for in the dump script?


Jason

On Thu, May 6, 2010 at 12:13 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Greg Smith <greg@2ndquadrant.com> 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
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>



-- 
Jason Tan Boon Teck



view thread (12+ messages)  latest in thread

Message-ID: <AANLkTik2YBTHBCNV7msv_byFS_SHeCRUMFAUgshe65ko@mail.gmail.com>
Permalink:  ../AANLkTik2YBTHBCNV7msv_byFS_SHeCRUMFAUgshe65ko@mail.gmail.com/
Also on:    postgresql.org/message-id/AANLkTik2YBTHBCNV7msv_byFS_SHeCRUMFAUgshe65ko@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tanboonteck@gmail.com, tgl@sss.pgh.pa.us, greg@2ndquadrant.com
  Subject: Re: Downgrading v8.4 database to v8.3
  In-Reply-To: <AANLkTik2YBTHBCNV7msv_byFS_SHeCRUMFAUgshe65ko@mail.gmail.com>
  References: <AANLkTinx2YotvMWtFTlB4-Hq57qoxguxgavbU6rpphNX@mail.gmail.com> <4BE1958F.8050708@2ndquadrant.com> <3377.1273076004@sss.pgh.pa.us> <AANLkTik2YBTHBCNV7msv_byFS_SHeCRUMFAUgshe65ko@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox