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 1mGYVX-00011i-Pv for pgsql-committers@arkaria.postgresql.org; Thu, 19 Aug 2021 03:14:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mGYVW-0007SD-Ol for pgsql-committers@arkaria.postgresql.org; Thu, 19 Aug 2021 03:14:18 +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 1mGYVW-0007S5-F2 for pgsql-committers@lists.postgresql.org; Thu, 19 Aug 2021 03:14:18 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mGYVS-0004u0-8J for pgsql-committers@lists.postgresql.org; Thu, 19 Aug 2021 03:14:17 +0000 Received: by mail-wm1-x329.google.com with SMTP id f9-20020a05600c1549b029025b0f5d8c6cso5790861wmg.4 for ; Wed, 18 Aug 2021 20:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=taqK+1wKly62bX9UQ7U9DL6JFufa0xs39RJTP8XeTnc=; b=S12/TvmK7SVQt3vGnN4ILAyNiMpS2YfWkv9z5/Te/uI4fywMTBdtiZNyKiiBFvh0/P ClqX/J4En7sUY2a48bJ66UakJCPo5FdjBHp7QBgGUj2hbVN432NColWGU8aPkS4wUmTj wO/NiOJ6H29iEovuRo3dEEWpmnh/vgKqscf+tN78TFUwueI5boJM723sKtEfpECrbIKD tYJpmRsiRhaxqMXUEfQpzRnAyHv21Tv3Ky4ISByGnSFKIpbPIj5ljn+HR7fbR6j5mCRG bYtVpkbOHdTtK+13egLvJ+UZAkHZEcNA9awf9bpdetLg1VYX0S7ooLDsrafcN/3QOkeM 7qcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=taqK+1wKly62bX9UQ7U9DL6JFufa0xs39RJTP8XeTnc=; b=I55Bj959+UUczDI6a41TGGxEEUmXpZM7pdkakxTZFA+nECD225MxSjPbebJyZdtn4H QSrO3Nj4CZk/DvznWCs9CmuTMsNCskEEOYvRyC9iouxI6w3E9kWrq66wkAhU/KOeeqyv 5Fj7/ulmbAyLbVkj6/JRH3+u3/X04UMuzzwJOy7/3m2uVNQ4wpPRHknPMY0opUQu819R dbRChDs2BuO3yy2i4VOLPznftcY8VUSSAohUA3+oskGukDBmcj2nouZ50CINOY+c+qQA wUIvcAIeiF1RfvcnsqL0Mq7A76RomXk5BZx21RN+Zy+xsHpD6l3W+RctwkiihNDl8rX+ GVaA== X-Gm-Message-State: AOAM532bVc19SqvnNCEbIKWH3zBlsYIAT3Vu5Tu60RUPeowG2yp91M/b m7+0e39s3Q6bfavbMvQxnY3vIg== X-Google-Smtp-Source: ABdhPJy2BRmvRrEh+DMhE9VrMv+41rDld9nZ4pe/dbPiR+j9liyDFAcjrE543v7xLlMFL55uM5Y8hg== X-Received: by 2002:a05:600c:4e91:: with SMTP id f17mr11494172wmq.184.1629342852504; Wed, 18 Aug 2021 20:14:12 -0700 (PDT) Received: from localhost.localdomain (62-47-150-142.adsl.highway.telekom.at. [62.47.150.142]) by smtp.gmail.com with ESMTPSA id p8sm6360207wme.22.2021.08.18.20.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 20:14:12 -0700 (PDT) Message-ID: <6906fe3025b8a8fc7a3c1f120b93726db53c7ed3.camel@cybertec.at> Subject: Re: pgsql: Allow a multi-row INSERT to specify DEFAULTs for a generated col From: Laurenz Albe To: Tom Lane , pgsql-committers@lists.postgresql.org Date: Thu, 19 Aug 2021 05:14:11 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, 2020-11-22 at 20:48 +0000, Tom Lane wrote: > Allow a multi-row INSERT to specify DEFAULTs for a generated column. > > One can say "INSERT INTO tab(generated_col) VALUES (DEFAULT)" and not > draw an error. But the equivalent case for a multi-row VALUES list > always threw an error, even if one properly said DEFAULT in each row. > Fix that. While here, improve the test cases for nearby logic about > OVERRIDING SYSTEM/USER values. > > Dean Rasheed > > Discussion: https://postgr.es/m/9q0sgcr416t.fsf@gmx.us > > Branch > ------ > master > > Details > ------- > https://git.postgresql.org/pg/commitdiff/17958972fe3bb03454a4b53756b29d65dc285efa Shouldn't this be backpatched? That seems like a clear bug to me; see this report on v11: https://stackoverflow.com/q/68834080/6464308 Yours, Laurenz Albe