Re: Exclusion constraints with time expressions

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Exclusion constraints with time expressions
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C208A4EACB@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: Exclusion constraints with time expressions  (hari.fuchs@gmail.com)
Список pgsql-general
hari.fuchs@gmail.com wrote:
> > I think the problem is that this + operator is implemented
> > by the function "timestamptz_pl_interval", which is STABLE
> > but not IMMUTABLE.
> >
> > I am not sure why this function cannot be IMMUTABLE, it
> > seems to me that it should be.
>
> No: the result of e.g.
>
>   SELECT TIMESTAMPTZ '2012-10-28 01:30:00' + INTERVAL '24 hours';
>
> depends on the client's timezone and its DST rules.

You are right; timestamptz_in itself is STABLE, and I forgot
about daylight savings time.

Yours,
Laurenz Albe


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

Предыдущее
От: hari.fuchs@gmail.com
Дата:
Сообщение: Re: Exclusion constraints with time expressions
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Hot Standby Not So Hot Anymore