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

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: BUG #1993: Adding/subtracting negative time intervals
Дата
Msg-id 200510251323.j9PDN3j29126@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: BUG #1993: Adding/subtracting negative time intervals  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #1993: Adding/subtracting negative time intervals  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Jeff Tong
Дата:
Сообщение: Re: BUG #1985: cannot insert Chinese character into a table
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #1998: transaction locks parent record when it shouldn't