From a239af02c3585f4355737230bc54902e8217f76e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 9 Sep 2005 02:31:50 +0000 Subject: Fix the various forms of AT TIME ZONE to accept either timezones found in the zic database or zone names found in the date token table. This preserves the old ability to do AT TIME ZONE 'PST' along with the new ability to do AT TIME ZONE 'PST8PDT'. Per gripe from Bricklen Anderson. Also, fix some inconsistencies in usage of TZ_STRLEN_MAX --- the old code had the potential for one-byte buffer overruns, though given alignment considerations it's unlikely there was any real risk. --- doc/src/sgml/datetime.sgml | 8 +++----- doc/src/sgml/func.sgml | 8 ++++---- 2 files changed, 7 insertions(+), 9 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/datetime.sgml b/doc/src/sgml/datetime.sgml index 9610dc36c5c..2cfda15f097 100644 --- a/doc/src/sgml/datetime.sgml +++ b/doc/src/sgml/datetime.sgml @@ -1,5 +1,5 @@ @@ -990,9 +990,7 @@ $PostgreSQL: pgsql/doc/src/sgml/datetime.sgml,v 2.46 2005/06/15 00:34:08 momjian shows the time zone names recognized by PostgreSQL as valid - settings for the parameter, and as - parameters to the AT TIME ZONE function (see - ). Note that + settings for the parameter. Note that these names are conceptually as well as practically different from the names shown in : most of these names imply a local daylight-savings time rule, whereas @@ -1006,7 +1004,7 @@ $PostgreSQL: pgsql/doc/src/sgml/datetime.sgml,v 2.46 2005/06/15 00:34:08 momjian - Time Zone Names for Setting <varname>timezone</> and <literal>AT TIME ZONE</> + Time Zone Names for Setting <varname>timezone</> diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 9bef5e13783..41ca4a8cc9b 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,5 +1,5 @@ @@ -5730,9 +5730,9 @@ SELECT date_trunc('year', TIMESTAMP '2001-02-16 20:38:40'); In these expressions, the desired time zone zone can be specified either as a text string (e.g., 'PST') or as an interval (e.g., INTERVAL '-08:00'). - In the text case, the available zone names are those shown in - . The time zone can - also be implied using the default time zone for that session. + In the text case, the available zone names are those shown in either + or + . -- cgit v1.2.3