🛠 This page is for engineering teams self-hosting their own Lightdash instance. If you want to connect your data warehouse, go to the Connect a project guide.
Lightdash requires a PostgreSQL database (version 12 or greater).
Configuration options for external database
configMap
Required pg extensions for external database
Lightdash requires the following extensions to be installed on the database:uuid-ossp- used for generating unique IDspgvector- required if you use an enterprise license key. Lightdash usespgvectorto store embeddings that power enterprise AI features (AI Analyst, AI agents, and related capabilities). Install it on your Postgres database before starting a licensed Lightdash instance — on managed services like AWS RDS, Google Cloud SQL, and Azure Database for PostgreSQL, enable thevectorextension in your instance’s configuration, then runCREATE EXTENSION IF NOT EXISTS vector;in the Lightdash database.
Migrations
Migrations are ran automatically on starting the Lightdash server or workers. When upgrading Lightdash, migrations will be ran automatically. If migrations fail due to a pg_lock error, check for a table calledknex_migrations_lock to manually release the lock.