pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Dirk Krautschick <Dirk.Krautschick@trivadis.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Date Format 9999-12-31-00.00.00.000000
Date: Thu, 15 Oct 2020 17:59:39 -0700
Message-ID: <5ffc2df6-e885-f73e-439d-dc88d207eef7@aklaver.com> (raw)
In-Reply-To: <AM0PR05MB6082081F3DB8E97EE9492B0AE9020@AM0PR05MB6082.eurprd05.prod.outlook.com>
References: <AM0PR05MB6082081F3DB8E97EE9492B0AE9020@AM0PR05MB6082.eurprd05.prod.outlook.com>

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





view thread (4+ messages)  latest in thread

Message-ID: <5ffc2df6-e885-f73e-439d-dc88d207eef7@aklaver.com>
Permalink:  ../5ffc2df6-e885-f73e-439d-dc88d207eef7@aklaver.com/
Also on:    postgresql.org/message-id/5ffc2df6-e885-f73e-439d-dc88d207eef7@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, Dirk.Krautschick@trivadis.com
  Subject: Re: Date Format 9999-12-31-00.00.00.000000
  In-Reply-To: <5ffc2df6-e885-f73e-439d-dc88d207eef7@aklaver.com>
  References: <AM0PR05MB6082081F3DB8E97EE9492B0AE9020@AM0PR05MB6082.eurprd05.prod.outlook.com> <5ffc2df6-e885-f73e-439d-dc88d207eef7@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox