Re: A cronjob for copying a table from Oracle

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: A cronjob for copying a table from Oracle
Дата
Msg-id idt36u$b20$1@dough.gmane.org
обсуждение исходный текст
Ответ на A cronjob for copying a table from Oracle  (Alexander Farber <alexander.farber@gmail.com>)
Ответы Re: A cronjob for copying a table from Oracle  (Alexander Farber <alexander.farber@gmail.com>)
Список pgsql-general
Alexander Farber, 10.12.2010 12:02:
> I'm preparing a PHP-script to be run as a nightly cronjob
> and will first find the latest qdatetime stored in my local
> PostgreSQL database and then just "select" in remote Oracle,
> "insert" into the local PostgreSQL database in a loop.
>
> But I wonder if there is maybe a cleverer way to do this?
>
> And I'm not sure how to copy the Oracle's strange DATE
> column best into PostgreSQL, without losing precision?

Oracle's DATE includes a time part as well.

So simply use a timestamp in PostgreSQL and everything should be fine.

Regards
Thomas




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

Предыдущее
От: Szymon Guz
Дата:
Сообщение: Re: Cannot Achieve Performance
Следующее
От: Alexander Farber
Дата:
Сообщение: Re: A cronjob for copying a table from Oracle