Object tree

The left frame: the saved connections and, below each connected server, its objects, read lazily from the system catalogs.

The object tree
The tree open down to the tables of sales.

Moving in the tree

KeyWhat it does
Right / LeftExpand / collapse.
EnterToggle.
Alt+S or Ctrl+SQuick search among the loaded rows.
Ctrl+FFind object in the catalogs.

What the tree contains

BelowGroups
ServerDatabases · Login/Group Roles · Tablespaces
DatabaseCasts · Catalogs · Event Triggers · Extensions · Foreign Data Wrappers · Languages · Publications · Schemas · Subscriptions
Schema (and each catalog)Tables · Views · Materialized Views · Functions · Procedures · Trigger Functions · Sequences · Types · Domains · Aggregates · Collations · Operators · FTS Configurations · FTS Dictionaries · FTS Parsers · FTS Templates · Foreign Tables
Table, partitionColumns · Constraints · Indexes · Triggers · Rules · Policies · Partitions (partitioned tables)
ViewColumns · Rules · Triggers
Materialized viewColumns · Indexes
Foreign tableColumns

System objects

Hidden unless Settings → Settings… → Show system objects in the tree is checked (all servers, saved):

The tree and the Default tab

Row under the cursorThe Default tab shows
An objectIts DDL — see Object view. The query is sent after the cursor has rested 200 ms.
A groupThe list of its objects.
A serverConnection parameters, version and pg_settings — see Connections.

F2 or right click.

Context menu of a table
F2 on the table customer.
RowItems
ServerConnect · Disconnect │ Refresh · Server dashboard · SQL profiler │ Edit connection… · Delete connection
Cluster-wide groups, roles, tablespacesRefresh
DatabaseNew query · Edit in new query tab · Open SQL file… │ Refresh · Server dashboard · SQL profiler · Database statistics │ Export database definition… · Load database definition…
Anything inside a databaseNew query · Edit in new query tab · Select top 100 rows (relations and the rows below them) · Open SQL file… │ Refresh · Server dashboard · SQL profiler
ItemKeyWhat it does
New queryCtrl+NA query tab with a new session on the row's database.
Edit in new query tabCtrl+EThe shown DDL in a query tab — see Object view.
Select top 100 rowsCtrl+BSee below.
Open SQL file…A SQL file in a query tab on the row's database.
RefreshCtrl+RSee below.
Server dashboardAlt+DDashboard of the server, or of the database on a database row or below.
SQL profilerAlt+PProfiler of the server.
Database statisticsAlt+IStatistics of the database.
Export / Load database definition…See Database definition.

F3 (in no menu) opens the object in its own tab. Commands that need a database session are disabled outside a database of a connected server.

Refresh

The tree is a cache; it does not follow DDL, from pgtc or any other session.

Quick search (Alt+S)

Quick search in the tree
Alt+S, then salesp.

A client-side, case-insensitive prefix match among the rows already in the tree, as in Midnight Commander; no query is sent, so unloaded groups are not searched. Alt+S again jumps to the next match; Enter, Esc or an arrow ends the search.

Find object (Ctrl+F)

An ILIKE match on object names in the catalogs, with the text as bind parameter, scoped to everything below the selected row. Enter on a result expands the tree down to that object. Also View → Find object….

Find object dialog with results
territory below adventureworks, columns included.
FieldMeaning
NameSent 200 ms after the last key. % and _ are escaped. Up / Down move in the list while the focus stays here.
MatchContains (default), Starts with, Ends with.
Show columnsOff by default; when on, columns are listed last as table.column.

In the editor and in a definition, Ctrl+F is Find / replace.

Select top 100 rows (Ctrl+B)

On a table, view, materialized view, foreign table or partition, or any row below one: opens a query tab with

SELECT * FROM sales.customer LIMIT 100;

and executes it. No ORDER BY; the name is schema-qualified and quoted. Also View → Select top 100 rows.

Tabs opened from the tree

KeyOnOpens
F3Any rowIts own object tab.
Ctrl+NA database or belowA query tab.
Ctrl+EAn object in a databaseIts DDL in a query tab.
Ctrl+BA relation or belowSELECT * … LIMIT 100, executed.
Alt+D (Ctrl+D)A server, a database or belowServer dashboard.
Alt+P (Ctrl+P)A server or a databaseSQL profiler.
Alt+IA databaseDatabase statistics.