Re: how do I do dump and restore without bugging with constraint?

From: Ian Lea <ian(dot)lea(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: how do I do dump and restore without bugging with constraint?
Date: 2010-02-23 09:35:51
Message-ID: 8c4e68611002230135x22f9f855ocd777d9d9545d594@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

It is unreasonable to expect 8.3 programs to be able to understand
everything that 8.4 programs might write.

What format is your dump in? Plain text (--format=p) might work. Or
try dumping the 8.4 database with the 8.3 version of pg_dump, or maybe
use the 8.4 pg_restore against the 8.3 database.

--
Ian.

On Tue, Feb 23, 2010 at 9:17 AM, Net Tree Inc. <nettreeinc(at)gmail(dot)com> wrote:
> Why am I keep getting error with version issues.... I am trying to restore a
> backup file from a 8.4 postgresql server to a 8.3 postgresql server.
> [postgres(at)localhost ~]$ pg_restore -C -d postgres -i isamdb.backup
> pg_restore.bin: [archiver] unsupported version (1.11) in file header
>
> On Tue, Feb 23, 2010 at 1:02 PM, Kevin Grittner
> <Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:
>>
>> "Net Tree Inc."  wrote:
>>
>> > When I do restore it shown alot errors related with constraints.
>> > How can I dump and to restore from old to new without dealing with
>> > constraint and just forces data dump to where it suppose to belong?
>>
>> What version are you dumping from and to?  Exactly what errors are
>> you getting?  (Copy and paste samples, please.)
>>
>> You might want to review this page:
>>
>> http://wiki.postgresql.org/wiki/Guide_to_reporting_problems
>>
>> -Kevin
>>
>>
>
>
>
> --
> ---------------------------------------
> Steven Huang
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Net Tree Inc. 2010-02-23 09:50:46 pg_dump: aborting because of version mismatch
Previous Message Net Tree Inc. 2010-02-23 09:17:30 Re: how do I do dump and restore without bugging with constraint?

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Kohll - Mailing Lists 2010-02-23 09:45:05 pg_dump new version
Previous Message Yan Cheng CHEOK 2010-02-23 09:26:33 Alternative to UPDATE (As COPY to INSERT)