Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpAfo-00034X-HR for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Dec 2020 13:47:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kpAfn-0004dr-6S for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Dec 2020 13:47:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpAfm-0004dj-WE for pgsql-hackers@lists.postgresql.org; Tue, 15 Dec 2020 13:47:27 +0000 Received: from relay11.mail.gandi.net ([217.70.178.231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpAfj-00028e-9Q for pgsql-hackers@lists.postgresql.org; Tue, 15 Dec 2020 13:47:25 +0000 Received: from [192.168.10.146] (99-10-92-30.lightspeed.rlghnc.sbcglobal.net [99.10.92.30]) (Authenticated sender: adsend@dunslane.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id D1B5010000C; Tue, 15 Dec 2020 13:47:17 +0000 (UTC) Subject: Re: TAP tests aren't using the magic words for Windows file access To: r.zharkov@postgrespro.ru Cc: =?UTF-8?Q?Juan_Jos=c3=a9_Santamar=c3=ada_Flecha?= , Michael Paquier , Thomas Munro , Alvaro Herrera , Tom Lane , PostgreSQL Hackers References: <20191107141229.GA20606@alvherre.pgsql> <3d83a831-197b-e904-5bbb-3cce41c2f47d@2ndQuadrant.com> <5224aa87-30e6-421d-992e-15b72621064e@2ndQuadrant.com> <20191122080041.GH42684@paquier.xyz> <1e63ff72bc9edc3c36a477d72f6beda9@postgrespro.ru> From: Andrew Dunstan Message-ID: Date: Tue, 15 Dec 2020 08:47:15 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <1e63ff72bc9edc3c36a477d72f6beda9@postgrespro.ru> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/15/20 12:05 AM, r.zharkov@postgrespro.ru wrote: > Hello hackers, > > Are there any plans to backport the patch to earlier versions > of the Postgres? > https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=114541d58e5970e51b78b77b65de16210beaab43 > > > We rarely see the issue with the pg_ctl/004_logrotate test on > the REL_12_STABLE branch. On my notebook I can easily reproduce > the "Permission denied at src/test/perl/TestLib.pm line 259" > error with the small change below. But the same test on the > 13th version and the 12th version with the TestLib patch does > not fail. > > diff --git a/src/bin/pg_ctl/t/004_logrotate.pl > b/src/bin/pg_ctl/t/004_logrotate.pl                                      >                                                                         > index bc39abd23e4..e49e159bc84 > 100644                                    >                                                                          >                                               --- > a/src/bin/pg_ctl/t/004_logrotate.pl                                      >                                                                          >                                           +++ > b/src/bin/pg_ctl/t/004_logrotate.pl                                      >                                                                          >                                           @@ -72,7 +72,7 @@ for (my > $attempts = 0; $attempts < $max_attempts; > $attempts++)                   >                                                                          >                      > {                                                   >                                                                          >                                                                          >  $new_current_logfiles = slurp_file($node->data_dir . > '/current_logfiles');                                                    >                                                                   last > if $new_current_logfiles ne > $current_logfiles;                           >                                                                          >                                  -       > usleep(100_000);                >                                                                          >                                                                          >       +       > usleep(1);                                                 >                                                                          >                                                      > }                   >                                                                          >                                                                          >                                                                          >                                                                          >                                                                         > note "now current_logfiles = $new_current_logfiles"; > > > Oops, looks like that slipped off my radar somehow, I'll see about backpatching it right away. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com