]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Add oauth_validator_libraries to variable_is_guc_list_quote
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Sat, 27 Dec 2025 22:05:48 +0000 (23:05 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Sat, 27 Dec 2025 22:05:48 +0000 (23:05 +0100)
The variable_is_guc_list_quote function need to know about all
GUC_QUOTE variables, this adds oauth_validator_libraries which
was missing.  Backpatch to v18 where OAuth was introduced.

Author: ChangAo Chen <cca5507@qq.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/tencent_03D4D2A5C0C8DCE0CD1DB4D945858E15420A@qq.com
Backpatch-through: 18

src/bin/pg_dump/dumputils.c

index 2d22723aa9112431e86044d3aec4695c69e42095..eca479c46e12d09252af342d1bb69dd522071146 100644 (file)
@@ -730,6 +730,7 @@ bool
 variable_is_guc_list_quote(const char *name)
 {
        if (pg_strcasecmp(name, "local_preload_libraries") == 0 ||
+               pg_strcasecmp(name, "oauth_validator_libraries") == 0 ||
                pg_strcasecmp(name, "search_path") == 0 ||
                pg_strcasecmp(name, "session_preload_libraries") == 0 ||
                pg_strcasecmp(name, "shared_preload_libraries") == 0 ||