Re: COPY command with blank incoming values

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Fitzpatrick <robert(at)webtent(dot)com>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: COPY command with blank incoming values
Date: 2004-07-02 04:40:28
Message-ID: 9573.1088743228@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Robert Fitzpatrick <robert(at)webtent(dot)com> writes:
> Does COPY require values for each column even though the database field
> is not set to NOT NULL?

If you want a NULL then you have to write the specified null
representation (which is \N by default, not an empty string).

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jon Valvatne 2004-07-02 05:07:56 Postgres doesn't use indexes for prefix matching?
Previous Message mike g 2004-07-02 04:39:48 Re: Mysterious performance of query because of plsql