Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTDhO-0003ON-MZ for pgsql-general@arkaria.postgresql.org; Sun, 24 Dec 2017 21:20:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTDhO-0000oM-95 for pgsql-general@arkaria.postgresql.org; Sun, 24 Dec 2017 21:20:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eTDhO-0000oA-1n for pgsql-general@lists.postgresql.org; Sun, 24 Dec 2017 21:20:46 +0000 Received: from mail.tamay-dogan.net ([78.47.247.21]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eTDhK-0007iG-Ck for pgsql-general@lists.postgresql.org; Sun, 24 Dec 2017 21:20:45 +0000 Received: from localhost (localhost [127.0.0.1]) (uid 33) by mail.tamay-dogan.net with local; Sun, 24 Dec 2017 22:20:38 +0100 id 0000000000001F48.5A401A26.00003BCF Received: from 37.157.109.77 (SquirrelMail authenticated user michelle.konzack) by webmail.tamay-dogan.net with HTTP; Sun, 24 Dec 2017 22:20:38 +0100 Message-ID: In-Reply-To: <1e666e62-f8f5-0a8d-db37-a98863aeb95d@lucee.org> References: <491331d0766626e73f6028b0462629fa.squirrel@webmail.tamay-dogan.net> <1e666e62-f8f5-0a8d-db37-a98863aeb95d@lucee.org> Date: Sun, 24 Dec 2017 22:20:38 +0100 Subject: Re: Scheme conversion MySQL to PGSQL From: "Michelle Konzack" To: pgsql-general@lists.postgresql.org User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal OpenPGP: id=A5957FD8834573E2 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello Igal Am 2017-12-24 hackte Igal @ Lucee.org in die Tasten: > I agree with Andreas.  First create the tables, then create the > indexes.  If you can copy the data before creating the indexes then > you > will probably save some time on all of the INSERTs. > > I am doing a similar thing migrating from SQL Server, and I am > considering to publish an open source Migrator. > > Can you tell me about some of the data types that you had to change > moving from MySQL to Postgres? I convert only those four CREATE TABLE from mySQL to pgSQL which is the forum pluging for squirrelmail. auto_increment -> serial int(NN) -> int datetime -> timestamptz (attention: it is NOT timestamp) longtext -> text ENGINE=MyISAM hast to be removed. This are things, which I found on the internet. Greetings Michelle -- Michelle Konzack 00372-54541400