Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJO07-0007QP-FB for pgsql-general@arkaria.postgresql.org; Sat, 12 Oct 2019 20:28:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iJNz6-0001xX-QW for pgsql-general@arkaria.postgresql.org; Sat, 12 Oct 2019 20:27:28 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJNz6-0001xL-Fz for pgsql-general@lists.postgresql.org; Sat, 12 Oct 2019 20:27:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJNyz-0005Cx-LV for pgsql-general@postgresql.org; Sat, 12 Oct 2019 20:27:28 +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 x9CKRBHV015268; Sat, 12 Oct 2019 16:27:12 -0400 From: Tom Lane To: Andrew Gierth cc: "Abraham\, Danny" , Adrian Klaver , "pgsql-general\@postgresql.org" Subject: Re: day interval In-reply-to: <874l0dx3qy.fsf@news-spur.riddles.org.uk> References: <8736fyxa2a.fsf@news-spur.riddles.org.uk> <279cfb68-22c7-c5c6-95ec-8234831faf38@aklaver.com> <0e252354f16a45dfa672d5346089a224@phx-exmbprd-01.adprod.bmc.com> <87mue5x60l.fsf@news-spur.riddles.org.uk> <874l0dx3qy.fsf@news-spur.riddles.org.uk> Comments: In-reply-to Andrew Gierth message dated "Sat, 12 Oct 2019 18:48:16 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15266.1570912031.1@sss.pgh.pa.us> Date: Sat, 12 Oct 2019 16:27:11 -0400 Message-ID: <15267.1570912031@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Gierth writes: > "Abraham" == Abraham, Danny writes: > Abraham> The problem is still this: > Abraham> select date('20191001') - date('20190101') ; > Abraham> in my servers it is always '273'. > Abraham> In the customer's DB it is '273 days'; > Then you need to establish why that is. I recall having heard that EDB installs some non-PG datetime operators to make things act more similar to Oracle. regards, tom lane