pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Miles <chris_pg002@psychofx.com>
To: Ragnvald Larsen <ragnvald@captech.no>
Cc: pgsql-admin@postgresql.org
Cc: chris_pg002@psychofx.com
Subject: Re: Replication MSSQL-PostgreSQL - any success?
Date: Thu, 14 Nov 2002 07:59:12 +0000
Message-ID: <20021114075912.A13886@psychofx.com> (raw)
In-Reply-To: <5.2.0.9.0.20021114010549.00bcdde8@mail.svt.ntnu.no>
References: <5.2.0.9.0.20021113214314.01f3be40@captech.no>
	<5.2.0.9.0.20021113214314.01f3be40@captech.no>
	<20021113235922.B7542@psychofx.com>
	<5.2.0.9.0.20021114010549.00bcdde8@mail.svt.ntnu.no>

Hi, actually what I was after was a continuous way to keep a
PostgreSQL db in sync with a changing MSSQL db.  Migrating
data from MSSQL to PostgreSQL is pretty easy.  The method
you described is one way.  The way we usually use is with
PgAdmin (a great tool) which has a Migration Wizard plugin
to automatically migrate a database from any ODBC source to
PostgreSQL (including tables and all).

Once the data is migrated, a method of syncing any updates
in the MSSQL db to the PostgreSQL db is what we require.
I haven't discovered a nice way of doing that yet.

Cheers,
Chris.

ps: cc'd the pgsql-admin list back in to generate any
further discussion and ideas.

On Thu, Nov 14, 2002 at 01:11:22AM +0100, Ragnvald Larsen wrote:
> Hi Chris,
>       you wrote as follows:
> 
> >Hi, sorry no, I got no responses unfortunately.
> >
> >If you find some information, please let me know.
> 
> I have been thinking. Wouldn't a ODBC-call do the works? I mean a PHP-page 
> with the correct code should be able to:
> 
> o empty data in target table
> o query data from MSSQL-server table
> o insert it into target PostgreSQL-server table.
> 
> The solution is a bit dirty, but would most certainly work. 
> updatepostgresql.php and some crontab-solution should do it. Perhaps Perl? 
> Shouldn't be difficult, and with some effort one might be able to make a 
> more dynamic solution too... That, of course, would be an 
> OpenSource-project in its own...
> 
> 
> Ragnvald 

-- 
Chris Miles



view thread (2+ messages)  latest in thread

Message-ID: <20021114075912.A13886@psychofx.com>
Permalink:  ../20021114075912.A13886@psychofx.com/
Also on:    postgresql.org/message-id/20021114075912.A13886@psychofx.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: chris_pg002@psychofx.com, ragnvald@captech.no
  Subject: Re: Replication MSSQL-PostgreSQL - any success?
  In-Reply-To: <20021114075912.A13886@psychofx.com>
  References: <5.2.0.9.0.20021113214314.01f3be40@captech.no> <20021113235922.B7542@psychofx.com> <5.2.0.9.0.20021114010549.00bcdde8@mail.svt.ntnu.no> <20021114075912.A13886@psychofx.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