Re: bcp.exe Fix Triggers - Mailing list pgsql-sql

From Tom Lane
Subject Re: bcp.exe Fix Triggers
Date
Msg-id 17501.1212414753@sss.pgh.pa.us
Whole thread Raw
In response to bcp.exe Fix Triggers  ("yazicivo" <yazicivo@ttmail.com>)
List 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 by date:

Previous
From: Joe
Date:
Subject: Re: bcp.exe Fix Triggers
Next
From: "maria s"
Date:
Subject: function returning result set of varying column