diff options
author | Masahiko Sawada <msawada@postgresql.org> | 2024-08-30 15:05:57 -0700 |
---|---|---|
committer | Masahiko Sawada <msawada@postgresql.org> | 2024-08-30 15:05:57 -0700 |
commit | 187d8bb1a3156f055fe1d362f4a0162d64aacd1d (patch) | |
tree | 786548ac57619092c0a8e9cd5961fa9467f5ff4e | |
parent | 7589d5c5b98dee21541214950d8a303c6979dd78 (diff) |
Clarify restrict_nonsystem_relation_kind description.
This change improves the description of the
restrict_nonsystem_relation_kind parameter in guc_table.c and the
documentation for better clarity.
Backpatch to 12, where this GUC parameter was introduced.
Reviewed-by: Peter Eisentraut
Discussion: https://postgr.es/m/6a96f1af-22b4-4a80-8161-1f26606b9ee2%40eisentraut.org
Backpatch-through: 12
-rw-r--r-- | doc/src/sgml/config.sgml | 6 | ||||
-rw-r--r-- | src/backend/utils/misc/guc.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 7aa683c166f..c96166794d4 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -8590,9 +8590,9 @@ SET XML OPTION { DOCUMENT | CONTENT }; </term> <listitem> <para> - This variable specifies relation kind to which access is restricted. - It contains a comma-separated list of relation kind. Currently, the - supported relation kinds are <literal>view</literal> and + Set relation kinds for which access to non-system relations is prohibited. + The value takes the form of a comma-separated list of relation kinds. + Currently, the supported relation kinds are <literal>view</literal> and <literal>foreign-table</literal>. </para> </listitem> diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 18669ffb4ad..da19abaf33a 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -4445,7 +4445,7 @@ static struct config_string ConfigureNamesString[] = { {"restrict_nonsystem_relation_kind", PGC_USERSET, CLIENT_CONN_STATEMENT, - gettext_noop("Sets relation kinds of non-system relation to restrict use"), + gettext_noop("Prohibits access to non-system relations of specified kinds."), NULL, GUC_LIST_INPUT | GUC_NOT_IN_SAMPLE }, |