diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 83adc33333b..8fad06f0da1 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -1427,27 +1427,27 @@
decode(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
+ x3132330001encode(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')
@@ -1570,7 +1570,7 @@
quote_nullable is often more suitable.
See also .
- quote_literal('O\'Reilly')
+ quote_literal(E'O\'Reilly')'O''Reilly'
@@ -2620,6 +2620,14 @@
(see ).
+
+
+ The sample results shown on this page assume that the server parameter
+ bytea_output> is set
+ to escape (the traditional PostgreSQL format).
+
+
+