Re: O(n^2) system calls in RemoveOldXlogFiles()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: O(n^2) system calls in RemoveOldXlogFiles()
Date: 2021-01-12 07:27:40
Message-ID: X/1PbGlG6iW6L4Mf@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 12, 2021 at 07:15:21PM +1300, Thomas Munro wrote:
> Hah, I even knew that, apparently, but forgot. Adding Michael who
> wrote a patch. It'd be nice to fix this, at least in 14.

Yeah, this rings a bell. I never went back to it even if the thing
looks rather clean at quick glance (not tested), but I may be able
to spend some cycles on that. I don't think that's critical enough
for a backpatch, so doing something only on HEAD is fine by me.
What's your take?
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Luc Vlaming 2021-01-12 08:03:33 Re: New Table Access Methods for Multi and Single Inserts
Previous Message tsunakawa.takay@fujitsu.com 2021-01-12 07:22:49 RE: Disable WAL logging to speed up data loading