Re: mark the timestamptz variant of date_bin() as stable - Mailing list pgsql-hackers

From John Naylor
Subject Re: mark the timestamptz variant of date_bin() as stable
Date
Msg-id CAFBsxsH1OrS+=iKNWBiO4W4mfh6=ug8myrb6XwPXEWSJS8S6WA@mail.gmail.com
Whole thread Raw
In response to Re: mark the timestamptz variant of date_bin() as stable  (Aleksander Alekseev <aleksander@timescale.com>)
Responses Re: mark the timestamptz variant of date_bin() as stable  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

On Wed, Sep 1, 2021 at 5:32 AM Aleksander Alekseev <aleksander@timescale.com> wrote:
>
> By looking at timestamptz_bin() implementation I don't see why it
> should be STABLE. Its return value depends only on the input values.
> It doesn't look at the session parameters. timestamptz_in() and
> timestamptz_out() are STABLE, that's true, but this is no concern of
> timestamptz_bin().

I'm not quite willing to bet the answer couldn't change if the timezone changes, but it's possible I'm the one missing something.

--
John Naylor
EDB: http://www.enterprisedb.com

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: prevent immature WAL streaming
Next
From: Tom Lane
Date:
Subject: Re: Converting contrib SQL functions to new style