X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C4F1FD1DF6F for ; Sat, 13 Dec 2003 10:48:51 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 86568-05 for ; Sat, 13 Dec 2003 06:48:23 -0400 (AST) Received: from web20813.mail.yahoo.com (web20813.mail.yahoo.com [216.136.226.218]) by svr1.postgresql.org (Postfix) with SMTP id A6358D1DF2E for ; Sat, 13 Dec 2003 06:48:20 -0400 (AST) Message-ID: <20031213104822.29420.qmail@web20813.mail.yahoo.com> Received: from [213.122.143.220] by web20813.mail.yahoo.com via HTTP; Sat, 13 Dec 2003 02:48:22 PST Date: Sat, 13 Dec 2003 02:48:22 -0800 (PST) From: sreekant kodela Subject: How to synchronize two pg databases To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/206 X-Sequence-Number: 11712 Hi guys I have a postgresql server process each running in my desktop and the laptop. Both servers have a database called MG with exactly same scheme/layout. Now I enter the data in to similar tables but at differing times. I generally keep the primary keys seperate so that they don't clash with each other. eg: oddnumber pkey for laptop and even number for desktop. Now how do I syncronize the data between the desktop and laptop cleanly! Any advise would be greatly appreciated. DESK:ADDRESS ----- LAP:ADDRESS DESK:TO_DO ----- LAP:TO_DO DESK uses pkeys like 1001... for inserts LAP uses pkeys like 2001... for inserts I need both update for the modified records and insert for new records. But how do I :-( .. etc... Thanks A novice sreekant __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree