BUG #17415: Unable to use underscore as first character in set_config custom parameter

The Post Office <noreply@postgresql.org>

From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: danielpolski@gmail.com
Date: 2022-02-23T08:36:19Z
Lists: pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17415
Logged by:          Daniel Polski
Email address:      danielpolski@gmail.com
PostgreSQL version: 14.2
Operating system:   Linux
Description:        

SELECT set_config('_foo.bar', 'foo', FALSE);

ERROR:  invalid configuration parameter name "_foo.bar"
DETAIL:  Custom parameter names must be two or more simple identifiers
separated by dots.
SQL state: 42602

(Works in 13.5-2)

Commits

  1. Re-allow underscore as first character of custom GUC names.

  2. Tighten up allowed names for custom GUC parameters.