Help › Watch and manage the server
See what Querlyn sends
Open the statement console to watch what Querlyn sends to a database, its own statements included, and know what the console keeps and hides.
Querlyn 0.1.0 is not released yet. This help describes it ahead of release.
Querlyn does more on a database than run your statements: it reads the names of your tables, applies row edits, checks for locks. The statement console lists all of it, as it happens, so you can see exactly what a database received from Querlyn.
Nothing in the console runs anything. It only shows.
Open the console
Press ⌃` on macOS or Ctrl+` on Windows and Linux (), or choose Console at the right of the status bar. The console opens under the tab. The same keys put the keyboard in it when it is open, and hide it when the keyboard is already there. ⎋ on macOS or Esc on Windows and Linux hides it too.
Drag its top edge to make it taller or shorter, or use and .
Statements are recorded whether or not the console is open, so opening it shows what just happened. opens the console and puts the keyboard in its list.
Read the list
Each row is one request to the database:
| Column | Meaning |
|---|---|
| Time | When it was sent. |
| Source | Why it was sent; see below. |
| Duration | How long the database took. |
| Outcome | Rows returned or changed, Running, Cancelled, or a kind of failure with the database's error code, such as "Failed · 42601". |
| Statement | The text as it was sent. |
The list follows the newest statement until you scroll up or select a row. Jump to Latest () follows again. Pause () freezes the list while recording goes on; Resume () shows what arrived meanwhile.
Select a row to see the whole statement beside the list, with its source, its session, when it started, how long it took and how it ended.
| To | Button | Key in the list |
|---|---|---|
| Copy the statement's text | Copy | ⌘C on macOS or Ctrl+C on Windows and Linux |
| Open it in a new query tab on the same connection, without running it | Open in New Tab | ↩ on macOS or Enter on Windows and Linux |
Which connection is shown
The console shows the connection of the tab you are in, and follows you from tab to tab. To keep it on one connection, choose that connection from the connection list in the console's bar; Follow Active Tab in that list goes back to following.
Find a statement
- All, Yours, Querlyn's: Yours is the SQL you ran in a query tab. Querlyn's is everything else, including statements Querlyn wrote for something you asked for, such as a row edit or an import.
- The outcome filter: Any outcome, Succeeded, Failed or Running.
- Search statements finds text in the statements.
Clear Filters shows everything again.
The sources
| Source | What sent it |
|---|---|
| User | You, from a query tab or a table tab, and each connection of a run on several connections. |
| Setup, Session | Opening a session and setting it up. |
| Metadata | Reading names for the sidebar and for completion, and the samples completion reads to offer a column's values. |
| Grid edit | Applying row changes from the results. |
| Peek | Looking up a referenced row. |
| Explain | Explain and Explain Analyze. |
| Dry run | What a dry run reads and sets up around your statement, and the rows Revert This Change compares. |
| Transaction, Cancel | Commit, roll back and begin; cancelling a query. |
| Import, Export, Backup | Importing a file, exporting all rows, backing up and restoring. |
| Copy | Copying tables between connections; rows as a count. |
| Scratch | Setting up the scratch and copying results and files into it. |
| Designer, Diagram, Compare, Snapshot | Reading and changing structure; schema compare and data compare; reading a schema for a snapshot of its history. |
| Profile | Profiling a whole table. |
| Privileges | Reading and changing users, roles and privileges; a password is shown as ••••••••. |
| Migrations | Reading migration tools' history tables for the Migrations tab, and the sizes of tables a pending migration changes. |
| Activity, Lock check | Server Activity, and checking who waits on your transaction. |
| Test | Test Connection. |
What the console keeps, and what it hides
- Memory only. Nothing in the console is written to disk, to a log or to sync. It is gone when you quit, when you choose Clear (), and when you delete the connection.
- A limit per connection. The newest 2,000 statements are kept, and up to 32 KB of each statement's text. After a connection disconnects, its newest 200 stay readable.
- Passwords never appear. Signing in is described in words
("Connect to PostgreSQL at … as …"), not shown. In SQL you type,
text that follows words such as
PASSWORDorIDENTIFIED BYis replaced by'***'before the statement is kept. - Values are not kept. A statement with parameters or bound values shows its placeholders and how many values it had. To see values for statements sent from then on, choose Parameter Values (); it applies to that connection until it disconnects, and it cannot be turned on for a Production connection.
- Bulk data is a count. An import or a multi-row insert shows the statement and how many rows, not the rows.
- Error messages are not kept, only the kind of error and its code, because a message can quote your data. The message itself is where it always is: in the tab that ran the statement.
The SQL you run is shown on every connection, Production included. Unlike the query history, the console is not stored.
What is not listed
- Fetching more rows of a result that is already listed.
- What the database's own backup programs send (
pg_dump,mysqldump). - SSH and cloud sign-in traffic, which is not SQL.
To change how many statements are kept, see [console] max_entries in
Settings reference.
Help for Querlyn 0.1.0. All help topics