Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1exhUE-0002Fb-0B for pgsql-general@arkaria.postgresql.org; Sun, 18 Mar 2018 23:13:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1exhUC-0001aM-LH for pgsql-general@arkaria.postgresql.org; Sun, 18 Mar 2018 23:13:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1exhUC-0001aC-D9 for pgsql-general@lists.postgresql.org; Sun, 18 Mar 2018 23:13:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1exhU9-0003V0-Rv for pgsql-general@postgresql.org; Sun, 18 Mar 2018 23:13:07 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2IND3v8015126; Sun, 18 Mar 2018 19:13:03 -0400 From: Tom Lane To: PropAAS DBA cc: pgsql-general@postgresql.org Subject: Re: pentaho timestamp issue In-reply-to: <426393cf-6ffe-e779-60be-66d74c68c415@propaas.com> References: <426393cf-6ffe-e779-60be-66d74c68c415@propaas.com> Comments: In-reply-to PropAAS DBA message dated "Sun, 18 Mar 2018 15:54:04 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <15124.1521414783.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sun, 18 Mar 2018 19:13:03 -0400 Message-ID: <15125.1521414783@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PropAAS DBA writes: > Pinging the list on the off chance someone has dealt with this and knows > of a workaroud. We have pentaho pointing to a PostgreSQL v10.3 database, > getting this error: > 2018/03/18 15:06:37 - INPUT STEP -  Fact.0 - Bad value for type > timestamp : 0001-02-04 17:00:04-06:59:56 Hmm. Presumably, this is coming from something that thinks that 1 AD is outside the reasonable range of timestamps. Assuming you agree that such a value shouldn't appear in your application, I'd look for timestamps getting put into the database using to_timestamp() with a format string that doesn't really match the data, causing the year field to be truncated or misinterpreted. regards, tom lane