pg_stat_gssapi — PostgreSQL statistics view

The PostgreSQL pg_stat_gssapi statistics view: full column reference (names, types, descriptions), catalog relationships and version support.

Summary

The pg_stat_gssapi view will contain one row per backend, showing information about GSSAPI usage on this connection. It can be joined to pg_stat_activity or pg_stat_replication on the pid column to get more details about the connection.

(Description quoted from the official PostgreSQL documentation.)

Columns

The pg_stat_gssapi statistics view exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):

  • pid integer
    Process ID of a backend
  • gss_authenticated boolean
    True if GSSAPI authentication was used for this connection
  • principal text
    Principal used to authenticate this connection, or NULL if GSSAPI was not used to authenticate this connection. This field is truncated if the principal is longer than NAMEDATALEN (64 characters in a standard build).
  • encrypted boolean
    True if GSSAPI encryption is in use on this connection
  • credentials_delegated boolean
    True if GSSAPI credentials were delegated on this connection.

Version applicability

Present in PostgreSQL 17, 18, 19 (verified against each release’s documentation). This is a long-standing system object that also exists in earlier PostgreSQL releases.

Related & references

Reference: PostgreSQL documentation — pg_stat_gssapi.