Re: replicating postgresql database to ms-sql database

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Mary Anderson" <maryfran(at)demog(dot)berkeley(dot)edu>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: replicating postgresql database to ms-sql database
Date: 2007-07-06 18:15:40
Message-ID: 468E407C.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

>>> On Fri, Jul 6, 2007 at 12:48 PM, in message
<468E8080(dot)4030901(at)demog(dot)berkeley(dot)edu>, Mary Anderson
<maryfran(at)demog(dot)berkeley(dot)edu> wrote:
>
> I have been asked if it is possible to asynchronously replicate a
> postgresql database to ms-sql. My answer is yes, provided postgresql
> ORM features aren't used in the design of the database. One does an
> ascii dump of the tables and then bulk loads them into MSSQL. The
> database in question will be about 10G. Is there a sane way to do this?

Look at pg_dump and the switches to cause it to generate INSERT
statements instead of COPY statements. That has worked for me.

-Kevin

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kenneth Marshall 2007-07-06 19:11:22 Re: replicating postgresql database to ms-sql database
Previous Message Steve Crawford 2007-07-06 17:54:31 Re: Performance benchmarking