Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.postgresql > #694
| From | Dimitri Fontaine <dimitri@2ndQuadrant.fr> |
|---|---|
| Newsgroups | comp.databases.postgresql |
| Subject | Re: migrate from mysql to pgsql |
| Date | 2016-01-06 21:31 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <m2io36h2lh.fsf@2ndQuadrant.fr> (permalink) |
| References | <n10ens$huf$1@news.m-online.net> <n6i9hi$qnj$1@news.m-online.net> |
Magnus Warker <magnux@mailinator.com> writes: > I'd like to post my experiences here, for other people in the same situation > and for my own reference. :-) A quick note: have a look at pgloader, a tool that automates all the steps you're mentionning expect for the switching itself. http://pgloader.io The Foreign Data Wrapper approach is a good one too, but the MySQL driver used to bypass data validation and could fill in the PostgreSQL tables with e.g. 0000-00-00 dates, which then you can't read back. There's also the opportunity to cast bit(1) or tinyint(1) columns into proper boolean ones, and things like that. The other huge mess are is the encoding, depending on the version of MySQL you are using, basically you may have none validation of it at all. I've seen cases with more than 10 different encodings found in the same column in MySQL… Regards, -- Dimitri Fontaine PostgreSQL DBA, Architecte
Back to comp.databases.postgresql | Previous | Next — Previous in thread | Next in thread | Find similar
migrate from mysql to pgsql Magnus Warker <magnux@mailinator.com> - 2015-10-30 20:00 +0100
Re: migrate from mysql to pgsql Harry Tuttle <SOZRBLNTLEEE@spammotel.com> - 2015-10-30 20:26 +0100
Re: migrate from mysql to pgsql Magnus Warker <magnux@mailinator.com> - 2015-11-14 04:25 +0100
Re: migrate from mysql to pgsql Dimitri Fontaine <dimitri@2ndQuadrant.fr> - 2015-11-14 20:32 +0100
Re: migrate from mysql to pgsql Magnus Warker <magnux@mailinator.com> - 2015-11-18 17:58 +0100
Re: migrate from mysql to pgsql Dimitri Fontaine <dimitri@2ndQuadrant.fr> - 2015-11-01 22:09 +0100
Re: migrate from mysql to pgsql Luuk <luuk@invalid.lan> - 2015-11-02 09:18 +0100
Re: migrate from mysql to pgsql Magnus Warker <magnux@mailinator.com> - 2016-01-06 06:43 +0100
Re: migrate from mysql to pgsql Robert Klemme <shortcutter@googlemail.com> - 2016-01-06 13:08 +0100
Re: migrate from mysql to pgsql Magnus Warker <magnux@mailinator.com> - 2016-01-06 13:35 +0100
Re: migrate from mysql to pgsql Dimitri Fontaine <dimitri@2ndQuadrant.fr> - 2016-01-06 21:31 +0100
Re: migrate from mysql to pgsql Magnus Warker <magnux@mailinator.com> - 2016-01-31 06:21 +0100
Re: migrate from mysql to pgsql Dimitri Fontaine <dimitri@2ndQuadrant.fr> - 2016-01-31 22:19 +0100
csiph-web