From: | "Ben K(dot)" <bkim(at)coe(dot)tamu(dot)edu> |
---|---|
To: | Soulabaille Samantha <samantha(dot)soulabaille(at)sihpic(dot)fr> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: two databases in one |
Date: | 2006-08-16 13:48:14 |
Message-ID: | Pine.GSO.4.64.0608160739500.7308@coe.tamu.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
> 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
From | Date | Subject | |
---|---|---|---|
Next Message | Erika Terahata Torres Prada e Silva - MPS | 2006-08-16 14:25:38 | Issue on Varchar Ordering |
Previous Message | Soulabaille Samantha | 2006-08-16 07:13:45 | two databases in one |