[PATCH] pg_receivewal skip WAL file size checking

From: Sergey Sergey <ioxgrey(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] pg_receivewal skip WAL file size checking
Date: 2024-01-19 15:13:53
Message-ID: CAOC4_ypd-yf3rT9O_Sop5y95c5dnv6di-QN=ruzKvkgzncNXNg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

We have a huge amount of WAL files at backup site. A listing of the
directory takes several seconds. During startup pg_receivewal checks size
of all theus files. It does not check file integrity or gaps between
files. It takes several hours for our setup.
I have add an options that skip this file size checking. Default behavior
remains the same.
A patch looks huge due to large code block ident. Actually it consists of
option add and one if-branch.

Attachment Content-Type Size
pg_receivewal.16.diff text/x-patch 12.3 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Konstantin Knizhnik 2024-01-19 15:19:22 Re: index prefetching
Previous Message Daniel Gustafsson 2024-01-19 14:53:59 Re: initdb's -c option behaves wrong way?