From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Improve performance of timezone loading, especially pg_timezone_
Date: Sun, 07 May 2017 13:45:27 -0400
Message-ID: <9582.1494179127@sss.pgh.pa.us> (raw)
In-Reply-To: <20119.1494170228@sss.pgh.pa.us>
References: <E1d5jRn-0004SY-Nx@gemulon.postgresql.org>
<CAA4eK1LC7CaNhRAQ__C3ht1JVrPzaAXXhEJRnR5L6bfYHiLmWw@mail.gmail.com>
<22367.1494134345@sss.pgh.pa.us>
<CAKJS1f8z_cuEcYED4J0OcN0Fg9JO46Umyq4hysYcmPgGumDSMg@mail.gmail.com>
<CAKJS1f8ZCTq8i05zGwBFCO3X8GxtBJeeTzn3YEMARdDBB+T=3Q@mail.gmail.com>
<19225.1494169028@sss.pgh.pa.us>
<CAA4eK1+0aGUxx9WfNzXiRE=0SVTr2vAxGh0+WfB8cxYeyPwaQA@mail.gmail.com>
<20119.1494170228@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
I wrote:
> I concur with your thought that these are separate bugs and deserve
> separate commits. Will do that in a minute.
BTW, I wrote in the commit log message that the posixrules omission
had only minimal consequences, but on closer look that's wrong:
the hardwired default in the timezone code is
/*
* The DST rules to use if TZ has no rules and we can't load TZDEFRULES.
* We default to US rules as of 1999-08-17.
* POSIX 1003.1 section 8.1.1 says that the default DST rules are
* implementation dependent; for historical reasons, US rules are a
* common default.
*/
#define TZDEFRULESTRING ",M4.1.0,M10.5.0"
that is, first Sunday of April and last Sunday of October. The US
hasn't gone by that since 2006. So actually, this change will have
a very visible impact on the behavior of POSIX-style zone names.
(I wonder why IANA hasn't updated this default? Still, that's their
expertise not ours, so I'm disinclined to touch it.)
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, amit.kapila16@gmail.com, david.rowley@2ndquadrant.com
Subject: Re: pgsql: Improve performance of timezone loading, especially pg_timezone_
In-Reply-To: <9582.1494179127@sss.pgh.pa.us>
References: <E1d5jRn-0004SY-Nx@gemulon.postgresql.org> <CAA4eK1LC7CaNhRAQ__C3ht1JVrPzaAXXhEJRnR5L6bfYHiLmWw@mail.gmail.com> <22367.1494134345@sss.pgh.pa.us> <CAKJS1f8z_cuEcYED4J0OcN0Fg9JO46Umyq4hysYcmPgGumDSMg@mail.gmail.com> <CAKJS1f8ZCTq8i05zGwBFCO3X8GxtBJeeTzn3YEMARdDBB+T=3Q@mail.gmail.com> <19225.1494169028@sss.pgh.pa.us> <CAA4eK1+0aGUxx9WfNzXiRE=0SVTr2vAxGh0+WfB8cxYeyPwaQA@mail.gmail.com> <20119.1494170228@sss.pgh.pa.us> <9582.1494179127@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