Re: Apparent Problem With NULL in Restoring pg_dump

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: Apparent Problem With NULL in Restoring pg_dump
Дата
Msg-id 8DEAECFB-957E-46DA-84D0-A1504CDAC66E@gmail.com
обсуждение исходный текст
Ответ на Apparent Problem With NULL in Restoring pg_dump  (Rich Shepard <rshepard@appl-ecosys.com>)
Ответы Re: Apparent Problem With NULL in Restoring pg_dump
Список pgsql-general
On 15 Sep 2011, at 19:31, Rich Shepard wrote:

>  The .sql file produced by pg_dump is properly terminated with '\.' as the
> last line, yet I continue to encounter this error:
>
> ERROR:  invalid input syntax for type real: "     "
> CONTEXT:  COPY chemistry, line 47363, column quant: "     "
>
> when trying to re-create the table.
>
>  It appears that this error is generated when a row has a missing value in
> the 'quant' column and the column contains '\N' in the text file. For
> example,
>
> \N    GW-22    2005-03-09    Depth to Water        \N    Feet    \N
> \N    \N    \N
>
> (It is a single line in emacs but wraps in alpine.)


You appear to have two tabs after "Depth to Water", which would be one too many.

Alban Hertroys

--
The scale of a problem often equals the size of an ego.



В списке pgsql-general по дате отправления:

Предыдущее
От: Andy Colson
Дата:
Сообщение: Re: Apparent Problem With NULL in Restoring pg_dump
Следующее
От: Rich Shepard
Дата:
Сообщение: Re: Apparent Problem With NULL in Restoring pg_dump