Re: pgsql: Prefetch data referenced by the WAL, take II.

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Thomas Munro <tmunro(at)postgresql(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgsql: Prefetch data referenced by the WAL, take II.
Date: 2022-09-12 21:50:54
Message-ID: CA+hUKGJ9wP9kpvgoxHvqA=4g1d9-y_w3LhhdhFVU=mFiqjwHww@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Sun, Sep 4, 2022 at 7:54 PM Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> wrote:
> On 2022-Apr-07, Thomas Munro wrote:
> I propose a small wording change in guc.c,
>
> diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
> index 9fbbfb1be5..9803741708 100644
> --- a/src/backend/utils/misc/guc.c
> +++ b/src/backend/utils/misc/guc.c
> @@ -2840,7 +2840,7 @@ static struct config_int ConfigureNamesInt[] =
> {
> {"wal_decode_buffer_size", PGC_POSTMASTER, WAL_RECOVERY,
> gettext_noop("Maximum buffer size for reading ahead in the WAL during recovery."),
> - gettext_noop("This controls the maximum distance we can read ahead in the WAL to prefetch referenced blocks."),
> + gettext_noop("This controls the maximum distance we can read ahead in the WAL to prefetch data blocks referenced therein."),
> GUC_UNIT_BYTE
> },
> &wal_decode_buffer_size,
>
> "referenced blocks" seems otherwise a bit unclear to me. Other wording
> suggestions welcome. I first thought of "...to prefetch referenced data
> blocks", which is probably OK too.

I'd go for your second suggestion. 'therein' doesn't convey much (we
already said 'in the WAL', and therein is just a slightly formal and
somehow more Germanic way of saying 'in it' which is kinda
duplicative; maybe 'by it' is what we want but that's still kinda
implied already), whereas adding 'data' makes it slightly clearer that
it's blocks from relations and not, say, the WAL itself.

Also, hmm, it's not really the 'Maximum buffer size', it's the 'Buffer size'.

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2022-09-12 23:04:26 pgsql: Don't reference out-of-bounds array elements in brin_minmax_mult
Previous Message Daniel Gustafsson 2022-09-12 20:28:31 pgsql: doc: Fix link to FreeBSD documentation project

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2022-09-12 21:51:56 Re: Error "initial slot snapshot too large" in create replication slot
Previous Message Jacob Champion 2022-09-12 21:39:16 Re: Pluggable toaster