Skip site navigation (1) Skip section navigation (2)

Re: BUG #1993: Adding/subtracting negative time intervals

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Michael Fuhr <mike(at)fuhr(dot)org>,Michael Glaesemann <grzm(at)myrealbox(dot)com>,Klint Gore <kg(at)kgb(dot)une(dot)edu(dot)au>, Russell Smith <mr-russ(at)pws(dot)com(dot)au>,pgsql-bugs(at)postgresql(dot)org, Nicholas <hb(at)x256(dot)com>
Subject: Re: BUG #1993: Adding/subtracting negative time intervals
Date: 2005-10-25 13:23:03
Message-ID: 200510251323.j9PDN3j29126@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > OK, what about 1.5 * '1 day'.  By my logic multiplication and division
> > were by definition imprecise.  Is the logic that we spill down only for
> > non-integral values?
> 
> Right.  Interval multiplication has always spilled fractional months
> over to seconds, but never the reverse.  We have to have that same
> policy now for fractional days.

OK, I think that makes sense.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2005-10-25 13:24:04
Subject: Re: PG Killed by OOM Condition
Previous:From: Tom LaneDate: 2005-10-25 13:14:12
Subject: Re: BUG #1993: Adding/subtracting negative time intervals

pgsql-bugs by date

Next:From: Alvaro HerreraDate: 2005-10-25 14:27:51
Subject: Re: BUG #1998: transaction locks parent record when it shouldn't
Previous:From: Tom LaneDate: 2005-10-25 13:14:12
Subject: Re: BUG #1993: Adding/subtracting negative time intervals

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group