diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml
index fac4540..a20ac34 100644
--- a/doc/src/sgml/ecpg.sgml
+++ b/doc/src/sgml/ecpg.sgml
@@ -936,7 +936,7 @@ do
bytea
- char *
+ char *, bytea[n]
@@ -1193,6 +1193,36 @@ EXEC SQL END DECLARE SECTION;
+
+
+ bytea
+
+
+ The handling of the bytea type is also similar to
+ the VARCHAR. The definition on an array of type
+ bytea is converted into a named struct for every
+ variable. A declaration like:
+
+bytea var[180];
+
+ is converted into:
+
+struct bytea_var { int len; char arr[180]; } var;
+
+ The member arr hosts binary format
+ data. It also can handle even '\0' as part of
+ data unlike VARCHAR.
+ The data is converted from/to hex format and sent/received by
+ ecpglib.
+
+
+
+
+ bytea variable can be used only when
+ is set to hex.
+
+
+