Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dR9iM-0006Dk-Lz for pgsql-bugs@arkaria.postgresql.org; Sat, 01 Jul 2017 04:08:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dR9iL-0007wK-Vl for pgsql-bugs@arkaria.postgresql.org; Sat, 01 Jul 2017 04:08:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dR9hd-0006hb-Hn for pgsql-bugs@postgresql.org; Sat, 01 Jul 2017 04:08:14 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dR9hV-0006GB-G0 for pgsql-bugs@postgresql.org; Sat, 01 Jul 2017 04:08:12 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C549620913; Sat, 1 Jul 2017 00:08:03 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Sat, 01 Jul 2017 00:08:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=ksVNr6r6iHRt09KzAfatudBSeBQu5HhtfsUUrrrAxEM=; b=Nrq7R9kc 47uhMEmMRL5WGiYNKpEXail3XK3/hS5H2MjaBTYkPfZ/gRRRyg7C5v31O5wrDwJH H5u37LbDtQFCOgJyWclpascA9bUnSJBv3y8LKlnVW3/QDyL85JJCZ0yS4rDzdR6I Y5CXcfRAGWCBoA61tI7YhN/wQWYh/suQkBQv7pG9X+tdZNQo9yPYeQ4+XwqLRO9i BqknGl28Bk6kYyRIs76+BSn8dESlNUwjFXpY2vMkOq0rTAZwpgWEQuRNclFAFDEY vPNHe1r/fQAtzpkUMhqyYouAEO2AmCQ5l/Rj/vQMOzc3eR/IN0sxY6DtZizjZ6uW /qaOscKlehCcRw== X-ME-Sender: X-Sasl-enc: 4kL7TL0TwoSBLIIDVscBekYhA3gYLGmVAt4qZwB9uJTK 1498882083 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 81ADB7E070; Sat, 1 Jul 2017 00:08:03 -0400 (EDT) Subject: Re: BUG #14718: unable to update table with identity column GENERATED ALWAYS To: zam6ak@gmail.com, pgsql-bugs@postgresql.org References: <20170626192252.17679.77403@wrigleys.postgresql.org> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Sat, 1 Jul 2017 00:08:02 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170626192252.17679.77403@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 6/26/17 15:22, zam6ak@gmail.com wrote: > -- create tbl1 > create table tbl1 ( > id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY, -- fails > --id bigint GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, -- works > name text NOT NULL > ); > -- add some values > insert into tbl1 (name) values ('Tommy'); > -- verify > select * from tbl1; -- 1;"Tommy" > > -- 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. Fix committed. Thanks for the report. -- 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