B.4. Date/Time Configuration Files
Since timezone abbreviations are not well standardized,
provides a means to customize
the set of abbreviations accepted by the server. The
determines the active set of abbreviations. While this parameter
can be altered by any database user, the possible values for it
are under the control of the database administrator - they
are in fact names of configuration files stored in
of the installation directory.
By adding or altering files in that directory, the administrator
can set local policy for timezone abbreviations.
can be set to any file name
, if the file's name
is entirely alphabetic. (The prohibition against non-alphabetic
files outside the intended directory, as well as reading editor
backup files and other extraneous files.)
A timezone abbreviation file can contain blank lines and comments
. Non-comment lines must have one of
is just the abbreviation
being defined. An
is an integer giving
the equivalent offset in seconds from UTC, positive being east from
Greenwich and negative being west. For example, -18000 would be five
hours west of Greenwich, or North American east coast standard time.
indicates that the zone name represents local
daylight-savings time rather than standard time.
can be given, referencing
a zone name defined in the IANA timezone database. The zone's definition
is consulted to see whether the abbreviation is or has been in use in
that zone, and if so, the appropriate meaning is used - that is,
the meaning that was currently in use at the timestamp whose value is
being determined, or the meaning in use immediately before that if it
wasn't current at that time, or the oldest meaning if it was used only
after that time. This behavior is essential for dealing with
abbreviations whose meaning has historically varied. It is also allowed
to define an abbreviation in terms of a zone name in which that
abbreviation does not appear; then using the abbreviation is just
equivalent to writing out the zone name.
Using a simple integer
when defining an abbreviation whose offset from UTC has never changed,
as such abbreviations are much cheaper to process than those that
require consulting a time zone definition.
syntax allows inclusion of another file in the
directory. Inclusion can be nested,
to a limited depth.
syntax indicates that subsequent entries in the
file can override previous entries (typically, entries obtained from
included files). Without this, conflicting definitions of the same
timezone abbreviation are considered an error.
In an unmodified installation, the file
all the non-conflicting time zone abbreviations for most of the world.
provided for those regions: these files first include the
file and then add or modify abbreviations as needed.
For reference purposes, a standard installation also contains files
, etc, containing
information about every time zone abbreviation known to be in use
according to the IANA timezone database. The zone name
definitions found in these files can be copied and pasted into a custom
configuration file as needed. Note that these files cannot be directly
settings, because of
the dot embedded in their names.
If an error occurs while reading the time zone abbreviation set, no new value is applied and the old set is kept. If the error occurs while starting the database, startup fails.
Time zone abbreviations defined in the configuration file override
non-timezone meanings built into
For example, the
configuration file defines
(for South Australian Standard Time). When this
file is active,
will not be recognized as an abbreviation
If you modify files in
it is up to you to make backups - a normal database dump
will not include this directory.