Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eTDmS-0003rs-Ol for pgsql-general@arkaria.postgresql.org; Sun, 24 Dec 2017 21:26:00 +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 1eTDmR-0005Si-EC for pgsql-general@arkaria.postgresql.org; Sun, 24 Dec 2017 21:25:59 +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 1eTDmR-0005SW-6y for pgsql-general@lists.postgresql.org; Sun, 24 Dec 2017 21:25:59 +0000 Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eTDmN-0007or-Cc for pgsql-general@lists.postgresql.org; Sun, 24 Dec 2017 21:25:58 +0000 Received: by mail-pg0-x22e.google.com with SMTP id r2so1052756pgq.13 for ; Sun, 24 Dec 2017 13:25:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lucee-org.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=oY7majUT0zfaxjaOrVbFYmeI+o5hVKw10RlRvNkORjs=; b=LYbN26GCNotMmuP7ipAG87O8UXGb/D1bwCaXHuibfiYBiQcmcYI7M9WMF69RmS8ibT ETUgHwtjoWaAmb8MdSxnS4LrPOGG9pFVRY2cfR/EabXfe68fI0PP4UuFAZk7Trld7lnY bQop/Te93L/w5XMhEJ+LKbCCsgY5rmXWBL4dV31Cgq6OZ+Aa5IlASAIH2zLZOviM/YpV ibNmI38iv296VfaFX0/bZMzS4lPKH/v4F7/XhOysiJKEmN9cvovDsHObhD1sBqTAG9NG UTcPwABYSFx9B2SGKUPIl70NMzOstBpcZTR9zkSi/5RV4P9V5qBqtRk9hOCJYM1p2PHn HEog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=oY7majUT0zfaxjaOrVbFYmeI+o5hVKw10RlRvNkORjs=; b=SAu42Ru6yQEJfD4pkfyH7wqHDyyb/ii8rVso8cBCsjeTurIRszfi2oNzqMYW82Y7Ta mQjObhp9Qbj+QIxMUt5dZXVyYR94WpTPTxfnvsCT/xAtKC6TLFtzEquYn+0/tSzNOGka z+pOfgq6QzPYE2yUijCbiyHe6D3kdyInPrw413ev6AX3VvxL0dTDGUkUXhENNsUCj3mq VragwBXvpSjdmpeFK+6qiUmlr3+qFqEdpyCQCKHCV6+vFqKrumwuXD96CKHPus+uYcIV z3JD8Gkh/i30l19t8DZJG/15XaIlyXX+MBBHVjJGVeHAuS6RhxByuA60UTk38GIqiLe1 qtZQ== X-Gm-Message-State: AKGB3mLJj0oUkfShyFcKf5pb12jaqcCw/lfgydGvucb8cDnvqLa5bZ9X wRb14tf3rGWzPdS/97LewaCLK/T9 X-Google-Smtp-Source: ACJfBovek21imuMh8vJxJ1jghRz1jWsBDeRR8p+OdOZG9qUxhdiSyUtmDNF5ijLn8OEf3kjFW6YiwQ== X-Received: by 10.98.20.74 with SMTP id 71mr20930309pfu.77.1514150752171; Sun, 24 Dec 2017 13:25:52 -0800 (PST) Received: from [192.168.1.15] (45-19-167-161.lightspeed.irvnca.sbcglobal.net. [45.19.167.161]) by smtp.googlemail.com with ESMTPSA id x22sm55400640pfa.169.2017.12.24.13.25.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Dec 2017 13:25:51 -0800 (PST) Subject: Re: Scheme conversion MySQL to PGSQL To: Michelle Konzack , pgsql-general@lists.postgresql.org References: <491331d0766626e73f6028b0462629fa.squirrel@webmail.tamay-dogan.net> <1e666e62-f8f5-0a8d-db37-a98863aeb95d@lucee.org> From: "Igal @ Lucee.org" Message-ID: Date: Sun, 24 Dec 2017 13:25:49 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------827140A8E3A38CC019AC2A03" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------827140A8E3A38CC019AC2A03 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Michelle, On 12/24/2017 1:20 PM, Michelle Konzack wrote: > Hello Igal > > Am 2017-12-24 hackte Igal @ Lucee.org in die Tasten: >> 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 Thank you.  My migration tool (written in Java) already supports migrating a SQL Server database to Postgres with most data types. Perhaps I will improve it further when I have some more time to support MySQL source databases as well, in which case I will use the information that you sent as a starting point. Best, Igal Sapir Lucee Core Developer Lucee.org --------------827140A8E3A38CC019AC2A03 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Michelle,

On 12/24/2017 1:20 PM, Michelle Konzack wrote:
Hello Igal

Am 2017-12-24 hackte Igal @ Lucee.org in die Tasten:
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

Thank you.  My migration tool (written in Java) already supports migrating a SQL Server database to Postgres with most data types.

Perhaps I will improve it further when I have some more time to support MySQL source databases as well, in which case I will use the information that you sent as a starting point.

Best,

Igal Sapir
Lucee Core Developer
Lucee.org

--------------827140A8E3A38CC019AC2A03--