Browse a PostgreSQL database
Open the DB viewer from a connection string in your code.
On this page
The DB viewer opens a PostgreSQL database in a window of the editor.
Who can use it
Administrators can always open it. For other people, an administrator checks Allow to open DB viewer in the user form.
Open the viewer
1. Open the file that holds the connection, for example config. The line must have a name in front of the address:
database : postgresql://user:password@localhost:5432/database2. Select the whole line.
3. Right-click the selection and choose Open DB viewer.
Run a query
The window has a box for your query.
- Type the SQL query.
- Click Run query, or press
Ctrl+Enter(Cmd+Enteron macOS).
History lists your earlier queries, Options offers ready-made SQL, and Search in results filters the rows you see.
A query runs as soon as you start it, and the viewer doesn't ask you to confirm. Take extra care with queries that change or delete data.