Re: importing db as text files - Mailing list pgsql-general

From Gregory S. Williamson
Subject Re: importing db as text files
Date
Msg-id 71E37EF6B7DCC1499CEA0316A256832801057063@loki.globexplorer.com
Whole thread Raw
In response to importing db as text files  (expect <expect@ihubbell.com>)
Responses Re: importing db as text files  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-general
Two issues raised (other than my atrocious coding)

 a) if defaults for a column are defined and copy is given a value of <> (implicit NULL) why not use the default ?
[doesan explicit \n work -- didn't try, I have to confess] 

 b) more generally, if copy finds a column that allows null and the data is a null (not explicitly defined as such,
justno data) isn't that value valid, e.g. a NULL value ? 

I kludged a simple way to make my data load, without really understanding why -- other than how "C" converts strings to
integers("atoi") -- a simple NULL can't be a NULL entry or at least a '0' if that is the default. 

Not meant in ANY way as criticism, really, just trying to get a handle on this cool tool, and how it differs from ones
Ido know. 

Apologies for any double postings I may have caused.

Greg W.

-----Original Message-----
From:    Martijn van Oosterhout [mailto:kleptog@svana.org]
Sent:    Wed 8/13/2003 9:24 PM
To:    Gregory S. Williamson
Cc:    expect; pgsql-general@postgresql.org
Subject:    Re: [GENERAL] importing db as text files







pgsql-general by date:

Previous
From: Jeff Davis
Date:
Subject: tsearch2 in 7.4beta1 compile problem
Next
From: Jason Godden
Date:
Subject: Re: importing db as text files