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

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: 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:03:22
Message-ID: 92d274cb-ebc2-aac3-0d0d-390c5585a547@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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?

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2017-06-30 21:06:29 Re: BUG #14718: unable to update table with identity column GENERATED ALWAYS
Previous Message Peter Eisentraut 2017-06-30 20:58:40 Re: Fixed PL/Python hint about array of composites