ok merci mais j'ai un /ERROR COPY file signature not recognized avec
l'option BINARY
/
copy TABLE_BYTEA from '/NFS/blobextract' BINARY
Le 24/02/2014 11:02, Dimitri Fontaine a écrit :
> pierre crumeyrolle <pierre(dot)crumeyrolle(at)c-s(dot)fr> writes:
>> je fais un create table TABLE_BYTEA(BINAIRE bytea);
>> copy TABLE_BYTEA from '/NFS/blobextract'
>> j'ai eu erreur ERROR : invalid byte sequence for encoding "UTF8":0xfa
> http://www.postgresql.org/docs/current/static/sql-copy.html
>
> FORMAT Selects the data format to be read or written: text, csv (Comma
> Separated Values), or binary. The default is text.
>
> Et donc dans ce cas il semblerait que peut être FORMAT 'BINARY' ferait
> plus de sens ?
>