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

From Alexander Farber
Subject Re: A cronjob for copying a table from Oracle
Date
Msg-id AANLkTik-Z0OWcuqSGrNPdHg6_sJQtXASU1rvwj=LXF99@mail.gmail.com
Whole thread Raw
In response to Re: A cronjob for copying a table from Oracle  (Thomas Kellerer <spam_eater@gmx.net>)
Responses Re: A cronjob for copying a table from Oracle  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-general
On Fri, Dec 10, 2010 at 12:33 PM, Thomas Kellerer <spam_eater@gmx.net> wrote:
>> 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.


Yes, but how can I copy Oracle's DATE into PostgreSQL's timestamp?

(I realize that this more an Oracle question, sorry)

What format string should I take for Oracle's to_date() function,
I don't see a format string to get epoch seconds there

Regards
Alex

pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: A cronjob for copying a table from Oracle
Next
From: Thomas Kellerer
Date:
Subject: Re: A cronjob for copying a table from Oracle