Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dR359-0004q9-NJ for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Jun 2017 21:04:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dR359-00047h-8Q for pgsql-bugs@arkaria.postgresql.org; Fri, 30 Jun 2017 21:04:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dR34R-0002tN-S4 for pgsql-bugs@postgresql.org; Fri, 30 Jun 2017 21:03:20 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dR34P-0008FC-0x for pgsql-bugs@postgresql.org; Fri, 30 Jun 2017 21:03:18 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 5B60E20E5F; Fri, 30 Jun 2017 17:03:16 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Fri, 30 Jun 2017 17:03:16 -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=btvkMDIvPm1yJ+YfxDRzAuVYBSC5q8Tb050daZLPlw4=; b=SgU5o5oK f0TRm0fGdSH7o83Y15cVHc52fUmnyXAQBHxYRQ/gEnj065eCzzIDNrn4ugE3dkMV c/1dRabmiW+UdPlfyCPMiLaPYU0jsydlDXP6D8RxSdGbcGBrUvZKOEbQ+9SKAqjE 0q+4NiSpHYwIoiNA9jbMcoq59VnnI7Hh7TxjAlKnc4qqG0CtP0QcBGvIHv+2ccRL fiVunw9dKuzKOOQtT4+Fm9o+pWC8h9aNNBuIfaxnaqRXtVuNDesPAS4xFC/MRYoJ KYUhjSvjjJXZwrwNX3avaVxDVzFuvZzjLwMb1LlofRMFmbUkQSUCzYE0MJ+hQiRX ck+MDAHs+MlIYw== X-ME-Sender: X-Sasl-enc: 8LHCagE1h0NS/PdFfjsC5ZIRuULOIA6Blmg6St82zlVP 1498856596 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 16AE07E32F; Fri, 30 Jun 2017 17:03:16 -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: <92d274cb-ebc2-aac3-0d0d-390c5585a547@2ndquadrant.com> Date: Fri, 30 Jun 2017 17:03:22 -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: > -- 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