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 1iiJ2H-0001Vw-BN for pgsql-docs@arkaria.postgresql.org; Fri, 20 Dec 2019 14:13: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 1iiJ2F-0002HI-Tp for pgsql-docs@arkaria.postgresql.org; Fri, 20 Dec 2019 14:13:43 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iiJ2F-0002HB-Lo for pgsql-docs@lists.postgresql.org; Fri, 20 Dec 2019 14:13:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iiJ29-0000v9-9y for pgsql-docs@lists.postgresql.org; Fri, 20 Dec 2019 14:13:43 +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 xBKEDXtP003149; Fri, 20 Dec 2019 09:13:33 -0500 From: Tom Lane To: Bruce Momjian cc: "David G. Johnston" , Pavlo Golub , Laurenz Albe , "pgsql-docs@lists.postgresql.org" Subject: Re: COPY manual is ambiguous about column list In-reply-to: <20191220134541.GB29807@momjian.us> References: <157487729344.7213.14245726713444755296@wrigleys.postgresql.org> <4f3e2f301646d94ad33558e21fc77d5bf1ea1cdd.camel@cybertec.at> <20191219165340.GP30116@momjian.us> <12751.1576817197@sss.pgh.pa.us> <14696.1576819950@sss.pgh.pa.us> <20191220134541.GB29807@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 20 Dec 2019 08:45:41 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3147.1576851213.1@sss.pgh.pa.us> Date: Fri, 20 Dec 2019 09:13:33 -0500 Message-ID: <3148.1576851213@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bruce Momjian writes: > OK, how is this? I do not like the phrasing of If a column list is specified in COPY FROM, the number and position of the columns must match those fields in the file. I'm not quite sure why, but that reads to me as implying that the COPY will identify columns of the file by name and match them up. Or at least it could be read that way by somebody who was predisposed to believe it. I'd go with something more like If a column list is specified in COPY FROM, only the listed columns are read from the file (whose fields must match the column list). regards, tom lane