From 49d43faa835f3c6817be9fc0b98bec0d661c2587 Mon Sep 17 00:00:00 2001 From: David Rowley Date: Thu, 6 Nov 2025 16:03:02 +1300 Subject: Doc: use uppercase keywords in SQLs Use uppercase SQL keywords consistently throughout the documentation to ease reading. Also add whitespace in a couple of places where it improves readability. Author: Erik Wienhold Reviewed-by: David Rowley Discussion: https://postgr.es/m/82eb512b-8ed2-46be-b311-54ffd26978c4%40ewie.name --- doc/src/sgml/func/func-binarystring.sgml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/src/sgml/func/func-binarystring.sgml') diff --git a/doc/src/sgml/func/func-binarystring.sgml b/doc/src/sgml/func/func-binarystring.sgml index dd7037811af..b256381e01f 100644 --- a/doc/src/sgml/func/func-binarystring.sgml +++ b/doc/src/sgml/func/func-binarystring.sgml @@ -151,7 +151,7 @@ of newsubstring. - overlay('\x1234567890'::bytea placing '\002\003'::bytea from 2 for 3) + overlay('\x1234567890'::bytea PLACING '\002\003'::bytea FROM 2 FOR 3) \x12020390 @@ -170,7 +170,7 @@ bytes, or zero if it's not present. - position('\x5678'::bytea in '\x1234567890'::bytea) + position('\x5678'::bytea IN '\x1234567890'::bytea) 3 @@ -211,7 +211,7 @@ and count. - substring('\x1234567890'::bytea from 3 for 2) + substring('\x1234567890'::bytea FROM 3 FOR 2) \x5678 @@ -856,8 +856,8 @@ significant byte first. Some examples: 1234::smallint::bytea \x04d2 -cast(1234 as bytea) \x000004d2 -cast(-1234 as bytea) \xfffffb2e +cast(1234 AS bytea) \x000004d2 +cast(-1234 AS bytea) \xfffffb2e '\x8000'::bytea::smallint -32768 '\x8000'::bytea::integer 32768 -- cgit v1.2.3