Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGRDk-0004d4-Pm for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Aug 2021 19:27:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mGRDj-0003XH-Ng for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Aug 2021 19:27:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGRDj-0003X9-Gi for pgsql-bugs@lists.postgresql.org; Wed, 18 Aug 2021 19:27:27 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGRDg-0002JF-CS for pgsql-bugs@lists.postgresql.org; Wed, 18 Aug 2021 19:27:26 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id A342F3200392; Wed, 18 Aug 2021 15:27:22 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 18 Aug 2021 15:27:22 -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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=VNFAYb46hEiiG9hAaXgHXTxA+8pkP67+LQx9HjZUC Gc=; b=Nv9qwn0IXyWNYxb1VzmW3Wql+i6106PgDgIJAkpJQKte41i1N2dzj5Lm3 dbrRjTtXZ3t6VZ3XM8lvbo7d/fuDinki7jsDHWWB3+UqndB+Sahp9p3mxskDXF36 t6GtEKtWP4OHLcVEWKjgr5dLoy3fophz8I9kbdWdzKXrKQKbIpsWSZQ1yQNEHmGX r7W7L9z6Uk4aoc49O+LnzUR2wUkL0PrispkgDsUiWS4ZU3osd3mSALvCMOuk9n1D su9rzgWV8hXnIIIoZcJuc+OCTfJueJSzUsaTX/nWM2EGa3RyevhHLC1dZPhw6o2n owoAszGxtruJTpDn3A918G59m2qGw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrleehgddufeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepleevheehueeiudeiteei tdekueetleefteejffeiffdugedvffdvffdtiedvueeknecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 18 Aug 2021 15:27:20 -0400 (EDT) Subject: Re: PGSQL bug - "Column ??? is an identity column defined as GENERATED ALWAYS.", To: Petr Hybler , pgsql-bugs@lists.postgresql.org References: From: Peter Eisentraut Message-ID: <949dd35d-596e-efce-c5fb-bfef19b74d3b@enterprisedb.com> Date: Wed, 18 Aug 2021 21:27:18 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 18.08.21 17:06, Petr Hybler wrote: > |CREATE TABLE sample_table ( id int8 NOT NULL GENERATED ALWAYS AS > IDENTITY, name varchar(255) NOT NULL, description text NOT NULL, > CONSTRAINT sample_table_pk PRIMARY KEY (id) );| > > When I try to insert a single value, it works OK: > > |INSERT INTO sample_table (id, name, description) VALUES (DEFAULT, 'John > Doe', 'Test description');| > > However, when inserting multiple values, it fails: > > |INSERT INTO sample_table (id, name, description) VALUES (DEFAULT, 'John > Doe', 'Test description') , (DEFAULT, 'Jane Eod', 'Not working');| This has been fixed in PostgreSQL 14.