From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeffrey Sturm <Jeff.Sturm@HelloWorld.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16027: Invalid output of to_timestamp
Date: Thu, 26 Sep 2019 12:31:43 -0400
Message-ID: <17811.1569515503@sss.pgh.pa.us> (raw)
In-Reply-To: <DM6PR06MB6492D5C5F2AD2745DC868345F9860@DM6PR06MB6492.namprd06.prod.outlook.com>
References: <16027-8b799f2d11947553@postgresql.org>
<13930.1569512357@sss.pgh.pa.us>
<DM6PR06MB6492D5C5F2AD2745DC868345F9860@DM6PR06MB6492.namprd06.prod.outlook.com>
Jeffrey Sturm <Jeff.Sturm@HelloWorld.com> writes:
> The problem actually manifests within the JDBC driver:
> org.postgresql.util.PSQLException: Bad value for type timestamp/date/time: {1}
> If what you are saying is that -05:32:11 is a perfectly valid offset from UTC, then this is a JDBC driver issue rather than pgsql, and if this is not the right bug list for JDBC reports I can take it there.
Well, it's a valid offset so far as Postgres is concerned. Some poking
around suggests that relevant standards such as ISO 8601 only admit UTC
offsets specified to the nearest minute --- but tzdb has some entries
specified to seconds, so that's what we follow.
regards, tom lane
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, Jeff.Sturm@HelloWorld.com
Subject: Re: BUG #16027: Invalid output of to_timestamp
In-Reply-To: <17811.1569515503@sss.pgh.pa.us>
References: <16027-8b799f2d11947553@postgresql.org> <13930.1569512357@sss.pgh.pa.us> <DM6PR06MB6492D5C5F2AD2745DC868345F9860@DM6PR06MB6492.namprd06.prod.outlook.com> <17811.1569515503@sss.pgh.pa.us>
* 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