Re: importing db as text files

Поиск
Список
Период
Сортировка
Искать
От
Gregory S. Williamson
Тема
Re: importing db as text files
Дата
Msg-id
71E37EF6B7DCC1499CEA0316A256832801057063@loki.globexplorer.com
Список
Дерево обсуждения
Re: importing db as text files "Dann Corbit" <DCorbit@connx.com>
Re: importing db as text files expect <expect@ihubbell.com>

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 ? [does an 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, just no 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 I do 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 по дате отправления
От: Jeff Davis
Дата:
От: Jason Godden
Дата:
Сообщение: Re: importing db as text files
FAQ