PostgreSQL 18 · Connecting

Connect with a connection URI

Open psql using a single connection string.

psql "postgresql://postgres@localhost:5432/mydb"

Official PostgreSQL 18 documentation

More connecting commands

All connecting commands · PostgreSQL 18 cheatsheet

Was this page helpful?