Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iiABZ-0004Tn-7D for pgsql-docs@arkaria.postgresql.org; Fri, 20 Dec 2019 04:46:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iiABX-0000S9-Vo for pgsql-docs@arkaria.postgresql.org; Fri, 20 Dec 2019 04:46:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iiABX-0000Ry-KO for pgsql-docs@lists.postgresql.org; Fri, 20 Dec 2019 04:46:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iiABV-0001zm-DS for pgsql-docs@lists.postgresql.org; Fri, 20 Dec 2019 04:46:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xBK4kb64012752; Thu, 19 Dec 2019 23:46:37 -0500 From: Tom Lane To: Bruce Momjian cc: Pavlo Golub , Laurenz Albe , pgsql-docs@lists.postgresql.org Subject: Re: COPY manual is ambiguous about column list In-reply-to: <20191219165340.GP30116@momjian.us> References: <157487729344.7213.14245726713444755296@wrigleys.postgresql.org> <4f3e2f301646d94ad33558e21fc77d5bf1ea1cdd.camel@cybertec.at> <20191219165340.GP30116@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Thu, 19 Dec 2019 11:53:40 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12750.1576817197.1@sss.pgh.pa.us> Date: Thu, 19 Dec 2019 23:46:37 -0500 Message-ID: <12751.1576817197@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bruce Momjian writes: > How is the attached patch? ! In COPY FROM, the number of columns specified ! must match the number of fields in the file; any table columns not ! specified in the COPY FROM column list will insert ! their default values. Phrasing seems a bit weird to me: you've run two nearly independent observations into one sentence. But s/; any/. Any/ might be enough to fix it. regards, tom lane