pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Igal @ Lucee.org <igal@lucee.org>
To: Andreas Kretschmer <andreas@a-kretschmer.de>
To: pgsql-general@lists.postgresql.org
To: Michelle Konzack <linux4michelle@tamay-dogan.net>
Subject: Re: Scheme conversion MySQL to PGSQL
Date: Sun, 24 Dec 2017 12:54:46 -0800
Message-ID: <1e666e62-f8f5-0a8d-db37-a98863aeb95d@lucee.org> (raw)
In-Reply-To: <D757B6EC-FA8E-477F-BE91-D3135C088CBF@a-kretschmer.de>
References: <491331d0766626e73f6028b0462629fa.squirrel@webmail.tamay-dogan.net>
	<D757B6EC-FA8E-477F-BE91-D3135C088CBF@a-kretschmer.de>

On 12/24/2017 10:18 AM, Andreas Kretschmer wrote:
> On 24 December 2017 18:52:39 CET, Michelle Konzack <linux4michelle@tamay-dogan.net> wrote:
>> I try to convert a Database scheme from mySQL to pgSQL and have
>> problems  with the line:
>>
>>       KEY post_date     (post_date)
>>
>> and later probably with the lines
>>
>>       UNIQUE KEY user   (stat_login)
> That's just indexe. Create them later with create index ...

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?

Thanks,

Igal Sapir
Lucee Core Developer
Lucee.org <http://lucee.org/;

view thread (9+ messages)  latest in thread

Message-ID: <1e666e62-f8f5-0a8d-db37-a98863aeb95d@lucee.org>
Permalink:  ../1e666e62-f8f5-0a8d-db37-a98863aeb95d@lucee.org/
Also on:    postgresql.org/message-id/1e666e62-f8f5-0a8d-db37-a98863aeb95d@lucee.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: igal@lucee.org, andreas@a-kretschmer.de, linux4michelle@tamay-dogan.net
  Subject: Re: Scheme conversion MySQL to PGSQL
  In-Reply-To: <1e666e62-f8f5-0a8d-db37-a98863aeb95d@lucee.org>
  References: <491331d0766626e73f6028b0462629fa.squirrel@webmail.tamay-dogan.net> <D757B6EC-FA8E-477F-BE91-D3135C088CBF@a-kretschmer.de> <1e666e62-f8f5-0a8d-db37-a98863aeb95d@lucee.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox