Switches n8n from its default SQLite file to a PostgreSQL database on localhost, with the database, user, and password given. Every DB_POSTGRESDB_* variable must match a real Postgres setup, and the database must exist before startup. Postgres is the recommended database for production and queue mode.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.