From roji@mail15.com Fri Oct 3 09:29:56 2003 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id AA914D1B553 for ; Fri, 3 Oct 2003 09:29:56 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 09028-01 for ; Fri, 3 Oct 2003 06:29:08 -0300 (ADT) Received: from www.mail15.com (www.mail15.com [62.118.249.44]) by svr1.postgresql.org (Postfix) with ESMTP id AA48BD1B520 for ; Fri, 3 Oct 2003 06:29:05 -0300 (ADT) Received: from deskpro ([61.94.188.119]) (authenticated bits=0) by www.mail15.com (8.12.9/8.12.6) with ESMTP id h939SFcu034694 for ; Fri, 3 Oct 2003 13:28:29 +0400 (MSD) (envelope-from roji@mail15.com) Message-ID: <006a01c38991$3aa4d4d0$1500a8c0@deskpro> From: "DenBaguse MasRodjie" To: Subject: Convert database Date: Fri, 3 Oct 2003 17:31:45 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0067_01C389D4.37570DF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.7 tagged_above=0.0 required=5.0 tests=HTML_40_50 X-Spam-Level: X-Archive-Number: 200310/25 X-Sequence-Number: 3338 This is a multi-part message in MIME format. ------=_NextPart_000_0067_01C389D4.37570DF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable How to convert from MySQL to PostgreSQL. I tried using DBTools, but to slowly. Converting 1 row taken around 0.25 se= cond!!!! Because i have database over 100MB on MySQL. Maybe over 3 days non-stop to = converting. Is there another way? I'm tried to using my2pg and mysql2pgsql. But error o= ccured. I want to migrate to PostgreSQL 'cause i have a problem on MySQL.' MySQL doesn't support sub select on stable version (4.0.14) and too slow su= b select query on alpha version (4.1.0). Is PostgreSQL support that features? How fast it can execute? Thank's Roji ------=_NextPart_000_0067_01C389D4.37570DF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
How to convert from MySQL to=20 PostgreSQL.
I tried using DBTools, but to slowly.=20 Converting 1 row taken around 0.25 second!!!!
Because i have database over 100MB on MySQ= L. Maybe=20 over 3 days non-stop to converting.
Is there another way? I'm tried to us= ing my2pg=20 and mysql2pgsql. But error occured.
I want to migrate to PostgreSQL 'cause i h= ave a=20 problem on MySQL.'
MySQL doesn't support sub select on stable= version=20 (4.0.14) and too slow sub select query on alpha version (4.1.0).
Is PostgreSQL support that features? How f= ast it=20 can execute?
 
 
 
Thank's
 
 
Roji
------=_NextPart_000_0067_01C389D4.37570DF0-- From dpage@vale-housing.co.uk Fri Oct 3 09:48:02 2003 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 48DA9D1B503 for ; Fri, 3 Oct 2003 09:48:02 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 09551-05 for ; Fri, 3 Oct 2003 06:47:17 -0300 (ADT) Received: from salem.vale-housing.co.uk (mailgate.vale-housing.co.uk [80.176.1.146]) by svr1.postgresql.org (Postfix) with ESMTP id 3F517D1B520 for ; Fri, 3 Oct 2003 06:47:14 -0300 (ADT) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C38993.5408321E" X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: Re: Convert database Date: Fri, 3 Oct 2003 10:47:15 +0100 Message-ID: <03AF4E498C591348A42FC93DEA9661B844B744@mail.vale-housing.co.uk> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ODBC] Convert database thread-index: AcOJkT8+kyhYKxPAQ+qLMrsny1ghswAAafgA From: "Dave Page" To: "DenBaguse MasRodjie" , X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.7 tagged_above=0.0 required=5.0 tests=HTML_40_50, HTML_FONT_COLOR_BLUE, RCVD_IN_OSIRUSOFT_COM X-Spam-Level: * X-Archive-Number: 200310/26 X-Sequence-Number: 3339 This is a multi-part message in MIME format. ------_=_NextPart_001_01C38993.5408321E Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi=20 =20 pgAdmin II has a migration wizard (a seperate download) that should be able to help you with this. Note that you will need MyODBC 2.50.19 - other versions often crash. http://www.pgadmin.org/pgadmin2 =20 Yes, PostgreSQL has subselects, and in my experience they are very fast - I use them quite regularly. =20 Regards, Dave.=20 -----Original Message----- From: DenBaguse MasRodjie [mailto:roji@mail15.com]=20 Sent: 03 October 2003 10:32 To: pgsql-odbc@postgresql.org Subject: [ODBC] Convert database =09 =09 How to convert from MySQL to PostgreSQL. I tried using DBTools, but to slowly. Converting 1 row taken around 0.25 second!!!! Because i have database over 100MB on MySQL. Maybe over 3 days non-stop to converting. Is there another way? I'm tried to using my2pg and mysql2pgsql. But error occured. I want to migrate to PostgreSQL 'cause i have a problem on MySQL.' MySQL doesn't support sub select on stable version (4.0.14) and too slow sub select query on alpha version (4.1.0). Is PostgreSQL support that features? How fast it can execute? =09=20 =09=20 =09=20 Thank's =09=20 =09=20 Roji ------_=_NextPart_001_01C38993.5408321E Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
Hi=20
 
