Re: Constraint exclusion can't process simple constant expressions?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Constraint exclusion can't process simple constant expressions?
Дата
Msg-id 27886.1303353890@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Constraint exclusion can't process simple constant expressions?  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-performance
Josh Berkus <josh@agliodbs.com> writes:
>> timestamptz + interval is not immutable --- in fact, the particular
>> example you give (ts + '1 day') is certainly dependent on timezone
>> setting.

> Why not?  Given that the time zone will be the same for both the
> timestamptz and the interval, how would the result not be immutable?

The reason it depends on the timezone is that the result varies if
"plus one day" means crossing a DST boundary.

            regards, tom lane

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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Constraint exclusion can't process simple constant expressions?
Следующее
От: Allen Sooredoo
Дата:
Сообщение: %100 CPU on Windows Server 2003