pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sreekant kodela <sreekant_kodela@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: How to synchronize two pg databases
Date: Sat, 13 Dec 2003 02:48:22 -0800 (PST)
Message-ID: <20031213104822.29420.qmail@web20813.mail.yahoo.com> (raw)

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



Message-ID: <20031213104822.29420.qmail@web20813.mail.yahoo.com>
Permalink:  ../20031213104822.29420.qmail@web20813.mail.yahoo.com/
Also on:    postgresql.org/message-id/20031213104822.29420.qmail@web20813.mail.yahoo.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 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: sreekant_kodela@yahoo.com
  Subject: Re: How to synchronize two pg databases
  In-Reply-To: <20031213104822.29420.qmail@web20813.mail.yahoo.com>
  References: <20031213104822.29420.qmail@web20813.mail.yahoo.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