Re: A cronjob for copying a table from Oracle - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: A cronjob for copying a table from Oracle
Date
Msg-id idt36u$b20$1@dough.gmane.org
Whole thread Raw
In response to A cronjob for copying a table from Oracle  (Alexander Farber <alexander.farber@gmail.com>)
Responses Re: A cronjob for copying a table from Oracle  (Alexander Farber <alexander.farber@gmail.com>)
List 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 by date:

Previous
From: Szymon Guz
Date:
Subject: Re: Cannot Achieve Performance
Next
From: Alexander Farber
Date:
Subject: Re: A cronjob for copying a table from Oracle