Your Heroku Postgres data, where work happens.
Heroku Postgres from your DATABASE_URL. Heroku databases sit on bare EC2 hostnames, so the card is how the connection knows it is Heroku.
Use the results in Excel, Google Sheets, AI tools and your apps through the Database REST API.
Every connector type is on Free. Start with 2 data sources and 1 agent.
Run read-only queries inside your network.
Read-only queries · outbound connectionSource credentials stay on the agent. Your tools receive query results.
Query Streams reads Heroku Postgres from Microsoft Excel, Google Sheets, Power BI, AI assistants over MCP and a REST endpoint through one read-only connection. Heroku is the unusual one among the managed Postgres presets: its databases answer on plain EC2 hostnames with nothing provider-shaped about them, so unlike every other card here the connection cannot be recognised as Heroku by its address. Choosing this card is what records it, which is also why it is worth choosing rather than the generic PostgreSQL one.
- Paste DATABASE_URL, fields fill in
- Encrypted, self-signed certs allowed
- Re-paste after a rotation
Connect Heroku with the right settings.
Keep the connection on the Network Agent. These are the details specific to Heroku.
- Host
- A bare EC2 name such as ec2-12-34-56-78.compute-1.amazonaws.com — nothing in it identifies Heroku
- Port
- 5432
- Driver
- Npgsql, carried by the agent — nothing to install at the Heroku end
- Paste format
- DATABASE_URL from Settings then Config Vars, as a postgres:// URI
- TLS
- Required. Encrypted; the certificate chain is not verified, which is what Heroku's self-signed certificates need
- Pooling
- None. The agent applies no pooler adaptations for Heroku
- Credentials
- Rotated by Heroku during maintenance. Re-paste the current DATABASE_URL when that happens — there is no automatic sync
- Saved as
- PostgreSQL, with Heroku kept as a badge. Because the hostname is anonymous, that badge only exists if you saved from this card
- Default schema
- public, which is what a federated reference carries
Heroku is the preset that makes the underlying design visible. Every card here saves as its real engine and keeps the provider as a label, and for most of them the label is belt and braces — the hostname would have given it away anyway. Heroku has no such fallback, so the label is the only record. That is why remaking an old connection through this card is the fix for missing branding, and why there is no way to make it happen retroactively.
The rotation warning is the most practically useful thing on the card. Heroku rotating credentials during maintenance is normal operation, not a fault, and the failure it produces is an authentication error that looks exactly like someone having changed a password. Knowing in advance that re-pasting DATABASE_URL is the whole fix turns a confusing outage into a thirty-second task.
For a cross-source query Heroku is ordinary Postgres. A connection you called heroku_app is written heroku_app.public.orders, and it joins to a folder of CSVs, an on-premises system of record or a billing API in one read-only statement — with nothing copied and nothing scheduled.
Provider reference: www.heroku.com
Built for how Heroku works.
Nothing about the hostname says Heroku
Every other managed Postgres card here can recognise its own service by the address. This one cannot, and the difference is worth understanding.
- Heroku Postgres answers on bare EC2 names in the shape ec2-12-34-56-78.compute-1.amazonaws.com. There is no heroku in the hostname to match on.
- So the provider identity is recorded when you save from this card, rather than inferred from where you connected. That is what drives the badge and the icon afterwards.
- The practical consequence: a plain PostgreSQL connection you made earlier to a Heroku database will not pick up Heroku branding retroactively. Cards like Neon and Koyeb do exactly that from their hostnames — Heroku is the case where it cannot work.
- If you want the branding on an older connection, remake it from this card. Nothing about the data path changes; it is a labelling difference.
Self-signed certificates, and what encrypted means here
Heroku fronts its databases with its own certificates, which shapes what the agent can sensibly check.
- Use SSL is on by default and the connection is encrypted. The agent requires TLS rather than merely offering it.
- The certificate chain is not verified. Heroku's certificates are self-signed, so full verification would reject a perfectly correct connection — requiring encryption without validating the chain is the setting that matches the service.
- Read that as protection against anyone reading the traffic, not as proof of what you reached. It is the same posture the Railway card takes, and for the same reason.
- Leave the checkbox alone before your first test. On a connection that has not been saved yet, that checkbox is the only thing turning encryption on.
Rotation is a thing you will meet
Heroku changes database credentials during maintenance, and the agent stores what you gave it.
- When Heroku rotates, DATABASE_URL changes and the stored credentials stop working. The card says so on the way in rather than leaving you to discover it.
- Fixing it is re-pasting the current DATABASE_URL over the old one. Everything downstream — saved queries, schedules, shares — keeps working, because they point at the connection rather than at the credentials.
- There is no automatic sync. Query Streams does not read your Heroku config vars, so the re-paste is a manual step and worth knowing about before it surprises you.
- The pasted string itself is never stored. It is read once to fill the form and then dropped, so the password lives in one place rather than two.
-- Ordinary Postgres, read-only, over TLS
SELECT c.name,
COUNT(o.id) AS orders,
SUM(o.amount) AS revenue
FROM public.customers AS c
JOIN public.orders AS o ON o.customer_id = c.id
WHERE o.placed_at >= now() - interval '30 days'
GROUP BY c.name
ORDER BY revenue DESC;From connection to useful results.
- Install the Network Agent wherever suits you. It opens one outbound connection and never listens, so Heroku sees an ordinary client and your network needs no inbound rule.
- Copy DATABASE_URL from the app's Settings then Config Vars, and paste it into the first field. Host, port, database, username and password are all read out of it.
- Leave Use SSL on before you run the test. Heroku expects an encrypted connection, and on a brand-new connection that checkbox is what provides it.
- Save. The Heroku badge is written at that moment, which is what keeps the connection recognisable afterwards.
- Come back and re-paste after a Heroku credential rotation. Microsoft Excel, Google Sheets, Power BI, MCP and REST all read through that one connection in the meantime.
Put your Heroku results to work.
One connection serves your spreadsheets, apps and AI tools. Share permission to run a saved query; recipients see the allowed results, with the SQL and source login hidden.
For your team, vendors and partners
Pull live Heroku results straight into a worksheet and refresh them on demand — desktop Excel, Excel Online, Microsoft 365.
PostgreSQL guideRun a saved Heroku query from the sidebar and drop the rows into the sheet. Shared collaborators can refresh it themselves.
PostgreSQL guideAsk a question in plain English. Nova already knows your Heroku tables, writes and runs the SQL, explains the answer and charts it — no query to write, no credentials to hand over.
How Nova worksShare a live Heroku result with anyone — a colleague, a vendor, a partner — as a bookmarkable grid that re-runs fresh when opened, on a phone, a tablet or a desktop. They see the results, never the SQL or the credentials.
How the Data Viewer worksFor apps and systems
Publish a Heroku query as an authenticated JSON endpoint any application can call, with an OpenAPI 3.1 spec and ready-made Postman, Insomnia and Hoppscotch collections. No database port is opened.
PostgreSQL guidePaste the generated Power Query M into the Power BI Advanced Editor and the report reads live Heroku results over HTTPS — no ODBC driver, no database port opened.
Explore Power BISync Heroku rows into an Airtable base on a schedule, or fetch them inside an Airtable automation script.
PostgreSQL guideFeed a Baserow table from Heroku over the REST endpoint — self-hosted or Baserow cloud.
PostgreSQL guideKeep a SeaTable base current with Heroku data without exporting a file or exposing the database.
PostgreSQL guidePush Heroku results into a Smartsheet grid so plans and reports read from the source system, not last week's export.
PostgreSQL guideBack an Anvil Python app with Heroku through the REST endpoint instead of embedding database credentials in the app.
PostgreSQL guideFor AI tools
Give an AI assistant read-only access to Heroku with the schema it needs to write correct SQL — no credentials in the chat.
PostgreSQL guideDelivered to people
Put a Heroku query on a schedule and have the rows delivered to Slack, Discord, email or a signed webhook — or hold the message until a row count, threshold or percentage change crosses the line you set.
How alerts and reports workJoin Heroku to the rest of your data.
Bring databases, business APIs, files and logs into one read-only query. Every connector supports Federated Queries.
Name the connections and tables. Query Streams handles the source queries and combines the results.
Explore Federated Queries-- nothing copied, nothing merged, nothing scheduled
SELECT c.region, COUNT(*) AS orders, SUM(i.amount_due) AS invoiced
FROM heroku_app.public.orders1 f
JOIN erp_sql.dbo.customers2 c ON c.id = f.customer_id
JOIN billing.stripe.invoices3 i ON i.customer = c.stripe_id
GROUP BY c.region
ORDER BY invoiced DESC;Use your own connection, schema, table and column names.
Shared across the connector family.
True of every database connector
- Outbound only — the agent opens one encrypted connection out to Query Streams. No inbound port to forward, no VPN, no IP allowlist, nothing about your database exposed to the internet.
- Credentials stay put — the database username and password live on the machine you installed the agent on. Query Streams never receives them and cannot reach your database on its own.
- Read-only, enforced — one statement at a time, SELECT and friends only. A write is rejected on your own machine before it is ever sent to the server, rather than relying on a permission somebody remembered to set.
- Deploy as many agents as you like — one per site, region or cloud. Every data source they can see arrives in a single dropdown, so nobody has to know which agent hosts what.
What you get once a query is saved
- Share the capability, not the SQL — a colleague or an outside partner can run your query and change its filters without ever seeing the statement behind it.
- Filters from either direction — declare them yourself as @variables, or let the connector spot the literal values already sitting in your WHERE clause and offer those as dropdowns.
- Read it from anywhere — Microsoft Excel, Google Sheets, Power BI, the REST API, AI assistants over MCP, the Query Builder and Nova all read the same saved query.
- Run several at once — five saved queries into five worksheet tabs, streamed concurrently, however large the results.
- Join it to anything else you have connected — another database, a business API, or a folder of files, in one read-only statement.
Questions about Heroku Postgres
Where can I use Heroku Postgres query results?
Use Heroku Postgres results in Excel, Google Sheets, the Data Viewer, your apps through the Database REST API, and AI tools through MCP or Nova. Saved results also feed supported Automation destinations, reports and alerts. Destination availability and allowances depend on your plan.
Do I need to open an inbound port for Heroku Postgres?
No. Install the Network Agent on a machine that can reach Heroku Postgres. The agent connects outward to Query Streams; no inbound port or VPN is needed. Your source must still allow the agent machine to connect under its own access rules.
Can Query Streams change data in Heroku Postgres?
No. Queries are enforced read-only on the Network Agent before execution. Source credentials stay on that machine. Sharing grants permission to run a saved query and receive its results; it does not reveal the SQL or database login.
What do I need to connect Heroku Postgres?
Host: A bare EC2 name such as ec2-12-34-56-78.compute-1.amazonaws.com — nothing in it identifies Heroku. Port: 5432. Driver: Npgsql, carried by the agent — nothing to install at the Heroku end. Paste format: DATABASE_URL from Settings then Config Vars, as a postgres:// URI
Can I join Heroku Postgres to other connected sources?
Yes. Federated Queries support every connector type, including databases, business APIs, files and logs. Name the connections and tables in one read-only query. Query Streams translates the source portions as needed and combines their results. See how Federated Queries work.
Does Heroku Postgres use the PostgreSQL connector?
Yes. Heroku Postgres uses the PostgreSQL wire protocol. Its provider preset supplies the relevant connection settings. The linked PostgreSQL guides apply to the shared workflow; use the provider-specific connection details on this page for your endpoint and security requirements.
Put Heroku where the work happens.
Start with Free: every connector type, 2 data sources and 1 Network Agent. Add plan allowances as your needs grow.

