Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7Nw8-0005Kk-4T for pgsql-committers@arkaria.postgresql.org; Sun, 07 May 2017 15:17:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d7Nw7-0007Lb-Im for pgsql-committers@arkaria.postgresql.org; Sun, 07 May 2017 15:17:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d7Nvs-0006Ud-OJ for pgsql-committers@postgresql.org; Sun, 07 May 2017 15:17:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d7Nvq-00069s-CM for pgsql-committers@postgresql.org; Sun, 07 May 2017 15:17:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v47FH8eW020120; Sun, 7 May 2017 11:17:08 -0400 From: Tom Lane To: Amit Kapila cc: David Rowley , pgsql-committers Subject: Re: pgsql: Improve performance of timezone loading, especially pg_timezone_ In-reply-to: References: <22367.1494134345@sss.pgh.pa.us> <19225.1494169028@sss.pgh.pa.us> Comments: In-reply-to Amit Kapila message dated "Sun, 07 May 2017 20:33:36 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20118.1494170228.1@sss.pgh.pa.us> Date: Sun, 07 May 2017 11:17:08 -0400 Message-ID: <20119.1494170228@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Amit Kapila writes: > On Sun, May 7, 2017 at 8:27 PM, Tom Lane 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