mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
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.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/datetime.sgml,v 2.46 2005/06/15 00:34:08 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/datetime.sgml,v 2.47 2005/09/09 02:31:48 tgl Exp $
|
||||
-->
|
||||
|
||||
<appendix id="datetime-appendix">
|
||||
@ -990,9 +990,7 @@ $PostgreSQL: pgsql/doc/src/sgml/datetime.sgml,v 2.46 2005/06/15 00:34:08 momjian
|
||||
<para>
|
||||
<xref linkend="datetime-timezone-set-table"> shows the time zone
|
||||
names recognized by <productname>PostgreSQL</productname> as valid
|
||||
settings for the <xref linkend="guc-timezone"> parameter, and as
|
||||
parameters to the <literal>AT TIME ZONE function</> (see
|
||||
<xref linkend="functions-datetime-zoneconvert">). Note that
|
||||
settings for the <xref linkend="guc-timezone"> parameter. Note that
|
||||
these names are conceptually as well as practically different from
|
||||
the names shown in <xref linkend="datetime-timezone-input-table">:
|
||||
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
|
||||
</para>
|
||||
|
||||
<table id="datetime-timezone-set-table">
|
||||
<title>Time Zone Names for Setting <varname>timezone</> and <literal>AT TIME ZONE</></title>
|
||||
<title>Time Zone Names for Setting <varname>timezone</></title>
|
||||
<tgroup cols="1">
|
||||
<thead>
|
||||
<row>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.283 2005/08/25 01:29:55 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.284 2005/09/09 02:31:48 tgl Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -5730,9 +5730,9 @@ SELECT date_trunc('year', TIMESTAMP '2001-02-16 20:38:40');
|
||||
In these expressions, the desired time zone <replaceable>zone</> can be
|
||||
specified either as a text string (e.g., <literal>'PST'</literal>)
|
||||
or as an interval (e.g., <literal>INTERVAL '-08:00'</literal>).
|
||||
In the text case, the available zone names are those shown in
|
||||
<xref linkend="datetime-timezone-set-table">. 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
|
||||
<xref linkend="datetime-timezone-set-table"> or
|
||||
<xref linkend="datetime-timezone-input-table">.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
Reference in New Issue
Block a user