Re: BUG #1993: Adding/subtracting negative time intervals - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #1993: Adding/subtracting negative time intervals
Date
Msg-id 200510251323.j9PDN3j29126@candle.pha.pa.us
Whole thread Raw
In response to Re: BUG #1993: Adding/subtracting negative time intervals  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #1993: Adding/subtracting negative time intervals
List pgsql-bugs
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-bugs by date:

Previous
From: Jeff Tong
Date:
Subject: Re: BUG #1985: cannot insert Chinese character into a table
Next
From: Alvaro Herrera
Date:
Subject: Re: BUG #1998: transaction locks parent record when it shouldn't