Re: Patch: shouldn't timezone(text, timestamp[tz]) be STABLE? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Patch: shouldn't timezone(text, timestamp[tz]) be STABLE?
Date
Msg-id 1415145.1630342706@sss.pgh.pa.us
Whole thread Raw
In response to Re: Patch: shouldn't timezone(text, timestamp[tz]) be STABLE?  (Aleksander Alekseev <aleksander@timescale.com>)
Responses Re: Patch: shouldn't timezone(text, timestamp[tz]) be STABLE?  (John Naylor <john.naylor@enterprisedb.com>)
List 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 by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Possible missing segments in archiving on standby
Next
From: vignesh C
Date:
Subject: Added missing invalidations for all tables publication