Re: [BUGS] BUG #14718: unable to update table with identity columnGENERATED ALWAYS - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: [BUGS] BUG #14718: unable to update table with identity columnGENERATED ALWAYS
Date
Msg-id 92d274cb-ebc2-aac3-0d0d-390c5585a547@2ndquadrant.com
Whole thread Raw
In response to [BUGS] BUG #14718: unable to update table with identity column GENERATEDALWAYS  (zam6ak@gmail.com)
Responses Re: [BUGS] BUG #14718: unable to update table with identity columnGENERATED ALWAYS
[BUGS] Re: BUG #14718: unable to update table with identity column GENERATEDALWAYS
List pgsql-bugs
On 6/26/17 15:22, zam6ak@gmail.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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [BUGS] Fixed PL/Python hint about array of composites
Next
From: Andres Freund
Date:
Subject: Re: [BUGS] BUG #14718: unable to update table with identity columnGENERATED ALWAYS