Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uaM4m-004D1p-Hx for pgsql-docs@arkaria.postgresql.org; Fri, 11 Jul 2025 22:18:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uaM4i-007Q7D-98 for pgsql-docs@arkaria.postgresql.org; Fri, 11 Jul 2025 22:18:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uaM4h-007Q75-UK for pgsql-docs@lists.postgresql.org; Fri, 11 Jul 2025 22:18:36 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uaM4f-006pcP-16 for pgsql-docs@lists.postgresql.org; Fri, 11 Jul 2025 22:18:35 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id B1C553D421E for ; Sat, 12 Jul 2025 00:18:29 +0200 (CEST) Received: from s899.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 9DFCE3D3B4D; Sat, 12 Jul 2025 00:18:29 +0200 (CEST) Received: from s471.loopia.se (unknown [172.22.191.5]) by s899.loopia.se (Postfix) with ESMTP id 9B5852C8BA9D; Sat, 12 Jul 2025 00:18:29 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.2 X-Spam-Level: X-Spam-Status: No, score=-1.2 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] autolearn=disabled Authentication-Results: s471.loopia.se (amavisd-new); dkim=pass (2048-bit key) header.d=yesql.se Received: from s979.loopia.se ([172.22.191.6]) by s471.loopia.se (s471.loopia.se [172.22.190.35]) (amavisd-new, port 10024) with LMTP id S8sjN_QAwptY; Sat, 12 Jul 2025 00:18:29 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: IPv6:2001:2043:5ad6:9500:a429:360e:1f59:5328 Received: from smtpclient.apple (unknown [IPv6:2001:2043:5ad6:9500:a429:360e:1f59:5328]) (Authenticated sender: daniel@yesql.se) by s979.loopia.se (Postfix) with ESMTPSA id EA4C210BC341; Sat, 12 Jul 2025 00:18:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1752272309; bh=yZ8vdMo05NzbC3v56oNpc42KeoBRMykvu9y2RwuvCQU=; h=From:Subject:Date:In-Reply-To:Cc:To:References; b=ONIkp9DwSDXLyNmjbrzx/IgtJELlLr7gaXqxFxIDOmpffugV/VaSCcCX5kS/h0vpN wL7HE2Gji/FU0JLLm2ugwl7+ltA8npCupu1qoDPlqp3m92VHFq42+DrjUlRo2/Dyz4 eSa/XU42YVzZR99pEG1x7JokFAKiKAEgykVEz9IVxIuKdLaHjyuAm81CAcbfi/D3xS 5XihmxpVKePso5DPFB5erEnaVtVoXfmZBUeQjyGztoMrrZ75+ZItvtkINk4HJdLKJF 64Xrqad2tLUsyet5BksBnODjn5s8zRHIRsj56Vn7KMnqVdrqDfCL0wwLoXgzrOAuf6 2Ep5n+7UnawcA== From: Daniel Gustafsson Message-Id: Content-Type: multipart/mixed; boundary="Apple-Mail=_39729359-CC5B-445A-B8BA-51BDD6756DFD" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.2\)) Subject: Re: Missing File weather.txt Date: Sat, 12 Jul 2025 00:18:18 +0200 In-Reply-To: <967885b6-aebf-4ff4-b950-a58c9d67587d@oss.nttdata.com> Cc: Tom Lane , pgsql-docs@lists.postgresql.org To: Fujii Masao References: <158017814191.19852.15019251381150731439@wrigleys.postgresql.org> <68FE7D96-3F05-40E3-B3A2-04CE267CF28A@yesql.se> <89bd784e-c3ab-4d9e-9be1-0846bd8c260c@oss.nttdata.com> <10240.1751736559@sss.pgh.pa.us> <4DF3BEAF-EAAA-4C91-92B3-2CA8F022B383@yesql.se> <967885b6-aebf-4ff4-b950-a58c9d67587d@oss.nttdata.com> X-Mailer: Apple Mail (2.3776.700.51.11.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_39729359-CC5B-445A-B8BA-51BDD6756DFD Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii > On 11 Jul 2025, at 01:36, Fujii Masao wrote: > Since the prcp column isn't specified, its value is NULL. So shouldn't > the fourth field in the data line above be \N instead of 0.0? It should, fixed in v3. -- Daniel Gustafsson --Apple-Mail=_39729359-CC5B-445A-B8BA-51BDD6756DFD Content-Disposition: attachment; filename=v3-0001-doc-Add-example-file-for-COPY.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="v3-0001-doc-Add-example-file-for-COPY.patch" Content-Transfer-Encoding: quoted-printable =46rom=2015f04b455d053087614dfeb9c381143066267057=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Daniel=20Gustafsson=20= =0ADate:=20Fri,=2011=20Jul=202025=2000:03:57=20= +0200=0ASubject:=20[PATCH=20v3]=20doc:=20Add=20example=20file=20for=20= COPY=0A=0AThe=20paragraph=20for=20introducing=20INSERT=20and=20COPY=20= discussed=20how=20a=20file=0Acould=20be=20used=20for=20bulk=20loading=20= with=20COPY,=20without=20actually=20showing=0Awhat=20the=20file=20would=20= look=20like.=20=20This=20adds=20a=20programlisting=20for=20the=0Afile=20= contents.=0A=0ABackpatch=20to=20all=20supported=20branches=20since=20= this=20example=20has=20lacked=0Athe=20file=20contents=20since=20= PostgreSQL=207.2.=0A=0AAuthor:=20Daniel=20Gustafsson=20=0A= Reported-by:=20davidhowes@gmail.com=0ADiscussion:=20= https://postgr.es/m/158017814191.19852.15019251381150731439@wrigleys.postg= resql.org=0ABackpatch-through:=2013=0A---=0A=20doc/src/sgml/query.sgml=20= |=2014=20++++++++++++--=0A=201=20file=20changed,=2012=20insertions(+),=20= 2=20deletions(-)=0A=0Adiff=20--git=20a/doc/src/sgml/query.sgml=20= b/doc/src/sgml/query.sgml=0Aindex=20727a0cb185f..002d2f89fb4=20100644=0A= ---=20a/doc/src/sgml/query.sgml=0A+++=20b/doc/src/sgml/query.sgml=0A@@=20= -264,8=20+264,18=20@@=20COPY=20weather=20FROM=20= '/home/user/weather.txt';=0A=20=0A=20=20=20=20=20where=20the=20file=20= name=20for=20the=20source=20file=20must=20be=20available=20on=20the=0A=20= =20=20=20=20machine=20running=20the=20backend=20process,=20not=20the=20= client,=20since=20the=20backend=20process=0A-=20=20=20=20reads=20the=20= file=20directly.=20=20You=20can=20read=20more=20about=20the=0A-=20=20=20=20= COPY=20command=20in=20.=0A= +=20=20=20=20reads=20the=20file=20directly.=20=20The=20data=20inserted=20= above=20into=20the=20weather=20table=0A+=20=20=20=20could=20also=20be=20= inserted=20from=20a=20file=20containing=20(note=20that=20the=20white=20= space=0A+=20=20=20=20on=20each=20line=20is=20actually=20a=20tab=20= character):=0A+=0A+=0A+San=20Francisco=20=20=20=2046=20=20= =20=2050=20=20=20=200.25=20=20=20=201994-11-27=0A+San=20Francisco=20=20=20= =2043=20=20=20=2057=20=20=20=200.0=20=20=20=201994-11-29=0A+Hayward=20=20= =20=2037=20=20=20=2054=20=20=20=20\N=20=20=20=201994-11-29=0A= +=0A+=0A+=20=20=20=20You=20can=20read=20more=20about=20= the=20COPY=20command=20in=0A+=20=20=20=20.=0A=20=20=20=20=0A=20=20=20=0A=20=0A= --=20=0A2.39.3=20(Apple=20Git-146)=0A=0A= --Apple-Mail=_39729359-CC5B-445A-B8BA-51BDD6756DFD--