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

index 0d545d0401499b240c410055186af6cbc280c2eb..38f09327d8814c33e79a0ff1b15d5d92ff54644b 100644 (file)
@@ -8250,9 +8250,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 23f5166341213249669663ea6b06065e3f2c529d..41f46491edb75f726292cd76f01c613ee1886854 100644 (file)
@@ -4214,7 +4214,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
        },