Re: Reorganize GUC structs - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Reorganize GUC structs
Date
Msg-id 043d2aa7-6ad9-4833-9b63-15b45b68ccee@eisentraut.org
Whole thread Raw
In response to Re: Reorganize GUC structs  (Álvaro Herrera <alvherre@kurilemu.de>)
List pgsql-hackers
On 13.10.25 13:39, Álvaro Herrera wrote:
> I agree that keeping the guc_parameters.dat file alphabetically sorted
> by default would keep the maintenance cost lowest, because we won't have
> to make any subjective decisions for new entries.  However, automatically
> generating the .sample file sounds impractical, considering the
> free-form comments that we currently have there.

Yes, I'm not sure if it's practical in the fullest extent.  But there 
were at various points discussions about alternative layouts and 
contents for postgresql.conf.sample, with a lot of opinions.  With this 
new framework, I think it might be interesting to experiment.  Which is 
why I mentioned it.

> I think instead of that mess, maybe we can simply keep the sample file
> as-is, cross-check that a line for each non-hidden GUC variable exists,
> and perhaps that the commented-out default value matches the data file.

Those would certainly be reasonable near-term steps.



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Add log_autovacuum_{vacuum|analyze}_min_duration
Next
From: Xuneng Zhou
Date:
Subject: Re: Implement waiting for wal lsn replay: reloaded