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 1gDVjD-0004WX-5L for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Oct 2018 14:26:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gDVjB-0000Fi-6M for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Oct 2018 14:26:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDVjA-0000Fb-Sb for pgsql-bugs@lists.postgresql.org; Fri, 19 Oct 2018 14:26:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDVj8-0000BN-Hp for pgsql-bugs@lists.postgresql.org; Fri, 19 Oct 2018 14:26:11 +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 w9JEQ8uD032676; Fri, 19 Oct 2018 10:26:08 -0400 From: Tom Lane To: Martin Varady cc: sk@zsrv.org, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15445: Difference between two dates is not an integer In-reply-to: References: <15445-f8f5a4e67e9eb3d4@postgresql.org> <21769501539955587@iva5-d3020dc3459d.qloud-c.yandex.net> Comments: In-reply-to Martin Varady message dated "Fri, 19 Oct 2018 10:05:46 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32674.1539959168.1@sss.pgh.pa.us> Date: Fri, 19 Oct 2018 10:26:08 -0400 Message-ID: <32675.1539959168@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Martin Varady writes: > I got what you would expect but still doesn't work. It is the enterpriseDB > version we bought for Oracle to Postgres conversions. > "EnterpriseDB 10.4.9, compiled by Visual C++ build 1800, 64-bit" Well, you should have a word with EDB then, but what it sounds like is they install a nondefault date - date operator, or possibly remove PG's standard one so that timestamp - timestamp gets chosen instead. Which is probably reasonable if your goal is compatibility with Oracle. regards, tom lane