datetimeField = datetimeField - '30minutes'::timespan in psql 7.0 or above

Поиск
Список
Период
Сортировка
От bangh
Тема datetimeField = datetimeField - '30minutes'::timespan in psql 7.0 or above
Дата
Msg-id 3A9FC432.37B6930E@baileylink.net
обсуждение исходный текст
Ответ на Re: Reason to not upgrade from 6.5 to 7.0 or above  (Joel Burton <jburton@scw.org>)
Ответы Re: datetimeField = datetimeField - '30minutes'::timespan in psql 7.0 or above  (Joel Burton <jburton@scw.org>)
Re: datetimeField = datetimeField - '30minutes'::timespan in psql 7.0 or above  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Actually, it is not so simple.

How can you do this in psql 7.0 or above?
datetimeField = datetimeField - '30minutes'::timespan ( in psql 6.3, 6.5 you can),

while if you use type timestamp, instead of datetime
timestampField = timestampField - '30minutes'::interval
 you will get error msg.:
No such function 'datetime_stamp' with the specified attributes

--
Banghe



Joel Burton wrote:

>
> Is there anything that datetime did that timestamp doesn't?
>
> Could you
>
>    pg_dump | sed | psql
>
> to change the datetimes to timestamp?
>
> --
> Joel Burton   <jburton@scw.org>
> Director of Information Systems, Support Center of Washington


В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: disable wal
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Restoring a pg_dump fails with