diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-03-18 16:11:22 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-03-18 16:11:22 -0400 |
commit | 4f46f870fa56fa73d6678273f1bd059fdd93d5e6 (patch) | |
tree | 13af6b3876f2ac8e32ef1d8cdbeba2af416dcb5d /doc/src | |
parent | 75bd846b68b09f33a57d9de96064ded4d392ca05 (diff) | |
download | postgresql-4f46f870fa56fa73d6678273f1bd059fdd93d5e6.tar.gz postgresql-4f46f870fa56fa73d6678273f1bd059fdd93d5e6.zip |
Doc: fix documentation example for bytea hex output format.
Per report from rsindlin
Discussion: https://postgr.es/m/167907221210.1803488.5939223864945604536@wrigleys.postgresql.org
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/datatype.sgml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index 4df8bd1b641..faf0d741042 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1493,7 +1493,12 @@ SELECT b, char_length(b) FROM test2; <para> Example: <programlisting> -SELECT '\xDEADBEEF'; +SET bytea_output = 'hex'; + +SELECT '\xDEADBEEF'::bytea; + bytea +------------ + \xdeadbeef </programlisting> </para> </sect2> |