Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d3gE3-0006Y8-5w for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Apr 2017 10:00:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d3gE2-0004EM-Ix for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Apr 2017 10:00:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d3gE1-0004DT-Mj for pgsql-bugs@postgresql.org; Thu, 27 Apr 2017 10:00:37 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d3gDx-0004H4-RE for pgsql-bugs@postgresql.org; Thu, 27 Apr 2017 10:00:36 +0000 Received: from [192.168.127.1] (port=63833 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1d3gDt-0006IM-51; Thu, 27 Apr 2017 10:00:29 +0000 Received: from [127.0.0.1] (port=32363 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1d3gDs-0003hr-7f; Thu, 27 Apr 2017 10:00:28 +0000 From: Andrew Gierth To: Pietro Pugni Cc: Tom Lane , "David G. Johnston" , "pgsql-bugs\@postgresql.org" Subject: Re: BUG #14632: Plus and minus operators inconsistency with leap years and year intervals. In-Reply-To: (Pietro Pugni's message of "Thu, 27 Apr 2017 00:44:40 +0200") Message-ID: <8760hqur29.fsf@news-spur.riddles.org.uk> References: <20170426182322.24371.95224@wrigleys.postgresql.org> <5752C491-B0EC-4D1E-AF97-5E1C8C793A8A@gmail.com> <9066.1493241918@sss.pgh.pa.us> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Thu, 27 Apr 2017 11:00:26 +0100 MIME-Version: 1.0 Content-Type: text/plain X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org >>>>> "Pietro" == Pietro Pugni writes: Pietro> The whole point (for leap years) is: Pietro> - inconsistency (adding and subtracting the same quantity to a Pietro> date should provide the date itself, but it doesn't); It should be obvious that this is mathematically impossible; a function from a larger set (the 366 days of a leap year) to a smaller one (the 365 days of a common year) cannot have an inverse. -- Andrew (irc:RhodiumToad) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs