Help › Connect to databases

Connect to PostgreSQL

What a PostgreSQL connection needs, how to sign in, and what is particular to PostgreSQL in Querlyn.

Querlyn 0.1.0 is not released yet. This help describes it ahead of release.

PostgreSQL is the database Querlyn supports most completely: every feature in this help works on it.

What you need

  • The server's host name and port (usually 5432).
  • The name of the database to open.
  • A user and its password, or a cloud sign-in (see Sign in).

Browsing tables in the sidebar needs PostgreSQL 12 or later.

Fill in the dialog

  1. Choose File › New Connection… and, under Database engine, PostgreSQL.
  2. Enter the Host. Port already says 5432.
  3. Enter the Database and the User.
  4. Enter the Password, or choose another place under Where the password is kept.
  5. Check TLS. For localhost it starts at Prefer; for any other host it starts at Verify full. See Encrypt a connection with TLS.
  6. Choose Test Connection, then Save & Connect.

If the server is not reachable from your computer, choose a Route; see Reach a database through SSH.

Sign in

Under AuthenticationUse it for
PasswordA database user with a password. A server that lets you in without one (trust in pg_hba.conf) works too: leave the password empty.
AWS IAMAmazon RDS and Aurora PostgreSQL with IAM database authentication.
Microsoft Entra IDAzure Database for PostgreSQL.

Sign in with AWS or Entra ID has the steps for the last two.

What is particular to PostgreSQL

  • A session per database. The sidebar lists every database of the server and marks the connection's own as current. A PostgreSQL session stays in the database it connected to, so a tab put on another database (in the bar above the editor, or by opening a table, a script or a definition from under that database) gets a session of its own there. See Choose a tab's connection and database.
  • Dates and binary values are shown one way. Querlyn sets its sessions to show dates in ISO form (2026-10-07), intervals in PostgreSQL's own style and bytea values as hex, whatever the server's defaults are.
  • Numbers are exact. A numeric value is shown as the server sent it, never rounded through a floating-point number.
  • Notices appear with the results. NOTICE and WARNING messages a statement raises are listed under Messages.
  • A script stops at the first error. When you run several statements, they run one after another, and the ones after a failed statement do not run.
  • Parameters are written $1 or :name. A ? is not a parameter in PostgreSQL (it is an operator), so Querlyn never asks for one.
  • Backups use PostgreSQL's own tools. Querlyn includes pg_dump and pg_restore, so there is nothing to install. See Back up and restore a database.
  • Schema changes are checked for locks. On PostgreSQL 10 and later, Querlyn marks an ALTER TABLE or CREATE INDEX that would make other sessions wait. See Migration lock warnings.

What Querlyn does not do

  • It does not show notifications from LISTEN and NOTIFY.
  • It does not read ~/.pgpass. A pg_service.conf file can be imported once; see Import connections.
  • Client certificates for signing in are not supported.

Help for Querlyn 0.1.0. All help topics