Clarify restrict_nonsystem_relation_kind description.
authorMasahiko Sawada <[email protected]>
Fri, 30 Aug 2024 22:06:09 +0000 (15:06 -0700)
committerMasahiko Sawada <[email protected]>
Fri, 30 Aug 2024 22:06:09 +0000 (15:06 -0700)
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

doc/src/sgml/config.sgml
src/backend/utils/misc/guc_tables.c

index 12feac608743099fa63f6f8bd06e3d6275d87d48..0aec11f443212d2a53609423d263071116372cd2 100644 (file)
@@ -9818,9 +9818,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>
index 880d76aae0f92f48edbaeefb6f396c91df76674f..521ec5591c8ffb9d1f613b1f6b899207f6355838 100644 (file)
@@ -4774,7 +4774,7 @@ 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
        },