0

Where can I find the list of characters which are valid for PostgreSQL configuration parameter names? By trial and error I found that '.' and '_' are valid, but ':' isn't. Quoting doesn't seem to help.

set claims.custom_id to asdf; -- accepted
set "claims.custom:id" to asdf; -- invalid configuration parameter name

The PostgreSQL docs don't seem to cover this point - https://www.postgresql.org/docs/current/config-setting.html

asked Jun 7, 2022 at 10:27

1 Answer 1

3

This is a breaking change introduced in PostgreSQL 14: Require custom server parameter names to use only characters that are valid in unquoted SQL identifiers (Tom Lane)

https://www.postgresql.org/docs/14/release-14.html

The rationale is given here:

https://www.postgresql.org/docs/14/runtime-config-custom.html

answered Jun 7, 2022 at 10:51

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.