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
- Choose and, under Database engine, PostgreSQL.
- Enter the Host. Port already says 5432.
- Enter the Database and the User.
- Enter the Password, or choose another place under Where the password is kept.
- Check TLS. For
localhostit starts at Prefer; for any other host it starts at Verify full. See Encrypt a connection with TLS. - 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 Authentication | Use it for |
|---|---|
| Password | A 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 IAM | Amazon RDS and Aurora PostgreSQL with IAM database authentication. |
| Microsoft Entra ID | Azure 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 andbyteavalues as hex, whatever the server's defaults are. - Numbers are exact. A
numericvalue is shown as the server sent it, never rounded through a floating-point number. - Notices appear with the results.
NOTICEandWARNINGmessages 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
$1or: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_dumpandpg_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 TABLEorCREATE INDEXthat would make other sessions wait. See Migration lock warnings.
What Querlyn does not do
- It does not show notifications from
LISTENandNOTIFY. - It does not read
~/.pgpass. Apg_service.conffile can be imported once; see Import connections. - Client certificates for signing in are not supported.
Help for Querlyn 0.1.0. All help topics