pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: mark.a.sloan@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9374: some timzone abbver is missing from pg_timezone_abbrevs that are in pg_timezone_names
Date: Fri, 28 Feb 2014 20:57:04 -0500
Message-ID: <28086.1393639024@sss.pgh.pa.us> (raw)
In-Reply-To: <20140227215258.29537.95425@wrigleys.postgresql.org>
References: <20140227215258.29537.95425@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

mark.a.sloan@gmail.com writes:
> postgres=# SELECT * FROM pg_timezone_names   where abbrev = 'WIB' ;
>          name         | abbrev | utc_offset | is_dst 
> ----------------------+--------+------------+--------
>  posix/Asia/Pontianak | WIB    | 07:00:00   | f
>  posix/Asia/Jakarta   | WIB    | 07:00:00   | f
>  Asia/Pontianak       | WIB    | 07:00:00   | f
>  Asia/Jakarta         | WIB    | 07:00:00   | f
> (4 rows)

> postgres=# SELECT * FROM pg_timezone_abbrevs  where abbrev = 'WIB' ;
>  abbrev | utc_offset | is_dst 
> --------+------------+--------
> (0 rows)

This is not a bug.  pg_timezone_abbrevs only lists abbreviations that are
listed in the file selected by the timezone_abbreviations parameter.
The default file doesn't contain WIB.  You can if you like add it,
or maybe better make up a custom abbreviations file tuned to your
particular needs.

While we haven't got a hard and fast policy about which timezone
abbreviations to list in the default set, there are good reasons not to
list uncommonly used ones: the more abbreviations are in the file, the
greater chance of accepting typos as valid input.  And we're definitely
going to be cautious about including abbreviations that mean different
things in different parts of the world, which is an issue for several of
the "missing" ones you listed.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)  latest in thread

Message-ID: <28086.1393639024@sss.pgh.pa.us>
Permalink:  ../28086.1393639024@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28086.1393639024@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mark.a.sloan@gmail.com
  Subject: Re: BUG #9374: some timzone abbver is missing from pg_timezone_abbrevs that are in pg_timezone_names
  In-Reply-To: <28086.1393639024@sss.pgh.pa.us>
  References: <20140227215258.29537.95425@wrigleys.postgresql.org> <28086.1393639024@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox