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-datetime.sgml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc/src/sgml/func/func-datetime.sgml') diff --git a/doc/src/sgml/func/func-datetime.sgml b/doc/src/sgml/func/func-datetime.sgml index 8cd7150b0d3..39dddde4fe1 100644 --- a/doc/src/sgml/func/func-datetime.sgml +++ b/doc/src/sgml/func/func-datetime.sgml @@ -602,28 +602,28 @@ extract - extract ( field from timestamp ) + extract ( field FROM timestamp ) numeric Get timestamp subfield; see - extract(hour from timestamp '2001-02-16 20:38:40') + extract(hour FROM timestamp '2001-02-16 20:38:40') 20 - extract ( field from interval ) + extract ( field FROM interval ) numeric Get interval subfield; see - extract(month from interval '2 years 3 months') + extract(month FROM interval '2 years 3 months') 3 @@ -1849,7 +1849,7 @@ SELECT date_bin('15 minutes', TIMESTAMP '2020-02-11 15:44:17', TIMESTAMP '2001-0 value is in the named time zone. - timestamp '2001-02-16 20:38:40' at time zone 'America/Denver' + timestamp '2001-02-16 20:38:40' AT TIME ZONE 'America/Denver' 2001-02-17 03:38:40+00 @@ -1881,7 +1881,7 @@ SELECT date_bin('15 minutes', TIMESTAMP '2020-02-11 15:44:17', TIMESTAMP '2001-0 appear in that zone. - timestamp with time zone '2001-02-16 20:38:40-05' at time zone 'America/Denver' + timestamp with time zone '2001-02-16 20:38:40-05' AT TIME ZONE 'America/Denver' 2001-02-16 18:38:40 @@ -1913,7 +1913,7 @@ SELECT date_bin('15 minutes', TIMESTAMP '2020-02-11 15:44:17', TIMESTAMP '2001-0 offset for the named destination zone. - time with time zone '05:34:17-05' at time zone 'UTC' + time with time zone '05:34:17-05' AT TIME ZONE 'UTC' 10:34:17+00 -- cgit v1.2.3