Re: GENERATE AS

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: GENERATE AS
Дата
Msg-id CAKFQuwbJcON2=Ky9rDNJdUGa8iuu6nYnPnRa_jr85iRkCokKww@mail.gmail.com
обсуждение исходный текст
Ответ на Re: GENERATE AS  (Ilya Kosmodemiansky <ik@dataegret.com>)
Ответы Re: GENERATE AS  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
On Thu, Jun 22, 2023 at 1:13 PM Ilya Kosmodemiansky <ik@dataegret.com> wrote:
Timestamp with time zone as an argument makes function not immutable because timezone could be set locally and  results could differ depending on timezone 


The problem here is not timezone related - it is more fundamental in that the stored data does not change but the expression, as time progresses, is going to give different values and thus make what is stored incorrect.

You should not store data that changes simply due to the passage of time (i.e., relies on external-to-the-record information).

David J.

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

Предыдущее
От: Ilya Kosmodemiansky
Дата:
Сообщение: Re: GENERATE AS
Следующее
От: Ron
Дата:
Сообщение: Re: GENERATE AS