public inbox for [email protected]  
help / color / mirror / Atom feed
From: rob stone <[email protected]>
To: Brent Wood <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Using \copy to populate a table
Date: Tue, 17 Mar 2026 23:08:29 +1100
Message-ID: <[email protected]> (raw)
In-Reply-To: <AK0P299MB010177B7E8902CCB5C4DD48DFF43A@AK0P299MB0101.NZLP299.PROD.OUTLOOK.COM>
References: <[email protected]>
	<AK0P299MB010177B7E8902CCB5C4DD48DFF43A@AK0P299MB0101.NZLP299.PROD.OUTLOOK.COM>

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






reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Using \copy to populate a table
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox