Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMzlL-0007ld-AP for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Dec 2017 17:15:07 +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 1eMzlK-0006Kp-S7 for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Dec 2017 17:15:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eMzkG-0003fR-St for pgsql-bugs@lists.postgresql.org; Thu, 07 Dec 2017 17:14:01 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eMzkD-0000HX-Cj for pgsql-bugs@postgresql.org; Thu, 07 Dec 2017 17:14:00 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id B3D2F207D1; Thu, 7 Dec 2017 12:13:54 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Thu, 07 Dec 2017 12:13:54 -0500 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; s=fm1; bh=TLCN4w iak0AB50qhDhTFvqfx5ji9+7PCIyIFku2Vrqc=; b=bD5+zgpiLGD7t7gj7eCcj+ q/8p+7tfnwAvigqczUH08FLcC2C3J2+MOA1cChqRd8sQvMa1uOD3SuwELpM9Wyi+ 40aOLv4o9hM0RkOnR5gYOv/hWZWJBxTMmEEKIzBHoUU2ATo7MIGOHRMh0PBMPcZB ctNf4wJci0SiA0qLU2uqQcnBxBOLSGzqvRX75Gm/jaxLUFD2OADobF9nub9y9hpl HhRPPBLj4DFEvHXKO1yiUiJdaYD9PzQP4lfRHEri1ZZY0jNU00QXH5cnPKMO5DnU BktwFc18G2gfxQRbg+/wMuTxKq2lS7TMGLHloi8G2pFKP0PlUifYNJqA0wq3pK+Q == 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 6E3AB248B1; Thu, 7 Dec 2017 12:13:54 -0500 (EST) Subject: Re: BUG #14952: COPY fails to fill in IDENTITY column default value To: steven.winfield@cantabcapital.com, pgsql-bugs@postgresql.org References: <20171207112930.21696.79944@wrigleys.postgresql.org> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <12618e2c-0eb0-3e15-c45d-96891c52eb5f@2ndquadrant.com> Date: Thu, 7 Dec 2017 12:13:53 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171207112930.21696.79944@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/7/17 06:29, steven.winfield@cantabcapital.com wrote: > COPYing data to a table with an IDENTITY column, where the column's value > isn't specified in the copied input, fails because COPY attempts to insert a > NULL value for the column: That indeed appears to be a bug. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services