doc: Add example file for COPY

Daniel Gustafsson <dgustafsson@postgresql.org>

Commit: 246388618cee6b1005291267424ac67bd83496ac
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2025-07-16T22:21:18Z
Releases: 16.10
doc: Add example file for COPY

The paragraph for introducing INSERT and COPY discussed how a file
could be used for bulk loading with COPY, without actually showing
what the file would look like.  This adds a programlisting for the
file contents.

Backpatch to all supported branches since this example has lacked
the file contents since PostgreSQL 7.2.

Author: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/158017814191.19852.15019251381150731439@wrigleys.postgresql.org
Backpatch-through: 13

Files

PathChange+/−
doc/src/sgml/query.sgml modified +12 −2

Documentation touched

Discussion