Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4665C64FD64 for ; Thu, 4 Sep 2008 13:27:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 07888-04 for ; Thu, 4 Sep 2008 13:27:35 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by postgresql.org (Postfix) with ESMTP id 086DA64FD33 for ; Thu, 4 Sep 2008 13:27:34 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so24600rvf.43 for ; Thu, 04 Sep 2008 09:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=RJNRY5iFO4luejZN3J/8rvapGwfchig/sQOsv05Ssnc=; b=YkmPgqZRWqJ1WpUlAMEoXI5oL7Cl1lDSMW2LUtAT+FmbQ2ghM3Lf+niDq9knlqxO2S toSkW5qovhSWYp9/mNRylyeJ0cIz3rL+BJPI+MCTBOaq6d0/WR+vEfAUkTvEl1CvfWPW aoN5UODrCj4gLNPAo37I5YQG9w7DjznU317R0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=KOB8359Sgqg8aLQZ2GO7rA9Z56gAyWWlC5G2BdkU/CAYSPvkwYls93h4YqCHCZY70J hPrQzJmuJ4bY0Qwi5NKr3Rw3RfYmwKX10IdSSn4lkaTphFipijF2v3bz1GNtJJP+egAM EKknsmhSdMBLhgxRXatOIzMBi/CQoet30JhbQ= Received: by 10.141.198.2 with SMTP id a2mr5841054rvq.219.1220545653345; Thu, 04 Sep 2008 09:27:33 -0700 (PDT) Received: by 10.141.74.11 with HTTP; Thu, 4 Sep 2008 09:27:33 -0700 (PDT) Message-ID: Date: Thu, 4 Sep 2008 10:27:33 -0600 From: "Scott Marlowe" To: "Hajek, Nick" Subject: Re: Database Conversion Cc: pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9B852776-95B1-41E2-B6A8-DFA92F7C410F@indiana.edu> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/26 X-Sequence-Number: 30119 On Thu, Sep 4, 2008 at 9:22 AM, Hajek, Nick wrote: > >> >> Hello, All, >> >> I have a new faculty member who has a large database that is >> in MySQL. We don't support MySQL so the database needs to be >> ported to PostgreSQL. Her GA, who know MySQL, says that he >> has a query that he will run that will put the data into >> postgres. I thought that the data would have to be output to >> a text file and then copied into postgres. I don't know >> MySQL. I've done a conversion from Oracle and this is how I >> did it. Is he correct that he can put the data into a >> postgres database by running a MySQL query? It doesn't sound >> possible to me. >> >> Carol >> > > You could possibly do it in a single operation using MS Access if you > have an ODBC connection to each database. If however the dataset is > large, I wouldn't recommend it. I have a number of MySQL and PostgreSQL > dbs and I either dump sql and then import or use PHP scripts when moving > between the two. Also, if you can spare the afternoon to learn it, sed is an awesome tool for ETL. I've used it for migrating stuff from oracle to pgsql and mangling input data to work.