Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtTfy-00042C-9c for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Feb 2019 08:44:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gtTfw-0005qr-24 for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Feb 2019 08:44:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtTfv-0005qj-Nt for pgsql-hackers@lists.postgresql.org; Tue, 12 Feb 2019 08:44:19 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gtTfs-0005Yj-RM for pgsql-hackers@lists.postgresql.org; Tue, 12 Feb 2019 08:44:19 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 38E6021C84D1; Tue, 12 Feb 2019 11:44:15 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from [192.168.27.237] (gw.postgrespro.ru [93.174.131.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 0C92221C8475; Tue, 12 Feb 2019 11:44:15 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1549961055; bh=nfmVrxcleAoyUsf6nKqB4vuyq031Av4CUh62q8jucy8=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=mw+x8VOQqa8P7bVko8T72u2YzHy8/UC2wdJdvbZyGpa5JRCQK2bN1ZtYwLmrtX4eB HHgQ16GB/uUIIZpoiXXKjfodZwALHLuHYjFZu/sIm6RrN1yBB6lWRFuCnbZidgDG5b Pfx/57K2NfdllUbTRxWeMysLUz1NxGcdShCv1Mtw= Subject: Re: [PATCH] xlogreader: do not read a file block twice To: Michael Paquier , Grigory Smolkin Cc: pgsql-hackers@lists.postgresql.org References: <2ddf4a32-517e-d6f4-d992-4a63b6035bfd@postgrespro.ru> <87e30af6-f85a-dc95-4574-95cded028786@postgrespro.ru> <20190212042300.GL1475@paquier.xyz> From: Arthur Zakirov Message-ID: <1fa0c9fe-32a5-3ebd-e9c2-b5e2c9abc03e@postgrespro.ru> Date: Tue, 12 Feb 2019 11:44:14 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190212042300.GL1475@paquier.xyz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12.02.2019 07:23, Michael Paquier wrote: >> On 02/11/2019 07:25 PM, Arthur Zakirov wrote: >>> Grigory noticed that one of our utilities has very slow performance when >>> xlogreader reads zlib archives. We found out that xlogreader sometimes >>> reads a WAL file block twice. >>> >>> What do you think? > > I think that such things, even if they look simple, need a careful > lookup, and I have not looked at the proposal yet. Could you add it > to the next commit fest so as we don't lose track of it? > https://commitfest.postgresql.org/22/ Of course. Agree, it may be a non trivial case. Added as a bug fix: https://commitfest.postgresql.org/22/1994/ -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company