diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 8f223d68913..0b6a9d9542b 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -1482,15 +1482,15 @@
decodedecode(stringtext,
- typetext)
+ formattext)
bytea
- Decode binary data from string previously
- encoded with encode>. Parameter type is same as in encode>.
+ Decode binary data from textual representation in string>.
+ Options for format> are same as in encode>.
decode('MTIzAAE=', 'base64')
- 123\000\001
+ \x3132330001
@@ -1499,13 +1499,13 @@
encodeencode(databytea,
- typetext)
+ formattext)
text
- Encode binary data to different representation. Supported
- types are: base64>, hex>, escape>.
- Escape> merely outputs null bytes as \000> and
+ Encode binary data into a textual representation. Supported
+ formats are: base64>, hex>, escape>.
+ escape> merely outputs null bytes as \000> and
doubles backslashes.
encode(E'123\\000\\001', 'base64')
@@ -1707,7 +1707,7 @@
quote_nullable is often more suitable.
See also .
- quote_literal('O\'Reilly')
+ quote_literal(E'O\'Reilly')'O''Reilly'
@@ -2859,6 +2859,14 @@
(see ).
+
+
+ The sample results shown on this page assume that the server parameter
+ bytea_output> is set
+ to escape (the traditional PostgreSQL format).
+
+
+