Re: BUG #17036: generated column cann't modifyed auto when update

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: 德哥 <digoal(at)126(dot)com>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #17036: generated column cann't modifyed auto when update
Date: 2021-05-27 02:23:01
Message-ID: CAKFQuwZ09+EfxGTOu76NJekBEvpgzu9a941Or-pWF_eiZGsYhA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Wednesday, May 26, 2021, 德哥 <digoal(at)126(dot)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.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2021-05-27 02:33:40 Re: BUG #17036: generated column cann't modifyed auto when update
Previous Message 德哥 2021-05-27 02:12:14 Re:Re: BUG #17036: generated column cann't modifyed auto when update