Re: bcp.exe Fix Triggers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bcp.exe Fix Triggers
Дата
Msg-id 17501.1212414753@sss.pgh.pa.us
обсуждение исходный текст
Ответ на bcp.exe Fix Triggers  ("yazicivo" <yazicivo@ttmail.com>)
Список pgsql-sql
"yazicivo" <yazicivo@ttmail.com> writes:
> The problem is, bcp.exe
> - Uses nothing to specify null fields, which is equivalent to
>     COPY ... WITH NULL AS ''
>   in PostgreSQL.

> - Uses \x00 character to specify empty strings.

Ugh.  You're going to have to fix the null-char problem externally
--- perhaps run a Perl script over the dump before you import.
There's no way those triggers will work, quite aside from your
difficulties in auto-generating them, because \0 isn't valid in
PG text values.
        regards, tom lane


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

Предыдущее
От: Joe
Дата:
Сообщение: Re: bcp.exe Fix Triggers
Следующее
От: "maria s"
Дата:
Сообщение: function returning result set of varying column