Re: Adding data from mysql to postgresql periodically

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Adding data from mysql to postgresql periodically
Дата
Msg-id 201011141135.55519.adrian.klaver@gmail.com
обсуждение исходный текст
Ответ на Adding data from mysql to postgresql periodically  (franrtorres77 <franrtorres77@gmail.com>)
Список pgsql-general
On Sunday 14 November 2010 4:44:53 am franrtorres77 wrote:
> Hi there
>
> I need to add periodically some data from a remote mysql database into our
> postgresql database. So, does anyone know how to do it having in mind that
> it must be runned every minute or so for adding new records to the
> postresql?
>
> Best regards
> --
> View this message in context:
> http://postgresql.1045698.n5.nabble.com/Adding-data-from-mysql-to-postgresq
>l-periodically-tp3264392p3264392.html Sent from the PostgreSQL - general
> mailing list archive at Nabble.com.

Some questions.
1) Are you only pulling records from the MySQL db that are not in the Pg db?
What about previously pulled records that have changed in MySQL, are the
changes going to be propagated to Pg?
What about deleted records?
2) As mentioned in another post what about data cleanup?
For instance MySQL '00-00-000' date, or empty string in integer fields?

I have done this using a Python script. Not on a minute to minute basis, but I
could see doing it either using sleep() or by calling the script in a cron job.

--
Adrian Klaver
adrian.klaver@gmail.com

В списке pgsql-general по дате отправления:

Предыдущее
От: Ron Mayer
Дата:
Сообщение: Re: Why facebook used mysql ?
Следующее
От: Devrim GÜNDÜZ
Дата:
Сообщение: PostgreSQL 9.0 RPMs for RHEL 6 and Fedora 14 released