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 1iJgKM-0004yS-2D for pgsql-general@arkaria.postgresql.org; Sun, 13 Oct 2019 16:02:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iJgGk-0003Rz-L0 for pgsql-general@arkaria.postgresql.org; Sun, 13 Oct 2019 15:58:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iJgG1-0003RX-FJ for pgsql-general@lists.postgresql.org; Sun, 13 Oct 2019 15:58:11 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iJgFt-0003cr-OU for pgsql-general@postgresql.org; Sun, 13 Oct 2019 15:58:08 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 7BD4E3A5; Sun, 13 Oct 2019 11:57:59 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 13 Oct 2019 11:57:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=2 VgxgUgL18XE+dBUX6p9bYrRSCznJ5Kolkl9zWIPvmE=; b=I2/u4YMb4WpN4mGdJ 6Nct4eznp7OGvvVDMtvLMvs2ix7QyvWgAuFxcalI9b59v/UIzpGO+0xK6GvvnQyd NOhzV4iJZ0l756V8vn6YHzcblukPTMfiKH7We0P3iCZ6QmAyJ76sEn8uBQXDqToP dsux6H8iWGNifR7Tublr5hpEcHRvZbdm5Q3O4mPtjiauVeSh+DZSRkUBqMaQ82Mm o7STglHz1yAURyu+dY/VVt3BePHvChhbStMYfNN+sy4KkvdOIoLeNqLteO7yM9T6 /mcSUFCyGgs3dhzr2q69SCM+R4sEuYENv7/foxxA4EtFeoU3xTXEs/dnDqZ4F78W k7PKw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=2VgxgUgL18XE+dBUX6p9bYrRSCznJ5Kolkl9zWIPv mE=; b=N9u7PrigkheRkJ5SdNG1/7B8eViKm77/oPiNiUlvlIKM6Y1infJzuWYKc xGwJp9LzheCbuuwg7LM1rQ8yYacoRg3lNW72pyK+iw7LAubq8wD4KOdJVj7zIF2A seHeQwhZfOYLXwg1KgfnNr9CjWzTq5oFI5VzMXxqkyr1yHLfI5n6W2fxivgw5vkM p0qtvktV9lPHUBNZgicvXQ74R89xAN5NSZh7+4W/L1oChst67dnBHKp4G9g3NZ5+ bys5dCfgu8tIovo7QT6mzbAIy0R0lbYSP7oTXfD4d0Jr+t2BbxnIR6A2/Ph+fl6i /BStk67T6uK+FGN9cIyxhTmxHP8/Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrieelgdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfkphepudejgedrvddu rddufeehrddvtdeinecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.2] (174-21-135-206.tukw.qwest.net [174.21.135.206]) by mail.messagingengine.com (Postfix) with ESMTPA id D902AD6005E; Sun, 13 Oct 2019 11:57:57 -0400 (EDT) Subject: Re: day interval To: "Abraham, Danny" , Andrew Gierth Cc: "pgsql-general@postgresql.org" , "Primor, Shay" 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> <82901d44029e4e08813fb14f0dc83691@phx-exmbprd-01.adprod.bmc.com> From: Adrian Klaver Message-ID: Date: Sun, 13 Oct 2019 08:57:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <82901d44029e4e08813fb14f0dc83691@phx-exmbprd-01.adprod.bmc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/13/19 12:50 AM, Abraham, Danny wrote: > > Thanks everyone. > EDB installs oracle compatible parameters. To be clear this is for their Postgres Advanced Server, not the one you would download from here: https://www.postgresql.org/download/windows/ > See below > > C:\Program Files\edb\as9.6\bin>psql -p5488 postgres enterprisedb > Password for user enterprisedb: > psql (9.6.2.7) > ... > ### Oracle compatible mode > postgres=# select date('20191001') - date('20190101'); > ?column? > ---------- > 273 days > (1 row) > > ## Postgres compatible mode > postgres=# set edb_redwood_date=off; > SET > > postgres=# select date('20191001') - date('20190101'); > ?column? > ---------- > 273 > (1 row) -- Adrian Klaver adrian.klaver@aklaver.com