pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: Amitava Roy <amitavroy@rediffmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Migration from M$ SQL
Date: 05 Jan 2004 16:43:34 -0500
Message-ID: <1073339014.13729.7611.camel@camel> (raw)
In-Reply-To: <20040105104716.4957.qmail@mailweb33.rediffmail.com>
References: <20040105104716.4957.qmail@mailweb33.rediffmail.com>

On Mon, 2004-01-05 at 05:47, Amitava Roy wrote:
> Hi All,
> 
> In our company we are planning for a migration from an 
> MS SQL/NT to PostgreSQL/Linux. The current database contains
> mainly SQL standard data types(though a few user defined data types 
> may be there), is using Triggers and Stored procedures.
> I have already seen the migration howtos available at the PostgreSQL 
> site. I have some questions to be cleared before we really start a
> Pilot project for the planned migration:
> 1. How do we efficiently migrate data from MS to Pg? Is CSV good enough?
>   The existing database size is around 25 GB.

CSV is probably good enough; dump the files to CSV from M$ then use
PostgreSQL's COPY feature to copy the data into the requisite tables. It
will certainly take some time to move that much data, and I'd recommend
testing it first to make sure you don't have any "anomalies". 

> 2. Is there a systematic/regular mapping of SQL Scripts for MS to that 
>   for Pg? In other words, is it possible to come up with say, sed 
>   scripts, which would convert an MS Stored Procedure/Trigger to that 
>   in Pg?

I'd be very surprised if there were. AFAIK the syntax between m$ and
postgresql pl's isn't terribly compatible, and I think there are quirks
in how the two implementations actually work, so you'll want to test
this as well.

Robert Treat
-- 
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL




view thread (2+ messages)

Message-ID: <1073339014.13729.7611.camel@camel>
Permalink:  ../1073339014.13729.7611.camel@camel/
Also on:    postgresql.org/message-id/1073339014.13729.7611.camel@camel

 · 

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: xzilla@users.sourceforge.net, amitavroy@rediffmail.com
  Subject: Re: Migration from M$ SQL
  In-Reply-To: <1073339014.13729.7611.camel@camel>
  References: <20040105104716.4957.qmail@mailweb33.rediffmail.com> <1073339014.13729.7611.camel@camel>

* 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