Re: Using \copy to populate a table
rob stone <floriparob@tpg.com.au>
From: rob stone <floriparob@tpg.com.au>
To: Brent Wood <brent.wood@earthsciences.nz>
Cc: "pgsql-general@postgresql.org" <pgsql-general@postgresql.org>
Date: 2026-03-17T12:08:29Z
Lists: pgsql-general
On Sun, 2026-03-15 at 07:21 +0000, Brent Wood wrote: > > > > Have you tried explicitly specifying the string to represent null > values? > > > COPY table_name FROM 'path/to/file' WITH (FORMAT text, NULL 'null'); > -- Or the older syntax: > COPY table_name FROM 'path/to/file' WITH DELIMITER ',' NULL AS > 'null'; > > Hello, I took on board Adrian's suggestion and went back to the source and had the file recreated and it has now been loaded successfully. Cheers, Rob