Re: using copy to load odd characters

From: Francois Suter <francois(at)monpetitcoin(dot)com>
To: "Johnson, Shaunn" <SJohnson6(at)bcbsm(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: using copy to load odd characters
Date: 2003-10-07 13:46:00
Message-ID: 961F31CA-F8CC-11D7-B8D9-000393427520@monpetitcoin.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Francois Suter 2003-10-07 13:46:23 Re: using copy to load odd characters
Previous Message Kaare Rasmussen 2003-10-07 12:46:11 Re: PostgreSQL Beta4 Tag'd and Bundle'd ...