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):
pidinteger
Process ID of a backendgss_authenticatedboolean
True if GSSAPI authentication was used for this connectionprincipaltext
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).encryptedboolean
True if GSSAPI encryption is in use on this connectioncredentials_delegatedboolean
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.