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 1mJE4S-0002I1-SU for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Aug 2021 12:01:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mJE4Q-0000UI-Ti for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Aug 2021 12:01:22 +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 1mJE4Q-0000U9-CE for pgsql-hackers@lists.postgresql.org; Thu, 26 Aug 2021 12:01:22 +0000 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJE4N-00077c-5H for pgsql-hackers@postgresql.org; Thu, 26 Aug 2021 12:01:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1629979280; x=1661515280; h=to:cc:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding:subject; bh=U3K8efql48SnyL20mQdZZJzcPjNmtt7CJVbCXLY9syY=; b=uqAqFBLIdQPB1WEi2lwubWlgpgOonoQgnjfODM9tE1VDYYrBL2ni+IBJ MQyIMoDht2FfGOyeYVRcXomdr7GCz+qrVZ9CtYQpH9dogkP8Gwog1i4n8 fIkWn1Ru72nOHifEDxNUaKWyfT0pByCu/lyp8oVXmeHI4cBNQAXjyWN8M k=; X-IronPort-AV: E=Sophos;i="5.84,353,1620691200"; d="scan'208";a="155299514" Subject: Re: Re: Minimal logical decoding on standbys Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-2c-579b7f5b.us-west-2.amazon.com) ([10.25.36.214]) by smtp-border-fw-9102.sea19.amazon.com with ESMTP; 26 Aug 2021 12:01:10 +0000 Received: from EX13D03EUC003.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2c-579b7f5b.us-west-2.amazon.com (Postfix) with ESMTPS id 12B1CA1E3A; Thu, 26 Aug 2021 12:01:09 +0000 (UTC) Received: from 38f9d36c4abb.ant.amazon.com (10.43.160.137) by EX13D03EUC003.ant.amazon.com (10.43.164.192) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Thu, 26 Aug 2021 12:01:04 +0000 To: Peter Eisentraut , Andres Freund CC: Ibrar Ahmed , Amit Khandekar , , Alvaro Herrera , tushar , "[pgdg] Robert Haas" , Rahila Syed , pgsql-hackers References: <20210407170954.xbovgh3xdrnogg7w@alap3.anarazel.de> <20210407203218.pestfxu7watrnog4@alap3.anarazel.de> <20210408034713.auf7oaxyymu2kc7n@alap3.anarazel.de> <26c6f320-98f0-253c-f8b5-df1e7c1f6315@amazon.com> <8d263a6b-a99f-0f9b-43ba-e8967c386f2b@amazon.com> <2feee395-959b-6d53-369a-c00f8f2fa6c5@amazon.com> <20210727172257.ekvkspdqaeh2etfg@alap3.anarazel.de> <69aad0bf-697a-04e1-df6c-0920ec8fa528@amazon.com> <20210802160133.uugcce5ql4m5mv5m@alap3.anarazel.de> <7094ac62-340f-9b23-3af6-e24fe08c8697@amazon.com> <47606911-cf44-5a62-21d5-366d3bc6e445@enterprisedb.com> From: "Drouvot, Bertrand" Message-ID: <46ec17a8-3c5d-7152-f6b0-ac122a5d0789@amazon.com> Date: Thu, 26 Aug 2021 14:00:59 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <47606911-cf44-5a62-21d5-366d3bc6e445@enterprisedb.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.43.160.137] X-ClientProxiedBy: EX13D36UWB003.ant.amazon.com (10.43.161.118) To EX13D03EUC003.ant.amazon.com (10.43.164.192) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Peter, On 8/26/21 1:35 PM, Peter Eisentraut wrote: > CAUTION: This email originated from outside of the organization. Do > not click links or open attachments unless you can confirm the sender > and know the content is safe. > > > > I noticed the tests added in this patch set are very slow.  Here are > some of the timings: > > ... > [13:26:59] t/018_wal_optimize.pl ................ ok    13976 ms > [13:27:13] t/019_replslot_limit.pl .............. ok    10976 ms > [13:27:24] t/020_archive_status.pl .............. ok     6190 ms > [13:27:30] t/021_row_visibility.pl .............. ok     3227 ms > [13:27:33] t/022_crash_temp_files.pl ............ ok     2296 ms > [13:27:36] t/023_pitr_prepared_xact.pl .......... ok     3601 ms > [13:27:39] t/024_archive_recovery.pl ............ ok     3937 ms > [13:27:43] t/025_stuck_on_old_timeline.pl ....... ok     4348 ms > [13:27:47] t/026_standby_logical_decoding.pl .... ok   117730 ms <<< > > Is it possible to improve this? Thanks for looking at it. Once the walsender race conditions mentioned by Andres in [1] are addressed then i think that the tests should be much more faster. I'll try to have a look soon and come with a proposal to address those race conditions. Thanks Bertrand [1]: https://www.postgresql.org/message-id/20210802160133.uugcce5ql4m5mv5m%40alap3.anarazel.de