pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 11:17:08 -0400
Message-ID: <20119.1494170228@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA4eK1+0aGUxx9WfNzXiRE=0SVTr2vAxGh0+WfB8cxYeyPwaQA@mail.gmail.com>
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>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Amit Kapila <amit.kapila16@gmail.com> writes:
> On Sun, May 7, 2017 at 8:27 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Ah-hah.  Still, the log message should have been there before.

> No, it didn't exist before because dirname passed to scan_directory_ci
> didn't contain the filename appended to it.

Gotcha.  On closer look, the "fall through" path added by this commit
wasn't really exercised at all on Unix machines, because calls with
no canonname only occur when we expect to find the zone file with name
as stated.  It's accidental (and fortunate) that the bug in the MSVC
build support allowed us to find this bug promptly ;-)

I concur with your thought that these are separate bugs and deserve
separate commits.  Will do that in a minute.

			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



view thread (17+ messages)  latest in thread

Message-ID: <20119.1494170228@sss.pgh.pa.us>
Permalink:  ../20119.1494170228@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20119.1494170228@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-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: <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>

* 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