Postgres personal access ΒΆ

The nais postgres psql and nais postgres proxy commands grant your personal user temporary access to a Postgres database. For usage, see Connect to Postgres as a personal user.

Audit logging ΒΆ

Audit logging is enabled automatically for personal database users. It is disabled for workload users.

The platform configures these pgAudit parameters:

ini

These settings log:

  • Reads, writes, schema changes and role changes
  • Each relation referenced by a read or write statement separately
  • SQL parameter values

Access levels ΒΆ

LevelAllows
readRead data (default)
writeChange data
adminApplication database owner privileges
maintainInstance monitoring and maintenance through pg_monitor and pg_maintain

--access-level <LEVEL> selects the access level.

Access flags ΒΆ

FlagDescription
--reasonReason for the access, minimum 10 characters. Prompted interactively if omitted
--ttlHow long the access lasts. Default 30 minutes, maximum 1 hour