|
238 | 238 | <entry>comments on shared objects</entry>
|
239 | 239 | </row>
|
240 | 240 |
|
| 241 | + <row> |
| 242 | + <entry><link linkend="catalog-pg-shseclabel"><structname>pg_shseclabel</structname></link></entry> |
| 243 | + <entry>security labels on shared database objects</entry> |
| 244 | + </row> |
| 245 | + |
241 | 246 | <row>
|
242 | 247 | <entry><link linkend="catalog-pg-statistic"><structname>pg_statistic</structname></link></entry>
|
243 | 248 | <entry>planner statistics</entry>
|
|
4681 | 4686 | way to view security labels, see <xref linkend="view-pg-seclabels">.
|
4682 | 4687 | </para>
|
4683 | 4688 |
|
| 4689 | + <para> |
| 4690 | + See also <link linkend="catalog-pg-shseclabel"><structname>pg_shseclabel</structname></link>, |
| 4691 | + which performs a similar function for security labels of database objects |
| 4692 | + that are shared across a database cluster. |
| 4693 | + </para> |
| 4694 | + |
4684 | 4695 | <table>
|
4685 | 4696 | <title><structname>pg_seclabel</structname> Columns</title>
|
4686 | 4697 |
|
|
4959 | 4970 |
|
4960 | 4971 | </sect1>
|
4961 | 4972 |
|
| 4973 | + <sect1 id="catalog-pg-shseclabel"> |
| 4974 | + <title><structname>pg_shseclabel</structname></title> |
| 4975 | + |
| 4976 | + <indexterm zone="catalog-pg-shseclabel"> |
| 4977 | + <primary>pg_shseclabel</primary> |
| 4978 | + </indexterm> |
| 4979 | + |
| 4980 | + <para> |
| 4981 | + The catalog <structname>pg_shseclabel</structname> stores security |
| 4982 | + lables on shared database objects. Security labels can be manipulated |
| 4983 | + with the <xref linkend="sql-security-label"> command. For an easier |
| 4984 | + way to view security labels, see <xref linkend="view-pg-seclabels">. |
| 4985 | + </para> |
| 4986 | + |
| 4987 | + <para> |
| 4988 | + See also <link linkend="catalog-pg-seclabel"><structname>pg_seclabel</structname></link>, |
| 4989 | + which performs a similar function for security labels involving objects |
| 4990 | + within a single database. |
| 4991 | + </para> |
| 4992 | + |
| 4993 | + <para> |
| 4994 | + Unlike most system catalogs, <structname>pg_shseclabel</structname> |
| 4995 | + is shared across all databases of a cluster: there is only one |
| 4996 | + copy of <structname>pg_shseclabel</structname> per cluster, not |
| 4997 | + one per database. |
| 4998 | + </para> |
| 4999 | + |
| 5000 | + <table> |
| 5001 | + <title><structname>pg_shseclabel</structname> Columns</title> |
| 5002 | + <tgroup cols="4"> |
| 5003 | + <thead> |
| 5004 | + <row> |
| 5005 | + <entry>Name</entry> |
| 5006 | + <entry>Type</entry> |
| 5007 | + <entry>References</entry> |
| 5008 | + <entry>Description</entry> |
| 5009 | + </row> |
| 5010 | + </thead> |
| 5011 | + <tbody> |
| 5012 | + <row> |
| 5013 | + <entry><structfield>objoid</structfield></entry> |
| 5014 | + <entry><type>oid</type></entry> |
| 5015 | + <entry>any OID column</entry> |
| 5016 | + <entry>The OID of the object this security label pertains to</entry> |
| 5017 | + </row> |
| 5018 | + <row> |
| 5019 | + <entry><structfield>classoid</structfield></entry> |
| 5020 | + <entry><type>oid</type></entry> |
| 5021 | + <entry><literal><link linkend="catalog-pg-class"><structname>pg_class</structname></link>.oid</literal></entry> |
| 5022 | + <entry>The OID of the system catalog this object appears in</entry> |
| 5023 | + </row> |
| 5024 | + <row> |
| 5025 | + <entry><structfield>provider</structfield></entry> |
| 5026 | + <entry><type>name</type></entry> |
| 5027 | + <entry></entry> |
| 5028 | + <entry>The label provider associated with this label.</entry> |
| 5029 | + </row> |
| 5030 | + <row> |
| 5031 | + <entry><structfield>label</structfield></entry> |
| 5032 | + <entry><type>text</type></entry> |
| 5033 | + <entry></entry> |
| 5034 | + <entry>The security label applied to this object.</entry> |
| 5035 | + </row> |
| 5036 | + </tbody> |
| 5037 | + </tgroup> |
| 5038 | + </table> |
| 5039 | + </sect1> |
4962 | 5040 |
|
4963 | 5041 | <sect1 id="catalog-pg-statistic">
|
4964 | 5042 | <title><structname>pg_statistic</structname></title>
|
|
0 commit comments