pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Net Tree Inc. <nettreeinc@gmail.com>
To: Richard Huxton <dev@archonet.com>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Re: how do I do dump and restore without bugging with constraint?
Date: Wed, 24 Feb 2010 00:32:43 +0800
Message-ID: <bd9689741002230832p296d2ee4i79db6f2b9fea74e3@mail.gmail.com> (raw)
In-Reply-To: <4B83E6CE.1060707@archonet.com>
References: <4B830D12020000250002F4C1@gw.wicourts.gov>
	<bd9689741002230117k7dd7250r31dcfc6a556db44d@mail.gmail.com>
	<4B83E6CE.1060707@archonet.com>

yeah that's what I means to do.

How do I use 8.4 pg_restore? the DB server I am trying to restore is using
8.3. Do you mean do pg_restore on the same machine that I did pg_dump?? I am
thinking of doing that too, but I am not sure how to do the command.

Is this correct? pg_restore -h (my target machine IP) -U postgres -d (target
db) mydb.dump

Steven

On Tue, Feb 23, 2010 at 10:31 PM, Richard Huxton <dev@archonet.com> wrote:

> On 23/02/10 09:17, Net Tree Inc. 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.
>>
>
> Well, an 8.4 dump isn't always going to be compatible with an 8.3 server,
> is it? If there weren't differences, the version number wouldn't have
> changed.
>
>
>  [postgres@localhost ~]$ pg_restore -C -d postgres -i isamdb.backup
>> pg_restore.bin: [archiver] unsupported version (1.11) in file header
>>
>
> Try using the 8.4 pg_restore (but keep the "-i" to tell it to ignore the
> version checks). You may still see errors, but there is a good chance it
> will work.
>
> You're also restoring into the "postgres" database here - is that what you
> meant to do?
>
> --
>  Richard Huxton
>  Archonet Ltd
>



-- 
---------------------------------------
Steven Huang

view thread (17+ messages)  latest in thread

Message-ID: <bd9689741002230832p296d2ee4i79db6f2b9fea74e3@mail.gmail.com>
Permalink:  ../bd9689741002230832p296d2ee4i79db6f2b9fea74e3@mail.gmail.com/
Also on:    postgresql.org/message-id/bd9689741002230832p296d2ee4i79db6f2b9fea74e3@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: nettreeinc@gmail.com, dev@archonet.com, Kevin.Grittner@wicourts.gov, pgsql-general@postgresql.org
  Subject: Re: [GENERAL] Re: how do I do dump and restore without bugging with constraint?
  In-Reply-To: <bd9689741002230832p296d2ee4i79db6f2b9fea74e3@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