Skip to main content
The database connection page contains the host, port, username, database name, and connection string for your PostgreSQL instance.

Connection string

A PostgreSQL connection string usually looks like this:
Set it as an environment variable in your application:

Test with psql

Run a simple query:

TLS

Use TLS for application connections. If your framework supports sslmode=require, keep it enabled in production.

Application examples

Treat database passwords like secrets. Do not commit connection strings to Git.