From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Pól Ua Laoínecháin <linehanp(at)tcd(dot)ie> |
Cc: | PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: The order of postgresql.conf parameters is potentially confusing. Very minor cosmetic bug or "niggle"! |
Date: | 2021-09-01 16:35:54 |
Message-ID: | CAKFQuwZhWW4QE+_8SY5guJgpyb7t7Z=Q7QbQ=KP+jmjdQrogZQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Wed, Sep 1, 2021 at 9:11 AM Pól Ua Laoínecháin <linehanp(at)tcd(dot)ie> wrote:
> I used pgtune to configure my system and received the following
...
> min_wal_size = 1GB
> max_wal_size = 4GB
> ...
> max_worker_processes = 2
> max_parallel_workers_per_gather = 1
> max_parallel_workers = 2
> max_parallel_maintenance_workers = 1
> [...]
>
> Surely then, the max_parallel_workers parameter should appear before
> the two others which depend on it?
>
I agree with this premise.
> I realise that these are not show-stoppers but at least in the case of
> the max_wal_ and min_wal_ size parameters, the inversion is a source
> of cognitive dissonance which a simple swapping of their respective
> positions would solve.
>
>
If one considers importance or utility when deciding upon the order then
max coming before min is the correct order; it is surely more important to
clamp the maximum than it is to ensure some minimum amount is present as a
performance optimization. A minor point, but the status quo is also
alphabetical.
Apparently pgTune has its own way of determining order, which also isn't
alphabetical and doesn't, at least for the workers, match the supplied
logic. As the program of lesser importance it should be changed to match
what the server does, not vice-versa. IOW, I agree that the mixup
regarding max/min WAL is worthy of being avoided - but the change should be
in pgTune, not postgresql.conf.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-09-01 16:39:15 | Re: The order of postgresql.conf parameters is potentially confusing. Very minor cosmetic bug or "niggle"! |
Previous Message | Pól Ua Laoínecháin | 2021-09-01 16:11:08 | The order of postgresql.conf parameters is potentially confusing. Very minor cosmetic bug or "niggle"! |