Skip to main content
Postgres in Data Depot gives you live, read-only SQL access to your carrier’s Cedar data. You pick a data source and its columns, Data Depot creates a Postgres view for your carrier, and you get one dedicated database login to query it from any PostgreSQL client, BI tool, or JDBC/ODBC connection.
Postgres access is a pull model: your tools query the view when they need data. If you want Cedar to push files to your storage instead, see CDC delivery.

Browse the catalog

Open Postgres in the sidebar.⁠‌‌​‌​‌‌​‌​​​​​‌‌​​​​​‌​‌⁠ The catalog shows one card for each data source available to the selected carrier. Use Search data products to filter by name or description.
Postgres catalog with source cards and a table preview panel

The Postgres catalog. The Table preview on the right follows the selected source.

Each card shows badges:
  • carrier-scoped — the view contains only the selected carrier’s rows.
  • global — reference data that is the same for every carrier.
  • Provisioned — you already have a view for this source.
  • Selected — the source shown in the Table preview panel.
Select a card to preview its first columns, then select View details or Open table details to set up access.

Available sources

Sources marked “North American carriers only” are not listed for carriers in the EU region.

Set up access

Open a source’s details page to configure the view and its login. The left rail lists every source, so you can switch between them without returning to the catalog.
1

Choose columns

Under Choose columns, turn on the columns you want in the view. Select all and Clear all change every column at once, and the badge shows how many of the source’s columns are selected. Each row shows the column’s type, whether it can be empty, and a description.
Choose columns table with Include switches, column names, types, and descriptions

Choose the columns to include in your view

If a source shows Column metadata is not published for this source yet, Data Depot uses the source’s default columns instead.
2

Set an automatic expiry (optional)

Under Provision & database access, set Automatic expiry if the access should end on its own, for example for a short project or a contractor. Data Depot removes the view and its login within about five minutes after the time you choose. Leave it empty to keep access until you revoke it.
3

Provision the view

Select Provision view. When it finishes, the button reads View up to date and the step shows Completed, with the view’s name underneath.
Provision and database access panel with Configure view completed and Create database credential button

A provisioned view, ready for its database login

4

Create the database login

Under Connection details, select Create database credential. Data Depot creates one login for this view and shows it once.
5

Save the credential

Copy the details before you leave the page. Copy connection copies the host, database, SSL mode, username, password, and view name in one block.
Credential ready panel showing username, password, host, port, database, SSL mode, and view

The credential is shown once. Save it in your password manager or secret store.

The password is shown only once and is never returned again. If you lose it, use Reset credential to issue a new one.

Connect to the view

Use the Host, Port, Database, Username, and Password from the credential. SSL is required. Your login can read only its own view, which lives in the cedar_apps schema and is named like cedar_apps.data_depot_<source>_<carrier>_<id>.
Then query the view by its full name:
The view always reflects Cedar’s current data. There is nothing to refresh.
If your network limits outbound connections, allow the host and port shown in your credential. To use the view from Databricks, see Databricks.

Private network connectivity

By default, your tools connect to the view over the internet, encrypted with SSL. If your security policy requires BI traffic to stay on a private network, Cedar can set up a private connection to your Postgres views. This is a custom setup arranged per customer: contact your Cedar account team, and we’ll work out the details with your network team.

Postgres views or CDC delivery?

A Postgres view is live: every query your BI tool runs is answered by Cedar’s database. That makes views the quickest way to get current data, but it also means your dashboards depend on Cedar’s Postgres service, including its availability, performance, and maintenance windows. If you want full control of your data, with your own storage, your own retention, and your own SLA, use CDC delivery instead. Cedar pushes the data to your Azure or Amazon S3 storage, and your BI tools read from your own copy, so they keep working even while Cedar’s database is unavailable.

Change the columns later

Return to the source, change the selected columns (or the automatic expiry), and select Update view with N columns.⁠‌‌​‌​‌‌​‌​​​​​‌‌​​​​​‌​‌⁠ The view is updated in place, and the login and password don’t change, so your connected tools keep working. Queries that name a column you removed will start to fail, so update them at the same time.

Manage existing access

The History section at the bottom of the source’s page lists every view created for that source on this carrier, including revoked ones, with who created it and when.
History panel showing an active and a revoked provision for Waybills

History lists current and past views for a source

Reset the password

Select Reset credential, then confirm. The current password stops working immediately, and the new password is shown once. Update every tool that uses the login.

Revoke access

Select Revoke access, then confirm. Data Depot removes the view and its login. You can provision the source again later. Revoking can take a moment; the status shows Revoking until it finishes.

Statuses

Limits

  • One active view per source per carrier. To change it, update its columns rather than creating a second view.
  • One login per view.
  • While an earlier view for the source is still being revoked, or its cleanup needs attention, you can’t provision the source again. The button reads Cleanup required and the page says Finish or retry the existing access cleanup in History before provisioning this source again. Open History and select Retry revoke.
  • Once a view’s automatic expiry passes, the button reads Provision expired until Data Depot finishes removing the view. After that, you can provision the source again.
  • Views are read-only. You can’t write to Cedar through them.

Join sources together

The sources share key columns, so you can join views you’ve provisioned for the same carrier.
A few things to know about Locations:
  • parent_grouping_id walks your location hierarchy. The top-level road row isn’t included, so a top-level location’s parent may not appear in the view.
  • Location template attributes become columns named <location type>.<attribute>, for example station.region, so attributes with the same name on different location types stay separate.
  • The view includes deleted locations as well as current ones.

Troubleshooting

Check that you copied the password exactly.⁠‌‌​‌​‌‌​‌​​​​​‌‌​​​​​‌​‌⁠ If it was lost or someone reset it, select Reset credential and use the new password. A reset immediately invalidates the old one.
Your login can read only the view it was created for. Check that you’re querying the full view name shown in the credential, including the cedar_apps schema.
Someone updated the view’s columns. Open the source in Data Depot to see the current selection and add the column back if you need it.
You have read access but not the permission to create views. See Access and permissions.
Some sources are available only to North American carriers. Check the available sources table.