Re: BUG #14718: unable to update table with identity column GENERATED ALWAYS

From: Andres Freund <andres(at)anarazel(dot)de>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Cc: zam6ak(at)gmail(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14718: unable to update table with identity column GENERATED ALWAYS
Date: 2017-06-30 21:06:29
Message-ID: 20170630210629.w56gxyfevvnq5eei@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2017-06-30 17:03:22 -0400, Peter Eisentraut wrote:
> On 6/26/17 15:22, zam6ak(at)gmail(dot)com wrote:
> > -- now try to update
> > update tbl1 set name = 'Bobby' where id = 1;
> >
> > ERROR: column "id" can only be updated to DEFAULT
> > DETAIL: Column "id" is an identity column defined as GENERATED ALWAYS.
>
> This is working as expected. What is the problem?

"id" is not being updated in that statement?

- Andres

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas Kellerer 2017-06-30 21:07:27 Re: BUG #14718: unable to update table with identity column GENERATED ALWAYS
Previous Message Peter Eisentraut 2017-06-30 21:03:22 Re: BUG #14718: unable to update table with identity column GENERATED ALWAYS