| Документация по PostgreSQL 9.4.1 | |||
|---|---|---|---|
| Пред. | Уровень выше | Глава 48. Системные каталоги | След. |
48.43. pg_shseclabel
В каталоге pg_shseclabel хранятся метки безопасности для глобальных объектов баз данных. Управлять метками безопасности можно с помощью команды SECURITY LABEL. Более простой способ просмотра меток безопасности описан в Разделе 48.66.
Также смотрите каталог pg_seclabel, который играет подобную роль в отношении меток безопасности объектов в одной базе данных.
В отличие от большинства системных каталогов, pg_shseclabel разделяется всеми базами данных кластера: есть только один экземпляр pg_shseclabel в кластере, а не отдельные в каждой базе данных.
Таблица 48-43. Колонки pg_shseclabel
| Имя | Тип | Ссылки | Описание |
|---|---|---|---|
| objoid | oid | любая колонка OID | OID объекта, к которому относится эта метка безопасности |
| classoid | oid | pg_class.oid | OID системного каталога, к которому относится этот объект |
| provider | text | Поставщик меток безопасности, связанный с этой меткой. | |
| label | text | Метка безопасности, применённая к этому объекту. |
| Пред. | Начало | След. |
| pg_shdescription | Уровень выше | pg_statistic |
| PostgreSQL 9.4.1 Documentation | |||
|---|---|---|---|
| Prev | Up | Chapter 48. System Catalogs | Next |
48.43. pg_shseclabel
The catalog pg_shseclabel stores security labels on shared database objects. Security labels can be manipulated with the SECURITY LABEL command. For an easier way to view security labels, see Section 48.66.
See also pg_seclabel, which performs a similar function for security labels involving objects within a single database.
Unlike most system catalogs, pg_shseclabel is shared across all databases of a cluster: there is only one copy of pg_shseclabel per cluster, not one per database.
Table 48-43. pg_shseclabel Columns
| Name | Type | References | Description |
|---|---|---|---|
| objoid | oid | any OID column | The OID of the object this security label pertains to |
| classoid | oid | pg_class.oid | The OID of the system catalog this object appears in |
| provider | text | The label provider associated with this label. | |
| label | text | The security label applied to this object. |