Skip to content
← Catalog atlas / pg_seclabels

SYSTEM VIEW · System view

pg_seclabels

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

First seen PG 9.1Last seen PG 19Columns 8

Checked column by column against a PostgreSQL 18.6 instance · Raw measurement record ↗

Columns PostgreSQL 18

pg_seclabels
COLUMNTYPEDESCRIPTION
objoid oid The OID of the object this security label pertains toReferences:any OID column
classoid oid The OID of the system catalog this object appears inReferences:pg_class.oid
objsubid integerDocumented as:int4 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.
objtype text The type of object to which this label applies, as text.
objnamespace oid The OID of the namespace for this object, if applicable; otherwise NULL.References:pg_namespace.oid
objname text The name of the object to which this label applies, as text.
provider text The label provider associated with this label.References:pg_seclabel.provider
label text The security label applied to this object.References:pg_seclabel.label

Columns marked "implicit" are not included in SELECT *; some early statistics views are completed from same-version source, and the extra provenance is shown in the column description.

Column evolution matrix

Hover a cell for the column type
PresentAdded / type or attribute changeRemoved
COLUMN9.09.19.29.39.49.59.610111213141516171819
objoid
classoid
objsubid
objtype
objnamespace
objname
provider
label

9.0 is the coverage baseline; a column already present in the baseline is not marked as added. The matrix aligns columns by name, so a rename appears as the old column removed and a new column added.

Evolution timeline

Changes between adjacent majors

PostgreSQL 9.1 ← 9.0Catalog added

+ objoid+ classoid+ objsubid+ objtype+ objnamespace+ objname+ provider+ label

Compare any two versions

Pick two versions to see added, removed, and retyped columns. The interactive comparison needs JavaScript; the evolution timeline reads fine without it.