pgAdmin II has a migration wizard (a seperate download) that shoul= d be=20 able to help you with this. Note that you will need MyODBC 2.50.19 - other= =20 versions often crash. http://www.pgadmin.org/pgadmin2
 
Yes, PostgreSQL has subselects, and in my experience they are= very=20 fast - I use them quite regularly.
 
Regards, Dave. 
-----Original Message-----
From: DenBagu= se=20 MasRodjie [mailto:roji@mail15.com]
Sent: 03 October 2003=20 10:32
To: pgsql-odbc@postgresql.org
Subject: [ODBC]= =20 Convert database

How to convert from MySQL to=20 PostgreSQL.
I tried using DBTools, but to slowly.=20 Converting 1 row taken around 0.25 second!!!!
Because i have database over 100MB on My= SQL.=20 Maybe over 3 days non-stop to converting.
Is there another way? I'm tried to = using=20 my2pg and mysql2pgsql. But error occured.
I want to migrate to PostgreSQL 'cause i= have a=20 problem on MySQL.'
MySQL doesn't support sub select on stab= le=20 version (4.0.14) and too slow sub select query on alpha version=20 (4.1.0).
Is PostgreSQL support that features? How= fast it=20 can execute?
 
 
 
Thank's
 
 
Roji
=00 ------_=_NextPart_001_01C38993.5408321E-- From markw@mohawksoft.com Fri Oct 3 12:09:35 2003 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 64FCDD1B50F for ; Fri, 3 Oct 2003 12:09:35 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 30410-09 for ; Fri, 3 Oct 2003 09:08:48 -0300 (ADT) Received: from outland.mohawksoft.com (unknown [64.46.156.80]) by svr1.postgresql.org (Postfix) with ESMTP id DAB61D1B4E3 for ; Fri, 3 Oct 2003 09:08:40 -0300 (ADT) Received: (from mohawk@localhost) by outland.mohawksoft.com (8.11.6/8.9.3) id h93CN9932120; Fri, 3 Oct 2003 08:23:09 -0400 X-Authentication-Warning: outland.mohawksoft.com: mohawk set sender to markw@mohawksoft.com using -f Received: from 24.60.194.163 (SquirrelMail authenticated user markw) by mail.mohawksoft.com with HTTP; Fri, 3 Oct 2003 08:23:08 -0400 (EDT) Message-ID: <49815.24.60.194.163.1065183788.squirrel@mail.mohawksoft.com> Date: Fri, 3 Oct 2003 08:23:08 -0400 (EDT) Subject: Re: Convert database From: To: In-Reply-To: <006a01c38991$3aa4d4d0$1500a8c0@deskpro> References: <006a01c38991$3aa4d4d0$1500a8c0@deskpro> X-Priority: 3 Importance: Normal Cc: X-Mailer: SquirrelMail (version 1.2.10) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/27 X-Sequence-Number: 3340 > How to convert from MySQL to PostgreSQL. > I tried using DBTools, but to slowly. Converting 1 row taken around 0.25 > second!!!! Because i have database over 100MB on MySQL. Maybe over 3 > days non-stop to converting. Is there another way? I'm tried to using > my2pg and mysql2pgsql. But error occured. I want to migrate to > PostgreSQL 'cause i have a problem on MySQL.' MySQL doesn't support sub > select on stable version (4.0.14) and too slow sub select query on alpha > version (4.1.0). Is PostgreSQL support that features? How fast it can > execute? Sub-selects rock on postgresql. I use them extensively. In fact I would never use MySQL, and that is just one of the reasons. Anyway, to import, if you are handy without a GUI, there may be a way to do it quickly. This is what I do when I migrate SQL data from one source to another. (It have done this quite often between MSSQL, PostgreSQL, and Oracle...Like I said, I wouldn't use MySQL) Dump out the schema from the database if you don't already have it as a SQL script. Separate the table definitions from the index/trigger definitions. Create the tables in PostgreSQL usinhg the SQL schema. Make any changes to the data types as nessisary. Using what ever tool exists in your current SQL environment, dump out a tab-delimited file for each table. Using postgreSQL's "COPY" syntax, copy the data to the table from the dump file. Hint, you have PHP and you know how to use it, it is trivial to open a MySQL and a PostgreSQL connection at the same time, query all records from MySQL database and "COPY" them to PostgreSQL. I have two databases, one Oracle and one PostgreSQL. The PostgreSQL works on a snapshot of the Oracle database. The snapshot is updated every week. The table has 26 million records in it. I don't remember how long it takes, but it isn't an unreasonable amount of time.