RE: Why timestamptz_pl_interval and timestamptz_mi_interval are not immutable?

Поиск
Список
Период
Сортировка
От Floris Van Nee
Тема RE: Why timestamptz_pl_interval and timestamptz_mi_interval are not immutable?
Дата
Msg-id 8a361ddf99ef46fd8b84f1fda0731e9e@opammb0562.comp.optiver.com
обсуждение исходный текст
Ответ на Why timestamptz_pl_interval and timestamptz_mi_interval are not immutable?  (Alexander Pyhalov <a.pyhalov@postgrespro.ru>)
Список pgsql-hackers
>
> What do I miss?
>
> --
> Best regards,
> Alexander Pyhalov,
> Postgres Professional
>

See for example around DST changes

postgres=# begin;
BEGIN
postgres =# show timezone;
     TimeZone
------------------
 Europe/Amsterdam
(1 row)

postgres=# select '2021-03-27 15:00 +0100'::timestamptz + interval '1d';
        ?column?
------------------------
 2021-03-28 15:00:00+02
(1 row)

postgres =# set timezone to UTC;
SET
postgres =# select '2021-03-27 15:00 +0100'::timestamptz + interval '1d';
        ?column?
------------------------
 2021-03-28 14:00:00+00
(1 row)

postgres =# select '2021-03-28 15:00:00+02' = '2021-03-28 14:00:00+00';
 ?column?
----------
 f
(1 row)




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

Предыдущее
От: Alexander Pyhalov
Дата:
Сообщение: Why timestamptz_pl_interval and timestamptz_mi_interval are not immutable?
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Slightly improve initdb --sync-only option's help message