Re-allow custom GUC names that have more than two components.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 2 Jun 2021 22:50:15 +0000 (18:50 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 2 Jun 2021 22:50:23 +0000 (18:50 -0400)
commit2955c2be79b35fa369c83fa3b5f44661cb88afa9
tree061cd7a9b9c0bedf03d43d34cd5edd11d213e256
parent8e03eb92e9ad54e2f1ed8b5a73617601f6262f81
Re-allow custom GUC names that have more than two components.

Commit 3db826bd5 disallowed this case, but it turns out that some
people are depending on it.  Since the core grammar has allowed
it since 3dc37cd8d, it seems like this code should fall in line.

Per bug #17045 from Robert Sosinski.

Discussion: https://postgr.es/m/17045-6a4a9f0d1513f72b@postgresql.org
src/backend/utils/misc/guc.c
src/test/regress/expected/guc.out
src/test/regress/sql/guc.sql