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 961F31CA-F8CC-11D7-B8D9-000393427520@monpetitcoin.com
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: Paul Serby
Date:
Subject: "select count(*) from contacts" is too slow!
Next
From: "Nigel J. Andrews"
Date:
Subject: Re: "select count(*) from contacts" is too slow!