Fix the various forms of AT TIME ZONE to accept either timezones found

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a239af02c3585f4355737230bc54902e8217f76e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-09-09T02:31:50Z
Releases: 8.1.0
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.

Files

PathChange+/−
doc/src/sgml/datetime.sgml modified +3 −5
doc/src/sgml/func.sgml modified +4 −4
src/backend/utils/adt/date.c modified +38 −22
src/backend/utils/adt/timestamp.c modified +90 −52
src/include/pgtime.h modified +2 −2
src/timezone/pgtz.c modified +3 −3