pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Ben K. <bkim@coe.tamu.edu>
To: Soulabaille Samantha <samantha.soulabaille@sihpic.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: two databases in one
Date: Wed, 16 Aug 2006 08:48:14 -0500 (CDT)
Message-ID: <Pine.GSO.4.64.0608160739500.7308@coe.tamu.edu> (raw)
In-Reply-To: <44E2C5A9.4070505@sihpic.fr>
References: <44E2C5A9.4070505@sihpic.fr>
> I've got two databases with the same tables and schema on two different
> servers.
> I want to have only one database.
> So i would like to insert in the first database the data of the second
> database.
> I don't know how to do this because almost of the tables contains serial.
> It's for production databases, i can't make mistakes.
Maybe you could just import the second database into another schema of
the first database if it's urgent...
Otherwise the nature of conflicts will have to be thought through, like
- Are there some data that exist in both databases - i.e. which become
duplicates if both tables are merged?
- Are the serials used as foreign keys in other tables or as the basis of
any other fields?
- Can the serials be changed to different numbers - e.g., is it ok or even
needed to convert "11" on database B to "10011" on database A and so on,
to avoid conflict two ID 11 records having different data?
- Does the order of records matter?
Once the problem is familiar, many gurus will be able to help. I just
wanted to provide a starter.
Regards,
Ben K.
Developer
http://benix.tamu.edu
view thread (6+ messages) latest in thread
Message-ID: <Pine.GSO.4.64.0608160739500.7308@coe.tamu.edu> Permalink: ../Pine.GSO.4.64.0608160739500.7308@coe.tamu.edu/ Also on: postgresql.org/message-id/Pine.GSO.4.64.0608160739500.7308@coe.tamu.edu ·
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: bkim@coe.tamu.edu, samantha.soulabaille@sihpic.fr Subject: Re: two databases in one In-Reply-To: <Pine.GSO.4.64.0608160739500.7308@coe.tamu.edu> References: <44E2C5A9.4070505@sihpic.fr> <Pine.GSO.4.64.0608160739500.7308@coe.tamu.edu> * 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