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 1lF2Hr-0000sT-4C for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Feb 2021 22:05:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lF2Hp-0001U6-CI for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Feb 2021 22:05:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lF2Hp-0001Tq-66 for pgsql-bugs@lists.postgresql.org; Wed, 24 Feb 2021 22:05:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lF2Hm-0004Gx-D1 for pgsql-bugs@lists.postgresql.org; Wed, 24 Feb 2021 22:05:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 11OM5TXG4156697; Wed, 24 Feb 2021 17:05:29 -0500 From: Tom Lane To: Ryan Vinzent cc: pgsql-bugs@lists.postgresql.org Subject: Re: Bug: Cannot insert multiple records using DEFAULT keyword for generated column In-reply-to: References: Comments: In-reply-to Ryan Vinzent message dated "Wed, 24 Feb 2021 12:18:26 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4156695.1614204329.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 24 Feb 2021 17:05:29 -0500 Message-ID: <4156696.1614204329@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ryan Vinzent writes: > I have run into an issue and I'm fairly sure this can be classified as a= bug. More an unimplemented feature ... > INSERT INTO > "generated_column_table" ("name", "id_plus_one") > VALUES > ('some text', DEFAULT), > ('other text', DEFAULT); > > ERROR: cannot insert into column "id_plus_one" > DETAIL: Column "id_plus_one" is a generated column. This works in HEAD, as of https://git.postgresql.org/gitweb/?p=3Dpostgresql.git&a=3Dcommitdiff&h=3D1= 7958972f but there hasn't been any discussion of back-patching that. regards, tom lane