Harlequin
The SQL IDE for Your Terminal.
  • Get Started
  • Docs
  • Blog
  • About
  • Sponsor
  • GitHub icon
    tconbeer/harlequin
    GitHub stars4,543 GitHub forks102
  • Chevron
  • Chevron
  • Installing Harlequin
  • Running Harlequin
  • Using Harlequin
  • Getting Help
  • Database Adapters
  • Chevron
  • Files Overview
  • Local Files
  • Remote Objects (S3)
  • Choosing a Theme
  • Chevron
  • Config Overview
  • Creating Config Files
  • Discovering Config Files
  • Selecting a Profile
  • Chevron
  • About Key Bindings
  • Creating a Keymap
  • Selecting Keymaps
  • Exporting Data
  • Managing Transactions
  • Chevron
  • DuckDB Basic Usage
  • Initialization Scripts
  • Loading Extensions
  • Transaction Handling
  • MotherDuck
  • Chevron
  • SQLite Basic Usage
  • Initialization Scripts
  • Loading Extensions
  • Transaction Handling
  • Chevron
  • Postgres Basic Usage
  • Multiple Databases
  • Transaction Handling
  • Adapter: MySQL
  • Adapter: ODBC
  • Chevron
  • BQ Installation and Configuration
  • Auth and Permissions
  • Adapter: Trino
  • Chevron
  • Installation and Basic Usage
  • Initialization Scripts
  • Adapter: ADBC
  • Adapter: RisingWave
  • Adapter: Wherobots
  • Adapter: Cassandra
  • Adapter: NebulaGraph
  • Adapter: Exasol
  • Reference: Default Bindings
  • Chevron
  • Common Problems
  • Key Bindings
  • Copying and Pasting
  • Appearance
  • Locale
  • Windows Timezone Database
  • DuckDB Version Mismatch
  • Terminal Recommendations
  • Chevron
  • Ways to Contribute
  • Creating an Adapter

Multiple Databases

GitHub icon
tconbeer/harlequin-postgres
GitHub stars15 GitHub forks3

Currently, the Postgres adapter only supports connections to a single database at a time. To connect to a different database, exit Harlequin and restart it, passing a different DSN, or using the -d option to pass a different database name (the -d option overrides the database name in the DSN if it is provided).

Previous:

Postgres Basic Usage

Next:

Transaction Handling

  • Docs
  • Blog
  • About
  • GitHub

Shandy Data LLC ©2025. Icons by Icons8.