Re: [PATCH] xlogreader: do not read a file block twice
Artur Zakirov <a.zakirov@postgrespro.ru>
From: Arthur Zakirov <a.zakirov@postgrespro.ru>
To: Michael Paquier <michael@paquier.xyz>,
Grigory Smolkin <g.smolkin@postgrespro.ru>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2019-02-12T08:44:14Z
Lists: pgsql-hackers
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
Commits
-
Avoid some unnecessary block reads in WAL reader
- 0dd6ff0ac848 12.0 landed
-
Split out XLog reading as an independent facility
- 7fcbf6a405ff 9.3.0 cited
-
Make standby server continuously retry restoring the next WAL segment with
- 1bb2558046cc 9.0.0 cited