select open change scope Open full search

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

Extensions / Security

set_user

similar to SET ROLE but with added logging

pgext.cloud · Source code · License text · Control file

Overview

Packageset_user
Version4.2.0
PostgreSQL versions14 · 15 · 16 · 17 · 18
RepositoryPGDG
Extension typePreloaded
Requires CREATE EXTENSIONYes
Requires preloadYes
TrustedNo
RelocatableNo
Shared librariesset_user
Stars78
Latest commit2026-06-05
Latest release2025-09-24
Catalogue updated2026-08-30

Related extensions

See also

pg_permissionsview object permissions and compare them with the desired state
login_hooklogin_hook - hook to execute login_hook.login() at login time
pg_auth_monmonitor connection attempts per user
pg_session_jwtManage authentication sessions using JWTs
auth_delaypause briefly before reporting authentication failure
pgauditprovides auditing functionality
pg_roastOpinionated PostgreSQL database auditor
pg_readonlycluster database read only
aclACL Data type
pg_command_fwDDL and utility command firewall for PostgreSQL