Re: gen_guc_tables.pl: Validate required GUC fields before code generation - Mailing list pgsql-hackers

From Chao Li
Subject Re: gen_guc_tables.pl: Validate required GUC fields before code generation
Date
Msg-id CAEoWx2ksUC-PW4VKAA5uGit1KyH3qCmJ5xMiMwUheSUUWtzKcw@mail.gmail.com
Whole thread Raw
In response to Re: gen_guc_tables.pl: Validate required GUC fields before code generation  (Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>)
List pgsql-hackers

On Wed, Nov 19, 2025 at 7:56 PM Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> wrote:

> v3 goes back to v1 plus I add a check for unknown field type per your
> suggestion, for example:
> ```
> error: guc_parameters.data line 2271: unknown GUC type 'intt'
> ```

We've already validated that the name field exists, so this error
message should include that, like the other ones do.

Make sense. I added field name to this error message in v4, now it looks like:
```
error: guc_parameters.dat line 2278: 'primary_conninfo' has unknown GUC type 'string1'
``` 

Chao Li (Evan)
---------------------
HighGo Software Co., Ltd.
Attachment

pgsql-hackers by date:

Previous
From: Илья Чердаков
Date:
Subject: Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions
Next
From: Haruna Miwa
Date:
Subject: Re: Add MERGE and VALUES statements to tab completion for PREPARE