Re: Reorganize GUC structs

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, Álvaro Herrera <alvherre@kurilemu.de>, John Naylor <johncnaylorls@gmail.com>
Date: 2025-11-07T08:44:22Z
Lists: pgsql-hackers

Attachments

On 03.11.25 12:16, Peter Eisentraut wrote:
> The remaining patches to sort the list alphabetically have also been 
> pushed.

Here are a few more small patches to fix related things I found 
afterwards or in passing.

The first one straightens out how the qsort comparison function for GUC 
records works, and also removes the implicit requirement that the name 
field is first in the struct.

The second one fixes up an NLS build rule for the recent changes.

The third fixes some translation markers.  This is an older problem.

Commits

  1. Remove extraneous newlines from guc_parameters.dat

  2. Fix NLS for incorrect GUC enum value hint message

  3. Clean up qsort comparison function for GUC entries

  4. Sort guc_parameters.dat alphabetically by name

  5. Reorganize GUC structs

  6. Change config_generic.vartype to be initialized at compile time

  7. Use designated initializers for guc_tables

  8. Change reset_extra into a config_generic common field

  9. Add some const qualifiers

  10. Modernize some for loops