X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 92645475CC4; Tue, 25 Feb 2003 12:24:56 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 83510-02; Tue, 25 Feb 2003 12:24:39 -0500 (EST) Received: from ece.rice.edu (ece.rice.edu [128.42.4.34]) by postgresql.org (Postfix) with ESMTP id 3ACB3475DFD; Tue, 25 Feb 2003 12:16:00 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by ece.rice.edu (Postfix) with SMTP id D458968A82; Tue, 25 Feb 2003 11:16:05 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by ece.rice.edu (Postfix) with ESMTP id 3C37068A7E; Tue, 25 Feb 2003 11:16:04 -0600 (CST) Received: from wallace.ece.rice.edu (wallace.ece.rice.edu [128.42.12.154]) by ece.rice.edu (Postfix) with ESMTP id 0D3AD68A63; Tue, 25 Feb 2003 11:16:01 -0600 (CST) Received: from reedstrm by wallace.ece.rice.edu with local (Exim 3.36 #1 (Debian)) id 18nigS-0003ct-00; Tue, 25 Feb 2003 11:16:00 -0600 Date: Tue, 25 Feb 2003 11:16:00 -0600 From: "Ross J. Reedstrom" To: Tom Lane Cc: Robert Treat , Aspire Something , pgsql-admin@postgresql.org, pgsql-bugs@postgresql.org Subject: Re: [BUGS] Date Return must be As per Natural Calander Message-ID: <20030225171559.GA13465@wallace.ece.rice.edu> Mail-Followup-To: "Ross J. Reedstrom" , Tom Lane , Robert Treat , Aspire Something , pgsql-admin@postgresql.org, pgsql-bugs@postgresql.org References: <001301c2db58$29f7b5e0$c9c832c0@societykotla> <1046127599.1015.318.camel@camel> <7495.1046145998@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7495.1046145998@sss.pgh.pa.us> User-Agent: Mutt/1.4i X-Virus-Scanned: by AMaViS snapshot-20020300 X-DCC--Metrics: ece.rice.edu 1066; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200303/6 X-Sequence-Number: 7654 On Mon, Feb 24, 2003 at 11:06:38PM -0500, Tom Lane wrote: > Robert Treat writes: > > I guess adding 1 day to 1752-09-02 should give us 1752-09-14, but your > > right, it gives us 1752-09-03. > > As was pointed out at length just recently, the transition from Julian > to Gregorian calendars happened at different times in different places. > So the above claim is only correct for some places. > > The conclusion from the previous discussion was that our existing > behavior (extrapolate Gregorian rules backwards indefinitely) is as > defensible as anything else that would be likely to get coded. To quote SQL1992: 4.5.3 Operations involving datetimes and intervals [...] Arithmetic operations involving items of type datetime or inter- val obey the natural rules associated with dates and times and yield valid datetime or interval results according to the Gregorian calendar. Ross