From: Matthew Wakeling <matthew@flymine.org>
To: pgsql-general@postgresql.org, "pgsql-performance@postgresql.org" <pgsql-performance@postgresql.org>
Subject: Re: [PERFORM] Migration Articles.. ???
Date: Tue, 17 Jun 2008 14:23:00 +0100 (BST)
Message-ID: <Pine.LNX.4.64.0806171418580.3987@aragorn.flymine.org> (raw)
In-Reply-To: <f966c2ee0806170613y122227cxdbde2088ac376403@mail.gmail.com>
References: <f966c2ee0806170613y122227cxdbde2088ac376403@mail.gmail.com>
On Tue, 17 Jun 2008, sathiya psql wrote:
> I have a database in postgres X.Y which has around 90 tables, and lot of
> data in it.
> In the next version of that product, i had some more tables, so how to
> migrate that,. there may be 150 tables., in that 90 tables, 70 may be the
> same, 20 got deleted, and 80 may be new., i want the 70 tables to have same
> data as it is.,
Please do not cross-post. This question has nothing to do with
performance. (Cross-posting answer so everyone else doesn't answer the
same.)
You'll want to dump the source database selectively, and then reload the
dump into a new database. RTFM on pg_dump, especially the "-t" and "-T"
options.
Matthew
--
All of this sounds mildly turgid and messy and confusing... but what the
heck. That's what programming's all about, really
-- Computer Science Lecturer
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-performance@postgresql.org
Cc: matthew@flymine.org
Subject: Re: [PERFORM] Migration Articles.. ???
In-Reply-To: <Pine.LNX.4.64.0806171418580.3987@aragorn.flymine.org>
References: <f966c2ee0806170613y122227cxdbde2088ac376403@mail.gmail.com> <Pine.LNX.4.64.0806171418580.3987@aragorn.flymine.org>
* 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