Re: BUG #17036: generated column cann't modifyed auto when update
От | David G. Johnston |
---|---|
Тема | Re: BUG #17036: generated column cann't modifyed auto when update |
Дата | |
Msg-id | CAKFQuwbkoz3zmL_bEC2ndSX5G9_3xm_+AL2fd+3OTFFH0VePow@mail.gmail.com обсуждение исходный текст |
Ответ на | BUG #17036: generated column cann't modifyed auto when update (PG Bug reporting form <noreply@postgresql.org>) |
Ответы |
Re:Re: BUG #17036: generated column cann't modifyed auto when update
Re:Re: BUG #17036: generated column cann't modifyed auto when update |
Список | pgsql-bugs |
On Wednesday, May 26, 2021, 德哥 <digoal@126.com> wrote:
And immutable function is stable when parameter not change, when parameter changed , the immutable function will recall and recompute.but in PG 13 and PG 14 , it is also wrong.```create or replace function im_now (anyelement) returns timestamptz as $$select now();$$ language sql strict immutable;create table t1 (id int primary key, c1 int, info text, crt_time timestamp,mod_time timestamp GENERATED ALWAYS AS (im_now(t1)) stored);
This seems to be related to this already reported bug (the similar one I noted in my other reply).
David J.
В списке pgsql-bugs по дате отправления: