Re: Date Format 9999-12-31-00.00.00.000000 - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Date Format 9999-12-31-00.00.00.000000
Date
Msg-id 5ffc2df6-e885-f73e-439d-dc88d207eef7@aklaver.com
Whole thread Raw
In response to Date Format 9999-12-31-00.00.00.000000  (Dirk Krautschick <Dirk.Krautschick@trivadis.com>)
Responses Re: Date Format 9999-12-31-00.00.00.000000
List pgsql-general
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@aklaver.com



pgsql-general by date:

Previous
From: Christophe Pettus
Date:
Subject: Re: UUID with variable length
Next
From: Kyotaro Horiguchi
Date:
Subject: Re: Date Format 9999-12-31-00.00.00.000000