Re: BUG #17036: generated column cann't modifyed auto when update - Mailing list pgsql-bugs

From David G. Johnston
Subject Re: BUG #17036: generated column cann't modifyed auto when update
Date
Msg-id CAKFQuwZ09+EfxGTOu76NJekBEvpgzu9a941Or-pWF_eiZGsYhA@mail.gmail.com
Whole thread Raw
In response to BUG #17036: generated column cann't modifyed auto when update  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
On Wednesday, May 26, 2021, 德哥 <digoal@126.com> wrote:


But in PostgreSQL 12, it works fine.

There may be some other stuff going on but your example relies on what is undefined behavior. That some particular outcome matches your expectation doesn’t make it correct.  That said, a similar nearby complaint suggests that this feature does have some issues.  Whether the version 12 behavior is deemed buggy and changed remains to be seen.

David J.

pgsql-bugs by date:

Previous
From: 德哥
Date:
Subject: Re:Re: BUG #17036: generated column cann't modifyed auto when update
Next
From: "David G. Johnston"
Date:
Subject: Re: BUG #17036: generated column cann't modifyed auto when update