Re: Date Format 9999-12-31-00.00.00.000000

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Dirk Krautschick <Dirk(dot)Krautschick(at)trivadis(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Date Format 9999-12-31-00.00.00.000000
Date: 2020-10-16 00:59:39
Message-ID: 5ffc2df6-e885-f73e-439d-dc88d207eef7@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kyotaro Horiguchi 2020-10-16 02:52:05 Re: Date Format 9999-12-31-00.00.00.000000
Previous Message Christophe Pettus 2020-10-15 21:12:00 Re: UUID with variable length