Re: using copy to load odd characters - Mailing list pgsql-general

From Francois Suter
Subject Re: using copy to load odd characters
Date
Msg-id A3745B50-F8CC-11D7-B8D9-000393427520@paragraf.ch
Whole thread Raw
In response to Re: using copy to load odd characters  ("Johnson, Shaunn" <SJohnson6@bcbsm.com>)
List pgsql-general
> Depends on what data type the column is supposed to have.  Character
> data
> types cannot contain null bytes.  The type bytea can store arbitrary
> binary data.  It requires you to escape null bytes so '\\000'.

When you dump some data using pg_dump, null fields are represented as
\N. Maybe you can try that. Hope that helps.

---------------
Francois

Home page: http://www.monpetitcoin.com/

"Would Descartes have programmed in Pascal?" - Umberto Eco


pgsql-general by date:

Previous
From: Kaare Rasmussen
Date:
Subject: Re: PostgreSQL Beta4 Tag'd and Bundle'd ...
Next
From: Vivek Khera
Date:
Subject: Re: Possible bug on insert