bytea type

Started by Franck Martinabout 25 years ago2 messages
#1Franck Martin
Franck@sopac.org

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/&gt;

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.

#2Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Franck Martin (#1)
Re: bytea type

[ 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, Pennsylvania 19026