Обсуждение: bytea type

Поиск
Список
Период
Сортировка

bytea type

От
Franck Martin
Дата:
I found bytea doing a \dT in psql, but I do not find any documentation on
it.

Could I have some source code implementation of bytea with examples ?

Franck Martin
Database Development Officer
SOPAC South Pacific Applied Geoscience Commission
Fiji
E-mail: franck@sopac.org <mailto:franck@sopac.org> 
Web site: http://www.sopac.org/ <http://www.sopac.org/> 

This e-mail is intended for its recipients only. Do not forward this
e-mail without approval. The views expressed in this e-mail may not be
neccessarily the views of SOPAC.



Re: bytea type

От
Bruce Momjian
Дата:
[ Charset ISO-8859-1 unsupported, converting... ]
> I found bytea doing a \dT in psql, but I do not find any documentation on
> it.
> 
> Could I have some source code implementation of bytea with examples ?

Yes, it is like text, but you can put in binary data as 'a\\000b' puts
a, null, b.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026