↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / System Catalogs

pg_seclabels

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

English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

kind
view
lang
en
measured attributes
true
metadata release
18.6
runtime columns
objoid, classoid, objsubid, objtype, objnamespace, objname, provider, label
runtime verified
false
source
english-manual

Definition PG 18

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

Catalog columns

ColumnTypeNullabilityDescription
objoidoidNullableThe OID of the object this security label pertains to
classoidoidNullableThe OID of the system catalog this object appears in
objsubidint4NullableFor 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.
objtypetextNullableThe type of object to which this label applies, as text.
objnamespaceoidNullableThe OID of the namespace for this object, if applicable; otherwise NULL.
objnametextNullableThe name of the object to which this label applies, as text.
providertextNullableThe label provider associated with this label.
labeltextNullableThe security label applied to this object.

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · catalog-bilingual-repair:f318d2f81907c1363e4dc15b1a5f1befbe8fbc006aa3defa6ce4d67de6b3b01a

Text language: en · catalog-bilingual-repair:f318d2f81907c1363e4dc15b1a5f1befbe8fbc006aa3defa6ce4d67de6b3b01a