Commit 5c25fd65 authored by Peter Eisentraut's avatar Peter Eisentraut

doc: Simplify COMMENT and SECURITY LABEL documentation

Just say that objects that reside in schemas can be schema-qualified.
Don't list all possible such objects.  The existing lists weren't
complete anyway.

Discussion: https://www.postgresql.org/message-id/flat/b2ec2234-67fe-d861-5cea-f526cd18c086%40enterprisedb.com
parent 01ddd2f7
...@@ -129,10 +129,8 @@ COMMENT ON ...@@ -129,10 +129,8 @@ COMMENT ON
<term><replaceable class="parameter">trigger_name</replaceable></term> <term><replaceable class="parameter">trigger_name</replaceable></term>
<listitem> <listitem>
<para> <para>
The name of the object to be commented. Names of tables, The name of the object to be commented. Names of objects that reside in
aggregates, collations, conversions, domains, foreign tables, functions, schemas (tables, functions, etc.) can be
indexes, operators, operator classes, operator families, procedures, routines, sequences,
statistics, text search objects, types, and views can be
schema-qualified. When commenting on a column, schema-qualified. When commenting on a column,
<replaceable class="parameter">relation_name</replaceable> must refer <replaceable class="parameter">relation_name</replaceable> must refer
to a table, view, composite type, or foreign table. to a table, view, composite type, or foreign table.
......
...@@ -99,9 +99,8 @@ SECURITY LABEL [ FOR <replaceable class="parameter">provider</replaceable> ] ON ...@@ -99,9 +99,8 @@ SECURITY LABEL [ FOR <replaceable class="parameter">provider</replaceable> ] ON
<term><replaceable class="parameter">routine_name</replaceable></term> <term><replaceable class="parameter">routine_name</replaceable></term>
<listitem> <listitem>
<para> <para>
The name of the object to be labeled. Names of tables, The name of the object to be labeled. Names of objects that reside in
aggregates, domains, foreign tables, functions, procedures, routines, sequences, types, and schemas (tables, functions, etc.) can be schema-qualified.
views can be schema-qualified.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment