aboutsummaryrefslogtreecommitdiff
path: root/contrib/jsonb_plpython/jsonb_plpython2u.control
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-12-01 15:07:29 +0100
committerPeter Eisentraut <peter@eisentraut.org>2021-12-01 15:08:32 +0100
commit75d22069e00d638d08c04e3aba71688f3fb002ed (patch)
tree3028da6a040f1c83604f95afbd4891a820605d21 /contrib/jsonb_plpython/jsonb_plpython2u.control
parentc3b34a0ff4a00d00d6ea364c85201e155ca7ef6b (diff)
downloadpostgresql-75d22069e00d638d08c04e3aba71688f3fb002ed.tar.gz
postgresql-75d22069e00d638d08c04e3aba71688f3fb002ed.zip
Warning on SET of nonexisting setting with a prefix reserved by an extension
An extension can already de facto reserve a GUC prefix using EmitWarningsOnPlaceholders(). But this was only checked against settings that exist at the time the extension is loaded (or the extension chooses to call this). No diagnostic is given when a SET command later uses a nonexisting setting with a custom prefix. With this change, EmitWarningsOnPlaceholders() saves the prefixes it reserves in a list, and SET checks when it finds a "placeholder" setting whether it belongs to a reserved prefix and issues a warning in that case. Add a regression test that checks the patch using the "plpgsql" registered prefix. Author: Florin Irion <florin.irion@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/flat/CA+HEvJDhWuuTpGTJT9Tgbdzm4QS4EzPAwDBScWK18H2Q=FVJFw@mail.gmail.com
Diffstat (limited to 'contrib/jsonb_plpython/jsonb_plpython2u.control')
0 files changed, 0 insertions, 0 deletions