Re: adding times togeather

Поиск
Список
Период
Сортировка
Искать
От
Richard Huxton
Тема
Re: adding times togeather
Дата
Msg-id
200304291235.10606.dev@archonet.com
Ответ на
Re: adding times togeather (Alvaro Herrera Munoz)
Список
Дерево обсуждения
adding times togeather ed despard <despareg@clarkson.edu>
Re: adding times togeather Steve Crawford <scrawford@pinpointresearch.com>
Re: adding times togeather Alvaro Herrera Munoz <alvherre@dcc.uchile.cl>
Re: adding times togeather Richard Huxton <dev@archonet.com>
Re: adding times togeather ed despard <despareg@clarkson.edu>
Re: adding times togeather Steve Crawford <scrawford@pinpointresearch.com>
Re: adding times togeather "scott.marlowe" <scott.marlowe@ihs.com>
Re: adding times togeather "Nigel J. Andrews" <nandrews@investsystems.co.uk>
On Tuesday 29 Apr 2003 12:26 am, Alvaro Herrera Munoz wrote:
> On Mon, Apr 28, 2003 at 02:25:54PM -0800, Steve Crawford wrote:
> > You can:
> > Subtract two times and get an interval
> > Add an interval to a time to get a time
>
> Beware:  you cannot (in 7.2.3 at least -- I don't have 7.3 available for
> testing) add a timestamp to an interval and expect a reasonable value.
> You have to add the interval to the timestamp.
>
> h=> select '05:04:03'::interval + '2003-mar-01 09:05:00'::timestamp;
>       ?column?
> ---------------------
>  2003-03-01 05:04:03
> (1 row)

In 7.3.2 it just doesn't allow it (undefined operator). Irritating, but better 
than the above oddity.

-- 
  Richard Huxton

В списке pgsql-general по дате отправления
От: Shridhar Daithankar
Дата:
Сообщение: Re: Slow Queries with OR's?
От: Bjorn T Johansen
Дата:
Сообщение: Importing from Access 2000?
FAQ