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 A8076D1B478 for ; Mon, 5 Jan 2004 21:44:28 +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 75890-01 for ; Mon, 5 Jan 2004 17:43:40 -0400 (AST) Received: from bramble.mmrd.com (unknown [65.217.53.66]) by svr1.postgresql.org (Postfix) with ESMTP id 2F8E0D1B440 for ; Mon, 5 Jan 2004 17:43:38 -0400 (AST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by bramble.mmrd.com (8.12.8/8.12.8) with ESMTP id i05L1EcM008673; Mon, 5 Jan 2004 16:01:17 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id i05LhYl25737; Mon, 5 Jan 2004 16:43:35 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id XT879VQG; Mon, 5 Jan 2004 16:43:32 -0500 Subject: Re: Migration from M$ SQL From: Robert Treat To: Amitava Roy Cc: pgsql-admin@postgresql.org In-Reply-To: <20040105104716.4957.qmail@mailweb33.rediffmail.com> References: <20040105104716.4957.qmail@mailweb33.rediffmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 05 Jan 2004 16:43:34 -0500 Message-Id: <1073339014.13729.7611.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/52 X-Sequence-Number: 11915 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