Doc: fix documentation example for bytea hex output format.
authorTom Lane
Sat, 18 Mar 2023 20:11:22 +0000 (16:11 -0400)
committerTom Lane
Sat, 18 Mar 2023 20:11:35 +0000 (16:11 -0400)
Per report from rsindlin

Discussion: https://postgr.es/m/167907221210.1803488.5939223864945604536@wrigleys.postgresql.org

doc/src/sgml/datatype.sgml

index 0258b192e0e4f18d3730efc45f841e78124d82a1..a903dcc3216144ab3ef32e6ab9bda75f6d33f1e6 100644 (file)
@@ -1480,7 +1480,12 @@ SELECT b, char_length(b) FROM test2;
    
     Example:
 
-SELECT '\xDEADBEEF';
+SET bytea_output = 'hex';
+
+SELECT '\xDEADBEEF'::bytea;
+   bytea
+------------
+ \xdeadbeef