BRK359 · Breakout
Build intelligent PostgreSQL apps with Microsoft Fabric HorizonDB
Speakers: Silvano Coriani
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
Silvano Coriani introduces Microsoft Fabric HorizonDB, a fully serverless, fully managed PostgreSQL in Fabric (public preview, 4 TB limit in preview), with Azure HorizonDB announced as generally available. The session explains three OneLake integration paths: near-real-time mirroring into Delta tables, querying Fabric warehouses and lakehouses through the pg_fabric_fdw extension, and reverse ETL of gold-layer data back into Postgres. Demos show provisioning, connecting from VS Code, a query on about 100 million orders dropping from about 40 s to 3 s via a foreign scan into the Fabric DW engine, and a hybrid sales analysis Fabric app. The final part shows the azure_ai extension calling a Foundry GPT model from SQL functions to generate a grounded account brief. A tenant admin must enable the preview, and the 4 TB limit is planned to reach parity with Azure HorizonDB, probably by GA.
Best for: Developers and data architects building operational PostgreSQL apps on Fabric who want to combine transactional, OneLake analytical and AI workloads in one endpoint.
New material starts at 00:04. The session opens directly with the announcement of Fabric HorizonDB in public preview, so there is no preceding recap.
Where to skip: Watch from 00:04 for the announcement and from 05:06 for the architecture; the demos at 13:45 (FDW acceleration) and 19:55 (reverse ETL, hybrid app) are the core. The AI demo at 29:20 is the main Copilot-adjacent part; the recap at 25:09 and the closing at 32:54 can be skipped, and the Q&A at 35:36 only covers the 4 TB limit.
Chapters (10)
- 00:04 New Depth 200 · Novelty 3/3
Microsoft Fabric HorizonDB introduced: serverless Postgres in Fabric, public preview
Silvano Coriani introduces Microsoft Fabric HorizonDB as a fully serverless, fully managed PostgreSQL in Fabric that provisions in seconds, auto-pauses after 5 minutes idle and resumes in seconds. It integrates with Microsoft Entra and Fabric roles, works with VS Code via the Postgres extension and ships pre-installed extensions (azure_ai, vector, pg_diskann, text search and pg_fabric_fdw for querying OneLake). Fabric HorizonDB is announced in public preview (rolling out to tenants in the next few days, 4 TB limit in preview) as the operational backend for Fabric apps, while Azure HorizonDB (PaaS with explicit core and memory sizing) was announced as generally available.
- 05:06 Deep dive Depth 300 · Novelty 2/3
Architecture: serverless compute, three OneLake integration paths and pay-per-use billing
Fabric HorizonDB uses the same compute/storage separation as Azure HorizonDB, but with a fully serverless compute layer. Three paths link it to OneLake: near-real-time mirroring of transactional data into Delta column-store tables, querying mirrored data and any Fabric warehouse or lakehouse SQL analytics endpoint via the Fabric FDW extension, and reverse ETL of curated gold-layer data back into Postgres for high-throughput, low-latency serving. When idle for 5 minutes the compute is shut down and only storage is charged until the next query rehydrates compute.
- 09:57 Deep dive Depth 300 · Novelty 2/3
Trans-analytical queries: registering Fabric tables as foreign tables via Fabric FDW
With a few DDL commands the Fabric FDW extension registers Fabric warehouse and lakehouse tables in Postgres; only metadata is imported, no data is copied. Queries against the Postgres endpoint then push large scans and aggregations to the Fabric analytical engine (column store, GPU acceleration) while joining with local tables. The example given is a primary-key customer lookup in Postgres joined with a huge orders table in the Fabric warehouse, with no ETL copies.
- 13:45 Demo Depth 300 · Novelty 2/3
Demo: create HorizonDB, connect from VS Code, speed up analytics 40s to 3s via mirroring
The demo creates a HorizonDB database in a Fabric workspace by supplying only a name, then connects via the PostgreSQL extension for VS Code, which can now browse Fabric workspaces and shows a performance dashboard. On ~100 million orders, primary-key queries are fast using B-tree indexes, but a top-100-customers revenue query takes about 40 seconds locally. After creating a schema and importing the mirrored tables as foreign tables, the same query takes about 3 seconds, with aggregation pushed as a foreign scan into the Fabric DW engine.
- 19:55 Demo Depth 300 · Novelty 2/3
Demo: reverse ETL from lakehouse gold layer and a hybrid sales analysis Fabric app
A sales-generation Fabric app writes orders to HorizonDB, which are mirrored to OneLake and transformed in a lakehouse into a silver star schema and gold curated datasets (monthly and daily executive dashboards). A Fabric Copy job continuously copies the gold data back into Postgres based on CDC, and the lakehouse endpoint is registered so its tables appear as foreign tables. A sales analysis Fabric app compares operational versus hybrid query plans, scans the full dimensional model, joins local, mirrored, dimensional and gold data in one query in about 6 seconds, and serves gold tables locally in milliseconds.
- 25:09 Deep dive Depth 200 · Novelty 1/3
Recap: choosing where workloads and data live across Postgres and OneLake
The speaker summarises the three patterns: analytical queries on near-real-time mirrored data, selective operational queries in Postgres (joined when needed), querying any Fabric warehouse or lakehouse through registered SQL analytics endpoints via Fabric FDW, and loading curated OneLake data back into HorizonDB for low-latency, high-throughput serving.
- 27:00 Deep dive Depth 300 · Novelty 1/3
AI grounding in SQL: azure_ai extension calling Microsoft Foundry models from HorizonDB
SQL functions in Fabric HorizonDB can retrieve context from operational and analytical data and pass it with prompts to Microsoft Foundry models through the azure_ai extension, e.g. for RAG or generating embeddings for semantic search. The azure_ai extension has existed for some time in Azure Database for PostgreSQL Flexible Server and Azure HorizonDB. The extension handles the Foundry call and the response flows back through the database to the application without leaving the database environment.
- 29:20 Demo Depth 300 · Novelty 2/3
Demo: AI-generated account brief from SQL functions and a Foundry GPT model in a Fabric app
The demo shows the azure_ai extension version 2.4 in the catalog and a GPT 5.4 mini model registered from Foundry under an alias. An account_grounding function takes a customer ID and returns a JSON fragment with operational and analytical data plus rules for the LLM; an account_brief function passes this to the azure_ai generate function with a prompt. In a Fabric app the sales team searches a customer, sees the grounding data and gets an AI-generated brief with key observations and suggested next actions for contract negotiation.
- 32:54 Closing Depth 100 · Novelty 1/3
Getting started: tenant admin enablement, rollout timing and Fabric apps as frontend
Fabric HorizonDB is in preview and, like other Fabric preview workloads, must be enabled by the Fabric tenant admin via a tenant setting checkbox; bits are being released to production and will be available over the next couple of days. Suggested path: create the database, connect from VS Code, pick a trans-analytical pattern and build with Fabric apps. The speaker says hundreds of thousands of customers use Fabric apps and that Copilot can generate Fabric apps with HorizonDB as the backend.
- 35:36 Q&A Depth 200 · Novelty 2/3
Q&A: plans to lift the 4 TB preview storage limit by GA
Asked about the 4 TB preview limit, the speaker says the plan is to reach parity with the current Azure HorizonDB database size limit, probably by general availability, a few months from now. No other questions are asked.
Announcements (5)
-
pg_fabric_fdw extension
Foreign data wrapper that lets the Postgres endpoint query Fabric warehouses and lakehouses and join them with local operational data.
Speaker’s quote (at 03:16)
„PG fabric FDW, which is the secret sauce, which is connecting the operational world and the analytical world.“
-
Microsoft Fabric HorizonDB
Fabric-native, fully serverless and managed PostgreSQL database that serves as the operational backend for Fabric apps and can query OneLake data.
available in Fabric tenants in the next few days
Speaker’s quote (at 03:51)
„today we are announcing public review for Microsoft Fabric Horizon DB. It will be available in your Fabric tenants in the next few days.“
-
Azure HorizonDB
PaaS PostgreSQL database where customers still define the cores and memory assigned to compute nodes.
Speaker’s quote (at 03:51)
„This morning we also announced the general availability for Azure Horizon DB, which is a platform as a service, is a PaaS database“
-
PostgreSQL extension for VS Code: Fabric workspace browsing
The Postgres extension for VS Code can now browse Fabric workspaces and connect directly to a Fabric HorizonDB database.
Speaker’s quote (at 14:39)
„or now we can also browse our Fabric workspaces. So we can navigate to our workspace, our database, and just click connect.“
-
Fabric HorizonDB storage limit increase
The 4 TB preview storage limit is planned to match the Azure HorizonDB database size limit, likely by general availability.
probably by general availability, a few months from now
Speaker’s quote (at 36:07)
„We are planning to go on par with the Azure Horizon DB database size limit that we have right now.“
Demos (3)
-
A developer provisions a Fabric HorizonDB database, works with it from VS Code and accelerates an analytical query by querying the mirrored copy in OneLake through Fabric FDW.
Steps (11)
- In the Fabric workspace click New item and select the HorizonDB item type.
- Enter the database name (SalesDB); the database is up within a few seconds.
- Optionally browse the empty database in the Fabric SQL editor.
- In VS Code with the PostgreSQL extension, browse Fabric workspaces, select the database and click Connect.
- Open the extension's performance dashboard to see top queries and open sessions.
- Query the server version to confirm it is HorizonDB.
- Query the Postgres catalog to list the customers, orders and products tables (about 100 million orders).
- Run a primary-key query and inspect the query plan (B-tree index), then run a join of customers, orders and products filtered by customer ID and view the graphical plan.
- Run the top-100-customers-by-revenue query on local tables (about 40 seconds).
- Create a new schema and import the customers, products and orders tables from the mirrored database as foreign tables.
- Rerun the query using the orders table from the OLAP schema joined with the local customers table (about 3 seconds) and check that aggregation is pushed as a foreign scan to the Fabric DW engine.
Prerequisites: Fabric tenant with the HorizonDB preview enabled by the tenant admin; VS Code with the PostgreSQL extension; mirroring to OneLake (automatic).
-
A data team serves analytical and curated gold data through a single Postgres endpoint to Fabric apps, combining mirroring, lakehouse queries and reverse ETL.
Steps (9)
- Run a sales-generation Fabric app that inserts new orders into the Fabric HorizonDB database.
- Let the orders be mirrored automatically into OneLake.
- Create a lakehouse that transforms the mirrored data into a silver star schema (fact and dimension tables) and gold curated datasets (monthly and daily executive dashboards).
- Configure a Fabric Copy job with the gold tables as source and Postgres as destination for continuous CDC-based copy.
- In Postgres, register the lakehouse endpoint and import its tables as foreign tables in a separate schema.
- In the sales analysis Fabric app, run the top-100-customers query against the operational database and the hybrid path and compare the query plans.
- Run a sales history query for a given customer over the full dimensional model.
- Run a single query joining local, mirrored, dimensional and gold data (about 6 seconds).
- Query the reverse-ETL gold tables locally in Postgres (milliseconds).
Prerequisites: Fabric HorizonDB database with mirroring, a Fabric lakehouse with silver and gold layers, a Fabric Copy job and Fabric apps.
-
A sales team gets an AI-generated account brief for contract negotiations, grounded in operational and analytical data via SQL functions and a Foundry model.
Steps (6)
- Query the extension catalog to confirm the azure_ai extension (version 2.4) is available.
- Register a Microsoft Foundry model (GPT 5.4 mini) under an alias (Ignite account brief).
- Create a function account_grounding that takes a customer ID, joins operational and analytical data and returns a JSON fragment with the data and rules for the LLM.
- Create a function account_brief that calls account_grounding and passes its result with a prompt to the azure_ai generate function.
- Run account_brief and inspect the returned AI-generated brief text.
- In the Fabric app, search by customer ID, click the first button to show the grounding data, then generate the brief with key observations and suggested next actions.
Prerequisites: Fabric HorizonDB with the azure_ai extension, a model deployed in Microsoft Foundry registered under an alias, and a Fabric app.