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 (View › Toggle Statement Console), 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 Command Palette › View: Grow Statement Console and Command Palette › View: Shrink Statement Console.

Statements are recorded whether or not the console is open, so opening it shows what just happened. Command Palette › View: Show Statement Console opens the console and puts the keyboard in its list.

Read the list

Each row is one request to the database:

ColumnMeaning
TimeWhen it was sent.
SourceWhy it was sent; see below.
DurationHow long the database took.
OutcomeRows returned or changed, Running, Cancelled, or a kind of failure with the database's error code, such as "Failed · 42601".
StatementThe text as it was sent.

The list follows the newest statement until you scroll up or select a row. Jump to Latest (Command Palette › View: Jump to Latest Statement) follows again. Pause (Command Palette › View: Pause Statement Console) freezes the list while recording goes on; Resume (Command Palette › View: Resume Statement Console) 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.

ToButtonKey in the list
Copy the statement's textCopy⌘C on macOS or Ctrl+C on Windows and Linux
Open it in a new query tab on the same connection, without running itOpen 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

SourceWhat sent it
UserYou, from a query tab or a table tab, and each connection of a run on several connections.
Setup, SessionOpening a session and setting it up.
MetadataReading names for the sidebar and for completion, and the samples completion reads to offer a column's values.
Grid editApplying row changes from the results.
PeekLooking up a referenced row.
ExplainExplain and Explain Analyze.
Dry runWhat a dry run reads and sets up around your statement, and the rows Revert This Change compares.
Transaction, CancelCommit, roll back and begin; cancelling a query.
Import, Export, BackupImporting a file, exporting all rows, backing up and restoring.
CopyCopying tables between connections; rows as a count.
ScratchSetting up the scratch and copying results and files into it.
Designer, Diagram, Compare, SnapshotReading and changing structure; schema compare and data compare; reading a schema for a snapshot of its history.
ProfileProfiling a whole table.
PrivilegesReading and changing users, roles and privileges; a password is shown as ••••••••.
MigrationsReading migration tools' history tables for the Migrations tab, and the sizes of tables a pending migration changes.
Activity, Lock checkServer Activity, and checking who waits on your transaction.
TestTest 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 (Command Palette › View: Clear Statement Console), 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 PASSWORD or IDENTIFIED BY is 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 (Command Palette › View: Toggle Parameter Values in Statement Console); 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