Re: Using \copy to populate a table - Mailing list pgsql-general

From rob stone
Subject Re: Using \copy to populate a table
Date
Msg-id 327a4bfde1f1c55e50d0436c0f6dceb41e4afc75.camel@tpg.com.au
Whole thread Raw
In response to Re: Using \copy to populate a table  (Brent Wood <brent.wood@earthsciences.nz>)
List 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



pgsql-general by date:

Previous
From: Peter Kleiner
Date:
Subject: Re: Using \copy to populate a table
Next
From: Shaheed Haque
Date:
Subject: Can I use pg_dump to save a sequence for a table that is not also being saved?