Re: [PATCH] Introduce unified support for composite GUC options

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Чумак Антон <a(dot)chumak(at)postgrespro(dot)ru>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] Introduce unified support for composite GUC options
Date: 2025-09-23 04:50:45
Message-ID: CAKFQuwYJmBanaiU3VPMfSE+b8CfKeMMfGFXd9npKMMmbA7oiaw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Sep 22, 2025 at 10:33 PM Чумак Антон <a(dot)chumak(at)postgrespro(dot)ru>
wrote:

> Working with parameters is not limited to working within a session,
> otherwise the PGC_INTERNAL, PGC_POSTMASTER, and PGC_SIGHUP contexts would
> not be needed. My patch provides unified support for composite types and
> within such contexts. Example: you have a composite boot value and in the
> postgresql.conf file you need to change only 2 fields, and you need to do
> this at the same time to maintain the consistency of the structure. Now you
> would have to describe all the fields in one big line, and with the patch
> you can only describe the changed fields.
>
You might wish to try an approach where people who do think such a thing
might be useful can voice their support for it rather than trying to
convince people who don't presently see any immediate use cases that there
are some (without saying what those use cases are...).

In short - post to -general.

As you note - moving runtime checks to "SET" time has value and this patch
brings that value. But it is not evident there is enough value to take on
the added complexity. There are few to no requests asking for this ability.

David J.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message shveta malik 2025-09-23 04:59:18 Re: Improve pg_sync_replication_slots() to wait for primary to advance
Previous Message Pavel Stehule 2025-09-23 04:39:28 Re: [PATCH] Introduce unified support for composite GUC options