Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehGjN-000331-Ty for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Feb 2018 15:24:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehGjM-00038F-Vy for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Feb 2018 15:24:52 +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 1ehGjM-000382-MV for pgsql-bugs@lists.postgresql.org; Thu, 01 Feb 2018 15:24:52 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehGjK-0002mG-1e for pgsql-bugs@postgresql.org; Thu, 01 Feb 2018 15:24:51 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1C4A0208B1; Thu, 1 Feb 2018 10:24:49 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Thu, 01 Feb 2018 10:24:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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; s=fm1; bh=BFSJjc JMFmxJJQ+kykHdiroW++5/ZRssNjjr2+85yws=; b=I4ckLkNDLe1C1Zn0kga6gd s99JL20agsmqvTxwAVnuRyyPmEy7wH6pA0tPMjBVjr2/16KaMksOpU/upBXXUFcX w8bQBY0Thhjx2ly4GiiA5Xg8iOHdOwrhkmdlD51niPKmCKBkAWWpatAYLa42VoF0 7GK0uBPVASD6oh97GZ3NvFGdD7pYdoLHeu0bGxHu+PaIrZL5kRrzjHBeMEVe0fjP Inn7S3m4zKDJupkaN944tb1HqiNCjuLanNUqqAX33hVX04F7L5cO5vNL+j64sfbZ y28Ak3DlxhR2Wmg+i/kgO2gacGM6DPjtF75K5bA1cchYV2v72FaXz8w53b22oaDw == X-ME-Sender: 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 B61697E3FA; Thu, 1 Feb 2018 10:24:48 -0500 (EST) Subject: Re: BUG #14952: COPY fails to fill in IDENTITY column default value To: Michael Paquier , Tom Lane References: <20171207112930.21696.79944@wrigleys.postgresql.org> <12618e2c-0eb0-3e15-c45d-96891c52eb5f@2ndquadrant.com> <31740.1513222740@sss.pgh.pa.us> <21a6da72-fb24-4b9e-d300-7439425f7492@2ndquadrant.com> <12169.1514407385@sss.pgh.pa.us> <20171230232601.GA4109@paquier.xyz> Cc: steven.winfield@cantabcapital.com, PostgreSQL mailing lists From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <6a328b03-6912-2d12-2be6-387d4a1613c7@2ndquadrant.com> Date: Thu, 1 Feb 2018 10:24:48 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20171230232601.GA4109@paquier.xyz> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/30/17 18:26, Michael Paquier wrote: > A RangeVar is used for the proposed patch 0002. Still does it matter? In > the scenario proposed here, which is to fix ALTER TABLE ADD COLUMN > GENERATED, then the sequence gets created and visible only once the > transaction adding the column has been created. > > char identity; /* attidentity setting */ > + RangeVar *identitySequence; > CollateClause *collClause; /* untransformed COLLATE spec, if any */ > It mat be better to tell that this is used to create a sequence in the > same transaction as the one doing the parsing. I would like to get this into next week's minor release as a bug fix. Other than tweaking some of the comments, is there any more feedback on this? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services