Harlequin
The SQL IDE for Your Terminal.
  • Get Started
  • Docs
  • Blog
  • About
  • Sponsor
  • GitHub icon
    tconbeer/harlequin
    GitHub stars6,365 GitHub forks170
  • Getting Started
    • Installing Harlequin
    • Running Harlequin
    • Using Harlequin
    • Using hsql
    • Getting Help
  • The hsql CLI
    • hsql Overview
    • Exit Codes and Streams
    • Exploring the Catalog
    • Formats and Layouts
    • Config Modes
    • Running Safely
    • Differences from psql
    • Reference: hsql CLI
    • The hsql Agent Skill
  • Agent Docs
  • Database Adapters
    • Adapters Overview
    • Adapter: DuckDB
      • DuckDB Basic Usage
      • Initialization Scripts
      • Loading Extensions
      • Transaction Handling
      • MotherDuck
    • Adapter: SQLite
      • SQLite Basic Usage
      • Initialization Scripts
      • Loading Extensions
      • Transaction Handling
    • Adapter: Postgres
      • Postgres Basic Usage
      • Multiple Databases
      • Transaction Handling
    • Adapter: Redshift
      • Redshift Basic Usage
      • Redshift Authentication
      • Redshift Data Catalog
    • Adapter: Snowflake
      • Snowflake Basic Usage
      • Snowflake Authentication
    • Adapter: MySQL/MariaDB
    • Adapter: ODBC
    • Adapter: BigQuery
      • BQ Installation and Configuration
      • Auth and Permissions
    • Adapter: Trino
    • Adapter: Databricks
      • Installation and Basic Usage
      • Initialization Scripts
    • Adapter: ADBC
    • Adapter: RisingWave
    • Adapter: Wherobots
    • Adapter: Cassandra
    • Adapter: NebulaGraph
    • Adapter: Exasol
    • Adapter: H2
  • Configuring Harlequin
    • Config Overview
    • Creating Config Files
    • Discovering Config Files
    • Selecting a Profile
  • Viewing Files
    • Files Overview
    • Local Files
    • Remote Objects (S3)
  • Choosing a Theme
  • Customizing Key Bindings
    • About Key Bindings
    • Creating a Keymap
    • Selecting Keymaps
  • Exporting Data
  • Managing Transactions
  • Reference: Default Bindings
  • Troubleshooting
    • Common Problems
    • Key Bindings
    • Copying and Pasting
    • Appearance
    • Locale
    • Windows Timezone Database
    • DuckDB Version Mismatch
    • Terminal Recommendations
  • Contributing to Harlequin
    • Ways to Contribute
    • Creating an Adapter

Multiple Databases

View as Markdown
GitHub icon
tconbeer/harlequin-postgres
GitHub stars20 GitHub forks6

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 ©2026. Icons by Icons8.