Installing the agent for PostgreSQL
Add the server with engine PostgreSQL and run the command with --engine postgres.
The installer creates a sqlnirvana role with pg_monitor, adds a pg_hba.conf rule for local connections, enables pg_stat_statements if it can, and starts sqlnirvana-agent-pg.
- PostgreSQL 14 to 18 are supported. PostgreSQL 14 reaches end of life in November 2026.
pg_stat_statementsneedsshared_preload_librariesand one restart; the installer tells you if that's still pending.- With
--apply(PostgreSQL 15+), approved settings are applied withALTER SYSTEMandpg_reload_conf().