pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Pietro Pugni <pietro.pugni@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs\@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14632: Plus and minus operators inconsistency with leap years and year intervals.
Date: Thu, 27 Apr 2017 11:00:26 +0100
Message-ID: <8760hqur29.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <F0C67D01-0A6C-4822-89D5-2286DD64C75F@gmail.com>
References: <20170426182322.24371.95224@wrigleys.postgresql.org>
	<CAKFQuwZ+PXKFrQ+LqOOorfva9nMesie0WQpe_hJTdkMn7vCZAw@mail.gmail.com>
	<5752C491-B0EC-4D1E-AF97-5E1C8C793A8A@gmail.com>
	<9066.1493241918@sss.pgh.pa.us>
	<F0C67D01-0A6C-4822-89D5-2286DD64C75F@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

>>>>> "Pietro" == Pietro Pugni <pietro.pugni@gmail.com> 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



view thread (25+ messages)  latest in thread

Message-ID: <8760hqur29.fsf@news-spur.riddles.org.uk>
Permalink:  ../8760hqur29.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/8760hqur29.fsf@news-spur.riddles.org.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, pietro.pugni@gmail.com, tgl@sss.pgh.pa.us, david.g.johnston@gmail.com
  Subject: Re: BUG #14632: Plus and minus operators inconsistency with leap years and year intervals.
  In-Reply-To: <8760hqur29.fsf@news-spur.riddles.org.uk>
  References: <20170426182322.24371.95224@wrigleys.postgresql.org> <CAKFQuwZ+PXKFrQ+LqOOorfva9nMesie0WQpe_hJTdkMn7vCZAw@mail.gmail.com> <5752C491-B0EC-4D1E-AF97-5E1C8C793A8A@gmail.com> <9066.1493241918@sss.pgh.pa.us> <F0C67D01-0A6C-4822-89D5-2286DD64C75F@gmail.com> <8760hqur29.fsf@news-spur.riddles.org.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox