47.68. pg_seclabels

Note: The following description applies both to Postgres-XC and PostgreSQL if not described explicitly. You can read PostgreSQL as Postgres-XC except for version number, which is specific to each product.

The view pg_seclabels provides information about security labels. It as an easier-to-query version of the pg_seclabel catalog.

Table 47-69. pg_seclabels Columns

NameTypeReferencesDescription
objoidoidany OID columnThe OID of the object this security label pertains to
classoidoidpg_class.oidThe OID of the system catalog this object appears in
objsubidint4  For a security label on a table column, this is the column number (the objoid and classoid refer to the table itself). For all other object types, this column is zero.
objtypetext  The type of object to which this label applies, as text.
objnamespaceoidpg_namespace.oid The OID of the namespace for this object, if applicable; otherwise NULL.
objnametext  The name of the object to which this label applies, as text.
providertextpg_seclabel.providerThe label provider associated with this label.
labeltextpg_seclabel.labelThe security label applied to this object.