Re: Patch: shouldn't timezone(text, timestamp[tz]) be STABLE?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Patch: shouldn't timezone(text, timestamp[tz]) be STABLE?
Дата
Msg-id 1415145.1630342706@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Patch: shouldn't timezone(text, timestamp[tz]) be STABLE?  (Aleksander Alekseev <aleksander@timescale.com>)
Ответы Re: Patch: shouldn't timezone(text, timestamp[tz]) be STABLE?  (John Naylor <john.naylor@enterprisedb.com>)
Список pgsql-hackers
Aleksander Alekseev <aleksander@timescale.com> writes:
> Got it. But in this case, what's your opinion on the differences between
> date_trunc() and timezone()? Shouldn't date_trunc() be always IMMUTABLE as
> well?

No, because date_trunc depends on the current timezone setting,
or at least its stable variants do.

            regards, tom lane



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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: Possible missing segments in archiving on standby
Следующее
От: vignesh C
Дата:
Сообщение: Added missing invalidations for all tables publication