Understand Portal database datasets
Each Portal Database dataset represents one table owned by an installed Portal plugin. Its display name uses the format<plugin-id>.<table-name>; for
example, catalog.final_entities is the final_entities table in the Catalog
plugin database.
The dataset page shows the table’s columns and PostgreSQL data types. Tables
used for key storage and database migrations are not exposed.
Portal Database datasets are read-only. Queries cannot insert, update, or
delete Portal data.
Find a table
- Open Data Experience in Portal.
- On the Overview page, find Portal Database under Data Entities and select it to open a filtered catalog view. You can also select Browse Datasets and filter the catalog by the Portal Database source.
- Search for a plugin ID, table name, or full dataset name.
- Open the dataset and select the Query tab. The Open Dataset action also takes you directly to this tab.
Query a table
The Query tab provides a PostgreSQL editor with the selected table’s schema beside it. The editor starts with a query that returns the first 10 rows from the table. You can:- use table and column suggestions while writing SQL
- run read-only
SELECTqueries and common table expressions - query the selected table or join other available tables in the same plugin database
- run a query with Run Query or Command/Ctrl + Enter
- save a query with a name and optional description
- reopen or delete saved queries
- load one of your recent queries back into the editor
Work with query results
After a query runs, Portal shows the number of returned rows and the execution time. Results open in a table where you can:- open a row to inspect every field
- switch JSON values between formatted and raw views
- download the returned results as a CSV file
- a bar chart for grouped categories and numeric values
- a line chart for dates and numeric values
- statistic cards for a single row of numeric values
Review query activity
Your recent executions are available from History on each dataset’s Query tab. This history is specific to you and the selected dataset. Portal administrators can review activity across users from Data Experience > Query Audit. The audit trail shows:- the user who ran the query
- the dataset and SQL statement
- when the query ran and how long it took
- how many rows were returned
- whether the query is running, succeeded, or failed