> Afaik, not possible, at least I couldn't get any \0s into bytea column
> from psql nor from perl DBI interface. You need blobs if you want to store
> data which contains embedded nulls. Or so I think.
> -alex

Double-backslashes are the trick.

test=> insert into vv values ('ab\\000d');
INSERT 27467 1
test=> select * from vv;
    x    
---------
 ab\003d
 ab\003d
 ab\000d
(3 rows)

test=> 

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  [EMAIL PROTECTED]               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Reply via email to