Search Postgresql Archives

Re: Date Format 9999-12-31-00.00.00.000000

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/15/20 1:58 PM, Dirk Krautschick wrote:
Hi,

because of a migration from DB2 we have a lot of timestamps like

9999-12-31-00.00.00.000000

I'm assuming these got stored in a varchar field?


What would be the best way to handle this in Postgres also related
to overhead and performance (index usage?).

Or is

TO_TIMESTAMP('9999-12-31-00.00.00.000000', 'YYYY-MM-DD-HH24.MI.SS.US')

the only way? And isn't it possible to define this like NLS parameters in Oracle
system wide?

Thanks

Dirk



--
Adrian Klaver
adrian.klaver@xxxxxxxxxxx





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux