Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C376F65005C for ; Thu, 4 Sep 2008 11:33:42 -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 78594-06 for ; Thu, 4 Sep 2008 11:33:40 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from coe.tamu.edu (edsun.coe.tamu.edu [165.91.232.6]) by postgresql.org (Postfix) with ESMTP id DE3C9650054 for ; Thu, 4 Sep 2008 11:33:39 -0300 (ADT) Received: from coe.tamu.edu (coe.tamu.edu [165.91.232.6]) by coe.tamu.edu (8.11.7p3+Sun/8.12.11) with ESMTP id m84EXbE23081 for ; Thu, 4 Sep 2008 09:33:37 -0500 (CDT) Date: Thu, 4 Sep 2008 09:33:37 -0500 (CDT) From: Ben Kim To: pgsql-admin@postgresql.org Subject: Re: Database Conversion In-Reply-To: <200809041641.29301.achill@matrix.gatewaynet.com> Message-ID: References: <9B852776-95B1-41E2-B6A8-DFA92F7C410F@indiana.edu> <200809041641.29301.achill@matrix.gatewaynet.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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/21 X-Sequence-Number: 30114 > 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. I don't think mysql has anything that exports data into postgresql. Unless he is talking about the likes of DTS/SSIS or perl DBI, or other tools. Or the tables are simple and he thinks he can ingeniously craft queries and run them through pipes eventually to psql. DDL will be more difficult. Regards, Ben