pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Net Tree Inc. <nettreeinc@gmail.com>
Cc: John R Pierce <pierce@hogranch.com>
Cc: pgsql-general@postgresql.org
Subject: Re: how do I do dump and restore without bugging with constraint?
Date: Tue, 23 Feb 2010 00:31:29 -0700
Message-ID: <dcc563d11002222331x74b5ac69nee84096585dad13a@mail.gmail.com> (raw)
In-Reply-To: <bd9689741002222239y5626a661i2162aed9888e9cfb@mail.gmail.com>
References: <bd9689741002222050r1b782543rad955f64e46630ce@mail.gmail.com>
	<4B836324.7090604@hogranch.com>
	<bd9689741002222239y5626a661i2162aed9888e9cfb@mail.gmail.com>

On Mon, Feb 22, 2010 at 11:39 PM, Net Tree Inc. <nettreeinc@gmail.com> wrote:
> Ok, I am just trying to find the proper way to back and restore database
> that contain restriction.
> The other way to ask. If I have two 99% schema similar databases. The old
> one might contain few columns that does not exist in the new one and contain
> constrains that the new DB does not have. In that case, what's standard to
> do this?
> Since they are 99% similar in schema, can I do "data dump" only ? will that
> work?
> If owner for database between Old and new DB are different, do I must add
> that owner in by create new role?
> appreciated,

What I would do is to dump and restore the db as a whole which will
take care of constraint issues.  Then I would alter the tables to
match the new schema.



view thread (17+ messages)  latest in thread

Message-ID: <dcc563d11002222331x74b5ac69nee84096585dad13a@mail.gmail.com>
Permalink:  ../dcc563d11002222331x74b5ac69nee84096585dad13a@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d11002222331x74b5ac69nee84096585dad13a@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: scott.marlowe@gmail.com, nettreeinc@gmail.com, pierce@hogranch.com, pgsql-general@postgresql.org
  Subject: Re: how do I do dump and restore without bugging with constraint?
  In-Reply-To: <dcc563d11002222331x74b5ac69nee84096585dad13a@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