azure horizondb
26 TopicsEncryption at rest with customer-managed keys in Azure HorizonDB (Preview)
With customer-managed keys (CMK) for data encryption at rest in Azure HorizonDB, you use a key that you own and manage in Azure Key Vault to protect your cluster, so you can align encryption with your corporate security and compliance policies. Encryption at rest, now with your choice of keys Azure HorizonDB always encrypts all data it manages at rest, including system and user databases, cluster logs, write-ahead log (WAL) segments, and backups. The service now supports two modes: Service-managed keys (SMK): the default. The service manages the keys and their rotation for you, using Azure Storage encryption. No action is needed. Customer-managed keys (CMK) (preview): you own and manage the key. Azure HorizonDB uses storage-layer encryption for WAL and page-level encryption for page servers. You select the encryption mode when you create the cluster, and it can't be changed later. Why use customer-managed keys Fully control the key life cycle, including rotation, to align with corporate policies. Centrally manage and organize all your encryption keys in your own Azure Key Vault instances. Revoke the cluster's access to the key, which makes encrypted data inaccessible. Implement separation of duties between security officers, database administrators, and system administrators. What you need to get started An Azure Key Vault in the same region and Microsoft Entra tenant as your cluster. An asymmetric 4,096-bit RSA or RSA-HSM key in the Enabled state. A user-assigned managed identity for the cluster with access to the key. Get started in the Azure portal To enable CMK, configure a user-assigned managed identity (UAMI) and a customer-managed key when you create your cluster. In the Security tab, select Customer-managed key for Data encryption key, then choose the UAMI and the key from your Azure Key Vault. Create a cluster with CMK using the Azure CLI Pass the managed identity and the versionless key URI when you create the cluster: az horizondb cluster create \ --resource-group <resource-group> \ --cluster-name <cluster-name> \ --location <location> \ --version 17 \ --primary-user-assigned-identity-id <managed-identity-resource-id> \ --primary-key-uri <versionless-key-uri> Try it today Create a new Azure HorizonDB cluster, choose customer-managed keys as the encryption mode, and tell us what you think. Your feedback during the preview will help shape the general availability release. To learn more, see Configure data encryption at rest in Azure HorizonDB and Data encryption at rest in Azure HorizonDB in the documentation.116Views0likes0CommentsHorizonDB: PostgreSQL for enterprises, developers, and agents on Azure and Fabric
Today at Microsoft Ignite, we’re thrilled to announce the general availability of Azure HorizonDB and the public preview of Microsoft Fabric HorizonDB, expanding what’s possible with PostgreSQL on Azure. HorizonDB brings a new cloud-native architecture to PostgreSQL, delivering new levels of performance, scalability, and availability for building AI-powered applications or modernizing demanding enterprise workloads. The role of PostgreSQL is growing, and so is the range of users and companies that depend on it. Enterprises are standardizing on it for critical workloads, developers are choosing it to build new applications, and AI agents are increasingly using it to create, retrieve, and act on data. Each brings different needs, from resilience and security to instant provisioning, developer flexibility, and agent-driven workflows. We built HorizonDB to meet those needs, on Azure and in Microsoft Fabric. Built for mission-critical enterprise workloads Azure HorizonDB is built for the most demanding PostgreSQL workloads, where performance and availability matter most. It delivers up to 8x faster OLTP performance than self-managed PostgreSQL* and supports databases up to 128 TB. Every database is resilient across availability zones by default, with sub-millisecond commit latency and failover in under five seconds, providing high availability without impacting application performance. * Based upon internal, standardized benchmarking, running on high availability and on comparable hardware. HammerDB TPROC-C workload, 95K Warehouses, 512 Users, Azure Edsv6 Virtual Machines with 64 vCores, PostgreSQL 17.11, Korea Central, Availability Zone 1 and 2 HorizonDB integrates with Azure security controls for identity, networking, and data protection. Microsoft Entra ID authentication centralizes identity-based access to the database, helping teams apply consistent identity governance across their Azure environment. Private endpoints provide database connectivity through Azure virtual networks, keeping those connections within the enterprise network boundary. Customer-managed keys give organizations control over the encryption keys that protect their data, in line with their key management policies. Together, these capabilities support sensitive workloads on Azure while preserving the security practices already in place. “Our AI ambitions depend on secure, reliable, high-performance API access to LSEG’s data. Azure HorizonDB meets our enterprise security requirements while providing a PostgreSQL foundation for our existing API services and the MCP layer powering new AI experiences.” – Grzegorz Giedrojc, Director of Engineering, London Stock Exchange Group Serverless PostgreSQL in Fabric, from first query to OneLake Developers have always built applications on databases, but agents are now building them at an entirely different speed. Agents spin up databases for prototypes, experiments, and short-lived tasks, then drop them when the work is done. Most of these workloads start small, run in bursts, and sit idle between uses, which makes their compute needs hard to predict and inefficient to run continually. Microsoft Fabric HorizonDB is serverless and built for exactly these scenarios, with: Rapid provisioning: Databases provision in seconds so developers and agents can start building immediately. Automatic pause: Compute pauses after five minutes of inactivity to avoid keeping resources running between tasks. On-demand resume: Compute resumes when the next query arrives without manual intervention. Fabric HorizonDB is also the default database for Fabric apps, where the Rayfin SDK brings PostgreSQL, data APIs, authentication, functions, storage, and observability together in a managed application backend. Instead of assembling and connecting these services separately, developers and agents can focus on application logic and the data it needs, moving from first idea to a running application without operating the backend underneath it. Once those applications are running, they need more than their own operational data. Fabric HorizonDB now supports translytical capabilities on OneLake to operationalize lake data, bringing the scale and performance of Fabric's analytical engines to live transactions through: Translytical queries: PostgreSQL queries are transparently converted to run on Fabric Data Warehouse, using distributed, scale-out execution on CPU- or GPU-powered processing. Analytical queries can run an order of magnitude faster than they would natively in PostgreSQL. Full and partial pushdowns are supported, so a single query can efficiently join PostgreSQL tables with data in OneLake. Mirroring: Fabric HorizonDB tables are replicated into OneLake by default and are automatically converted to Delta format, so data is ready for translytical application workloads and large-scale analytics across Fabric without building data integration pipelines. Synced Tables: Enriched data from Fabric Data Warehouse flows back into HorizonDB (reverse ETL) for low-latency, high-concurrency serving to applications and agents. Snapshot sync handles periodic refreshes such as daily scores or aggregates, while the continuous sync option keeps tables current as source data changes. Together, serverless compute and translytical capabilities on OneLake enable developers and agents to build Fabric apps that start small, scale with demand, and act on live transactions and analytical insights in the same application, all through one PostgreSQL API. With no pipelines to build or infrastructure to manage, every application can use the full value of data in OneLake from day one. “As settlement cycles shorten and financial services become more automated, resolving payment and trade exceptions requires more than the current transaction state. Fabric HorizonDB enables us to connect operational data with historical insights in OneLake to provide firms with the broader business context to resolve exceptions faster and make more informed decisions.” – Jennings Balavari, Founder and CEO of Opsen AI Build retrieval, reasoning, and AI workflows, all in PostgreSQL AI agents need more than a place to store data. They need a data platform that combines relevant context and relationship-based reasoning with integrated AI workflows and tools designed for agents. HorizonDB consolidates these capabilities in PostgreSQL so applications can do more with operational data without stitching together specialized databases and disparate services. Retrieve the right context. HorizonDB combines vector and full-text search to capture both semantic meaning and precise keyword matches. Applications can retrieve relevant context directly in PostgreSQL without separate search or vector databases. pgvector support: Existing vector applications work as they are. DiskANN indexing: Embedding search scales with up to 1.5x higher throughput than HNSW at comparable recall and up to 5x smaller indexes, reducing storage and memory requirements. BM25 ranking: pg_textsearch ranks text results by keyword relevance to find exact names, identifiers, and technical terms. Hybrid search with RRF: Reciprocal Rank Fusion functions combine vector and keyword results based on their positions in each ranked list. This helps retrieve relevant context that either search method alone might miss. “HorizonDB is changing how we think about the boundary between operational data and intelligence. Instead of creating another datastore for every new capability, we’re exploring how relational state, relationships, semantic retrieval, and AI can coexist around the same trusted operational truth.” - Dylan Addington, Enterprise Architect, Pediatric Associates Family of Companies Reason across relationships. HorizonDB supports graph modeling and traversal through Apache AGE, with significant new optimizations to this extension for faster queries and more efficient graph updates. The AGE extension API is unchanged, so existing applications can run on HorizonDB and just work without code changes. Compared with community Apache AGE: Simple reads: Resolve direct dependencies, linked entities, and ownership up to 3,900x faster (LDBC SNB Interactive workload). Complex reads: Run multi-hop queries across connected data up to 512x faster (LDBC SNB Interactive workload). Graph builds and refreshes: Run MERGE and batch upserts up to 190x faster with about 6x lower peak memory (internal Microsoft testing). Faster graph queries reduce the time agents spend following relationships across connected data. A supply chain agent can trace a delayed component through suppliers, shipments, and affected orders. A support agent can connect a customer’s case to related accounts, products, and known issues. By combining graph traversal with vector search and relational queries, agents can reason over how data is connected as well as what it contains. Integrate models and scale AI workflows. Building scalable AI applications requires models and data processing to work together without a separate orchestration layer. HorizonDB integrates model access and AI execution with operational data through: AI Model Management: Connect applications to the models they need and manage model access from the database. AI Functions: Invoke models from PostgreSQL for tasks such as embedding generation, extraction, and content generation. AI Pipelines: Compose these functions into durable, asynchronous workflows that scale AI processing across data. For example, a pipeline can call external models to enrich new rows as they arrive or keep a knowledge graph current as the underlying data changes. “Our team built an entire RAG retrieval pipeline in Azure HorizonDB without an application tier. Chunking through reranking all ran in SQL.” - Brian Steele, Chief AI Officer – Field, Coretek Connect agents to HorizonDB with tools and skills: Microsoft’s PostgreSQL MCP Server and PostgreSQL Skills combine database connectivity with task-specific guidance for agents. PostgreSQL MCP Server: Provides a standard way to discover and invoke HorizonDB capabilities through the Model Context Protocol. PostgreSQL Skills: Supply reusable knowledge and instructions for common database tasks. Modern developer tools for HorizonDB, powered by VS Code More than 70% of developers already work in Visual Studio Code, according to the 2026 Stack Overflow Developer Survey. The PostgreSQL extension for VS Code brings HorizonDB development, management, and troubleshooting into the editor, so teams can understand their cluster, tune queries, and inspect data and AI workflows without switching tools. Cluster topology: A clear view of each HorizonDB cluster shows its pools and nodes, including the writer and read-only nodes, their availability zones, compute configuration, high availability status, and parameter group sync state. AI-assisted query optimization: Query plans render as interactive graphs with performance hotspots highlighted. Developers can ask GitHub Copilot to analyze a plan or individual operator and suggest optimizations, using live database schema context. Monitoring and debugging: Metrics, wait events, top queries, and active sessions are available alongside cluster topology, helping developers investigate slow queries and blocking relationships. Queries can be opened directly in the SQL editor or plan visualizer for deeper analysis. Knowledge graph visualization: Apache AGE Cypher results render as interactive node-edge graphs, making relationships in the data easier to explore. AI pipeline visualization: Developers can follow AI workflows from source data through chunking, embedding, extraction, generation, and ranking. Modernize Oracle and PostgreSQL workloads on HorizonDB For existing PostgreSQL workloads, the path to HorizonDB is direct. The new Azure Database Migration Service moves PostgreSQL databases from AWS, Google Cloud, on-premises, and Azure virtual machines to HorizonDB, with online migration of schema and data plus built-in validation and monitoring. Oracle migrations are a different challenge. Beyond moving the data, teams have to convert schemas, PL/SQL packages, and the application code that depends on them, then prove the result behaves the same. That makes an Oracle migration a software engineering project, not a database task. That's why we built the tooling into the PostgreSQL extension for VS Code, where migration teams already have version control, code review, and CI/CD pipelines. Schema and application changes stay in lockstep, with every conversion versioned, reviewed, and regression-tested on each commit. The extension brings AI-assisted conversion into that workflow with: Schema conversion: Reads the Oracle data dictionary and uses models in Microsoft Foundry to generate PostgreSQL DDL. It then compiles the results against a PostgreSQL database and flags objects that need manual changes in a conversion report. Application conversion: AI-assisted conversion identifies Oracle-specific dependencies in SQL scripts, stored procedure calls, and Java code, then proposes changes for PostgreSQL compatibility. It builds on the output of schema conversion, so the updated code matches the converted object names and types. Developers review and validate each change before accepting it in VS Code, GitHub Copilot CLI, or existing modernization workflows such as Modernize CLI. Data movement: Once the converted schema is deployed, Azure Database Migration Service moves the Oracle data into HorizonDB. Offline migration is now in preview, and online migration is coming soon. The tools handle the repetitive conversion work, so engineers can focus on review, testing, and the business logic that needs human judgment. Ready to get started with HorizonDB? Azure HorizonDB is generally available today in 13 Azure regions across the Americas, Europe, and Asia Pacific, with more regions coming online soon. Microsoft Fabric HorizonDB is available in public preview across Fabric regions worldwide. You can get started today by creating a new HorizonDB instance using the Azure portal, API’s, or the Visual Studio Code extension for PostgreSQL to begin exploring these capabilities firsthand. Azure HorizonDB Documentation: Microsoft Azure HorizonDB Documentation Additional Ignite Content For a closer look at the capabilities in this post, see our companion blogs on AI with Azure HorizonDB, covering hybrid search, graph, and AI pipelines, and migrating to HorizonDB, covering the new Azure Database Migration Service and Oracle migration in VS Code. HorizonDB AI: Azure HorizonDB: Data, Transactions, and AI in One Postgres Database HorizonDB Migrations: Complete Oracle to PostgreSQL Migration: Move Your Schema, Data, and Application Code HorizonDB is one part of our PostgreSQL investment on Azure. To see what else is new, read the Azure Database for PostgreSQL Ignite blog, and for the full set of database announcements, read the Azure Databases Ignite blog. Azure Database for PostgreSQL: More power, more resilience, better value: Azure Database for PostgreSQL at Ignite 2026 Azure Databases: Every intelligent experience starts with data4.5KViews4likes0CommentsAzure HorizonDB: Data, Transactions, and AI in One Postgres Database
Jonathon Frost, Principal Group Product Manager, PostgreSQL at Microsoft A key supplier just announced a delay. Within minutes, your operations team wants answers: Which parts are affected? Which open orders depend on them? Can another supplier step in? Those answers are spread across supplier notices, order records, and the web of relationships that links suppliers, parts, and orders. With Azure HorizonDB, you can bring all of it together and answer those questions with confidence. Azure HorizonDB is now generally available, and it’s built for exactly this kind of work. Operational records, ACID transactions, vector and full-text search, graph queries, and AI models all come together in one Postgres database. Developers can find the right evidence, follow dependencies, and apply approved changes to the records that run the business, all with the PostgreSQL knowledge they already have. To show how it all fits together, in this article we’ll build one example from start to finish: a supplier assistant that helps the operations team’s planners respond when a supplier runs late. The assistant finds the relevant supplier notices, even when they use different words, and traces the parts and open orders that depend on that supplier. It checks whether another supplier can step in, flags hidden risks, and explains every answer with the evidence behind it, while the planners make the final call. We’ll build the assistant one HorizonDB capability at a time, using SQL and openCypher, and we’ll keep coming back to one question: “Supplier A is delayed. Can Supplier B cover our open orders?” Here’s where each capability stands today: HorizonDB is generally available, AI Model Management and Knowledge Graphs are in Public Preview, and Database Agent for PostgreSQL is in Limited Public Preview, with access by request. Before you try a preview feature, check its documentation for supported versions, regions, and prerequisites. Two kinds of questions, one database The supplier assistant handles two kinds of questions. The first kind is about finding information, like an employee asking, “Show me notices about delayed valve deliveries.” The right notice might say “shipment postponed” instead of “delayed” so the assistant searches by meaning as well as by keyword. The second kind is about connections, like “Which open orders depend on Supplier A?” To answer it, the assistant follows the links from supplier to part to order, then checks each order’s current status. HorizonDB handles both kinds in one Postgres database: vector and keyword search to find the right notices, graph queries to follow the relationships, AI models you call from SQL to explain the results, and the live order records themselves. Because everything lives together, the assistant can point every answer back to the exact notice, relationship, and order behind it. And since it all shares the same tables, permissions, and transactions, when the team approves a change, such as confirming a supplier relationship and flagging the affected orders for review, both updates commit together as one unit. Meanwhile, AI Pipelines keep new documents flowing in the background. Here’s how each capability helps the assistant: One detail worth knowing: when the assistant calls a model, HorizonDB sends the prompt and inputs to your configured Microsoft Foundry endpoint, where the model runs. You stay in control throughout, with database permissions, endpoint access, network configuration, and data-handling policies all part of your application design. Give the assistant its first supplier notices Let’s start building. You’ll need a development database where you can allow extensions and create sample objects, plus model aliases, such as the defaults from AI Model Management (more on those in a moment). Before you run the first SQL block, add pg_textsearch to the allowlist and to shared_preload_libraries, keeping any entries already there, apply the parameter group, and restart. You’ll do the same for pg_durable and AGE later. These examples target azure_ai 2.5.6, which keeps the azure_ai extension name and gives its functions the new, simpler “ai.” namespace. Leave the default embedding model at 1,536 dimensions for this walkthrough. Our first example loads three short supplier notices, the raw material the assistant will search. Each notice gets one embedding, so it’s easy to see why a notice matches a question. Later, we’ll add a pipeline that splits longer documents into chunks. CREATE EXTENSION IF NOT EXISTS vector; CREATE EXTENSION IF NOT EXISTS pg_diskann; CREATE EXTENSION IF NOT EXISTS pg_textsearch; CREATE EXTENSION IF NOT EXISTS azure_ai; CREATE TABLE documents ( id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY, supplier_id text NOT NULL, title text NOT NULL, content text NOT NULL, updated_at timestamptz NOT NULL DEFAULT now(), embedding vector(1536) ); INSERT INTO documents (supplier_id, title, content) VALUES ('S-A', 'Valve shipment notice', 'Supplier A reports a delayed shipment of valve V-17.'), ('S-A', 'Revised delivery window', 'Supplier A has postponed dispatch of industrial valves.'), ('S-B', 'Alternative valve availability', 'Supplier B offers valve V-17 subject to qualification.'); Notice the identifiers. The text helps the assistant find a relevant notice, while the supplier IDs and part numbers connect it to your operational records. In a real corpus, also keep each document’s source location, version, access scope, and ingestion time. When every answer leads back to its evidence, people can trust it, and you can troubleshoot it. These three notices set up the question the assistant will help answer throughout this article: “Supplier A is delayed. Can Supplier B cover our open orders?” Supplier B’s offer is a promising lead, and “subject to qualification” tells us the team still needs to approve it. The assistant’s job is to bring together the notices, dependencies, and order records the team needs, highlight any gaps, and leave the final call to the people who own it. Put models to work through SQL Next, the assistant needs models, and AI Model Management makes that part easy. When you enable Managed Models, HorizonDB provisions the Microsoft Foundry resources, registers a curated set of models, configures azure_ai, and connects to the model endpoints with managed identity, so there’s nothing to wire up by hand. Three default aliases cover chat, embeddings, and reranking: default-chat, default-embedding, and default-reranker. Because your SQL uses these aliases, it stays focused on the task, whichever deployment sits behind each one. You can also register your own Foundry deployments and use them alongside Managed Models. That’s handy when your team already has an approved deployment or wants a model with different characteristics. The AI functions work with either option. AI functions for focused work These AI functions are the application's building blocks: Let’s try a few. The first statement embeds each notice so the assistant can search by meaning. The next two ask the model focused questions about a single notice, with prompts that keep the model on task and grounded in the notice text. UPDATE documents SET embedding = ai.embed(title || ' ' || content)::vector WHERE embedding IS NULL; SELECT id, ai.generate( 'Summarize only the notice below. ' 'Do not invent dates or affected orders. Notice: ' || content ) AS draft_summary FROM documents WHERE id = 1; SELECT id, ai.is_true( 'The following notice describes a delivery delay: ' || content ) AS suggested_review FROM documents WHERE id = 1; Now the assistant has a draft summary and a review suggestion, and the original notice stays untouched. Treat ai.is_true() as the model’s assessment, and validate extracted fields against your identifiers and business rules before they become trusted records. Keeping generated text separate from the source lets people check the evidence behind every answer. Synchronous calls like these are perfect for small, focused tasks. A large UPDATE, though, can make many model calls and keep the statement running until they all finish, so set sensible timeouts and keep an eye on model usage. For ongoing ingestion, AI Pipelines are the better fit, and we’ll get to them shortly. Find meaning with DiskANN, then add precision When an employee asks about “delayed valve deliveries,” the assistant should also find the notice that says “postponed dispatch.” Vector search makes that possible. ai.embed() turns text into a vector, and a distance operator measures how close a question’s vector is to each stored notice. DiskANN, through pg_diskann, indexes those vectors for fast approximate nearest-neighbor search, right on the pgvector vector type, with no separate vector store to run. A familiar index-and-query pattern Here’s the pattern with a standard DiskANN index. Our corpus is tiny, but the SQL looks the same at any scale. CREATE INDEX documents_embedding_diskann_idx ON documents USING diskann (embedding vector_cosine_ops); PREPARE supplier_neighbors (vector) AS SELECT id, supplier_id, title, embedding <=> $1 AS cosine_distance FROM documents ORDER BY embedding <=> $1 LIMIT 5; EXECUTE supplier_neighbors( ai.embed('Which notices describe delayed valve deliveries?') ::vector ); DEALLOCATE supplier_neighbors; The prepared statement embeds the question once and passes it in as a parameter, and the cosine operator class matches the cosine-distance ordering. Under the hood, DiskANN’s graph-based search hops between promising neighbors to reach the closest notices quickly. Two more features help as you grow: spherical quantization (SQ) compresses the vectors the index stores, and filter-aware retrieval combines similarity with metadata filters, such as a specific supplier. DiskANN Spherical Quantization (SQ) versus HNSW at one and ten million vectors How does DiskANN Spherical Quantization (SQ) compare with HNSW? Our latest benchmarks used VectorDBBench with Cohere datasets of 768-dimensional vectors, cosine distance, and top-100 retrieval, comparing the two at matched recall. All data and indexes fit in memory, so the results reflect index and search performance. Keep exact terms with BM25 and hybrid search When an employee asks about “V-17” specifically, the assistant needs that exact part, and BM25 keyword search delivers it. Through pg_textsearch, BM25 scores each match by how often a term appears, how distinctive the term is across all notices, and how long each notice is. Each repeat of a term counts a little less, so the most relevant notices rise to the top. Let’s add a BM25 index over the same notices and compare keyword search with hybrid search. The last statement shows an explicit reranking call on a small set of candidates; in your application, pass in only the candidates that retrieval selected and the user is allowed to see. CREATE INDEX documents_content_bm25_idx ON documents USING bm25 (content) WITH (text_config = 'english'); SELECT id, title, content <@> 'V-17 shipment delay' AS bm25_score FROM documents ORDER BY bm25_score LIMIT 5; SELECT * FROM ai.search( 'V-17 shipment delay', 'documents', search_type => 'hybrid' ); SELECT * FROM ai.rank( 'Which notice concerns delayed valve V-17 shipments?', ARRAY[ 'Supplier A reports a delayed shipment of valve V-17.', 'Supplier A has postponed dispatch of industrial valves.', 'Supplier B offers valve V-17 subject to qualification.' ] ); The BM25 operator returns negative scores, where lower means a stronger match, so the query sorts in ascending order. Tokenization and stemming use PostgreSQL text-search configurations, so check how your part numbers are tokenized. When an answer must match an identifier exactly, add an equality filter alongside BM25. Hybrid search gives the assistant the best of both: ai.search() merges the semantic and keyword results with Reciprocal Rank Fusion (RRF). RRF combines rank positions, which makes it a natural way to blend a cosine distance with a BM25 score, since the two use different scales. Notices that rank well in either list move on to the next stage. For an extra boost, an optional semantic reranker reads the question and each candidate together and makes a sharper relevance judgment. Each rerank is a model call, so use it on a short list of candidates. Reranking orders what retrieval found, so measure how well retrieval covers the right notices as well as the quality of the final ranking. Keep the assistant current with AI Pipelines Short notices are just the start. To help the assistant answer from supplier manuals, specifications, and contracts, split them into chunks so search can return the exact passage that answers a question. AI Pipelines turn that preparation into a repeatable, automated process. A pipeline declares a source, a series of steps, a sink, and a trigger. Step builders such as ai.chunk_step() and ai.embed_step() describe work the pipeline runs later, while ai.embed() runs right away inside your query. Behind the scenes, pg_durable gives long-running work checkpoints, retries, and recovery. Before creating the pg_durable extension, add it to shared_preload_libraries; the other extensions are already enabled. This pipeline writes its chunks to a separate doc_chunks table, alongside the notice-level embeddings from earlier. CREATE EXTENSION IF NOT EXISTS pg_durable; SELECT ai.create_pipeline( name => 'supplier_rag_pipeline', source => ai.table_source( table_name => 'documents', incremental_column => 'updated_at' ), steps => ARRAY[ ai.chunk_step(input => 'content'), ai.embed_step( model => 'default-embedding', input => 'chunk_text' ) ], trigger => 'on_change', sink => ai.table_sink('doc_chunks') ); SELECT ai.run('supplier_rag_pipeline'); The first run processes the existing notices, and the on_change trigger picks up new and changed ones after that, so the assistant stays current as suppliers send updates. Make sure updated_at advances whenever a notice changes: DEFAULT now() sets it on insert, so update it in your write path or with a trigger. The pipeline keeps doc_chunks up to date, so refresh the notice-level embedding column yourself when a notice’s text changes. And because the work is durable, long-running preparation picks up where it left off after an interruption. Follow the relationships with Apache AGE Now for the assistant’s second kind of question: “Which open orders depend on Supplier A?” Search found the delayed-valve notice, and graph queries connect it to the orders it affects. Apache AGE brings openCypher to HorizonDB, right alongside your relational tables, and both take part in the same PostgreSQL transactions, so an approved change commits as one unit. Let’s build a small supply graph. Supplier A ships part V-17 directly and also supplies Supplier B, which ships part P-09. Order 112 uses V-17 and order 245 uses P-09, which gives the assistant both direct and indirect dependencies to explore. First, allow AGE, add it to shared_preload_libraries; managed HorizonDB loads it for you, so you can skip the LOAD statement. CREATE EXTENSION IF NOT EXISTS age CASCADE; SET search_path = ag_catalog, "$user", public; SELECT ag_catalog.create_graph('supply'); SELECT * FROM ag_catalog.cypher('supply', $$ CREATE (a:Supplier {id: 'S-A', name: 'Supplier A'}), (b:Supplier {id: 'S-B', name: 'Supplier B'}), (p:Part {sku: 'V-17'}), (q:Part {sku: 'P-09'}), (o:Order {id: 112}), (r:Order {id: 245}), (a)-[:SHIPS]->(p), (o)-[:USES]->(p), (a)-[:SUPPLIES_TO]->(b), (b)-[:SHIPS]->(q), (r)-[:USES]->(q) $$) AS (result ag_catalog.agtype); CREATE TABLE public.order_status ( order_id bigint PRIMARY KEY, status text NOT NULL, needs_review boolean NOT NULL DEFAULT false ); INSERT INTO public.order_status (order_id, status) VALUES (112, 'open'), (245, 'open'); Building on this example, below the first query joins graph results with live order status to find the open orders that depend on Supplier A directly. The second follows up to three supplier-to-supplier hops to find indirect exposure. That hop limit is part of the answer. SELECT os.order_id, os.status, g.supplier, g.part FROM ag_catalog.cypher('supply', $$ MATCH (s:Supplier {id: 'S-A'})-[:SHIPS]->(p:Part) <-[:USES]-(o:Order) RETURN o.id, s.name, p.sku $$) AS g(order_id ag_catalog.agtype, supplier ag_catalog.agtype, part ag_catalog.agtype) JOIN public.order_status AS os ON os.order_id = g.order_id::text::bigint WHERE os.status = 'open'; SELECT * FROM ag_catalog.cypher('supply', $$ MATCH path = (s:Supplier {id: 'S-A'}) -[:SUPPLIES_TO*1..3]->(downstream:Supplier) MATCH (downstream)-[:SHIPS]->(p:Part) <-[:USES]-(o:Order) RETURN o.id, p.sku, length(path) $$) AS (order_id ag_catalog.agtype, part ag_catalog.agtype, supplier_hops ag_catalog.agtype); Graph and relational changes can share a transaction, too. When the team approves a decision, the application can record the reviewed relationship and flag the affected orders for review together, so both changes commit or roll back as one unit. Model calls happen outside that transaction, so treat the model’s proposal as its own step, ahead of the transaction that applies the approved decision. Knowledge Graphs (Public Preview) We’re also excited to announce Knowledge Graphs, now in Public Preview. We built the graph above by hand; Knowledge Graphs builds it for you, straight from supplier notices, manuals, and other documents, so the assistant’s map of your supply chain grows as new documents arrive. You start with an ontology: the entity types, properties, and relationships your application expects. Register it once with ai.create_graph(), which also creates the Apache AGE graph, and align each node’s identity with the supplier and part identifiers your operational records already use. SELECT ai.create_graph('supplier_kg', $o${ "nodes": [ {"label": "Supplier", "identity": "id", "properties": ["id"]}, {"label": "Plant", "identity": "name", "properties": ["name", "disp_label"]} ], "edges": [ {"label": "SHIPS_FROM", "from": "Supplier", "to": "Plant", "properties": ["document_id"]} ] }$o$); Next, put the model to work on the documents. Two new notices tell us which plant each supplier ships its valves from. A pipeline uses ai.extract_step() to pull the plant out of every new or changed notice and stores it in notice_facts, right next to the notice it came from, so every fact stays traceable to its source. INSERT INTO documents (supplier_id, title, content) VALUES ('S-A', 'Plant 2 maintenance', 'Supplier A ships valve V-17 from Plant 2, now paused for maintenance.'), ('S-B', 'Valve V-17 sourcing', 'Supplier B ships its V-17 valves from plant 2.'); CREATE TABLE public.notice_facts ( LIKE documents, metadata jsonb, plant text GENERATED ALWAYS AS (nullif(metadata ->> 'plant', '')) STORED, PRIMARY KEY (id) ); SELECT ai.create_pipeline( name => 'notice_facts_pipeline', source => ai.table_source( table_name => 'documents', incremental_column => 'updated_at' ), steps => ARRAY[ ai.extract_step( input => 'content', model => 'default-chat', data => ARRAY[ 'plant: string - plant the supplier ships from; empty string if none' ] ) ], trigger => 'on_change', sink => ai.table_sink( 'notice_facts', on_conflict => ARRAY['id'], on_conflict_action => 'DO UPDATE SET content = EXCLUDED.content, ' 'updated_at = EXCLUDED.updated_at, metadata = EXCLUDED.metadata' ) ); SELECT ai.run('notice_facts_pipeline'); Before loading the graph, resolve equivalent mentions to one canonical key. The model may write the same plant as “Plant 2” in one notice and “plant 2” in another. The deduplication step trims, collapses spaces, and lowercases each name so every variant merges into one node, and ai.normalize_entity() previews the key it produces: SELECT extracted, ai.normalize_entity(extracted) AS graph_key FROM (VALUES ('Plant 2'), ('plant 2'), (' PLANT 2 ')) AS t(extracted); A second pipeline maps the facts to Apache AGE nodes and edges with ai.graph_sink(). Each node MERGEs on its identity, so a repeated fact always lands on the same node, and the declarative mapping takes the place of hand-written Cypher. For names that need deeper resolution, such as abbreviations, anchor nodes on IDs you already trust, just as the Supplier node uses supplier_id. SELECT ai.create_pipeline( name => 'supplier_kg_pipeline', source => ai.table_source( table_name => 'notice_facts', incremental_column => 'updated_at' ), steps => ARRAY[ai.deduplicate_step('plant')], trigger => 'on_change', sink => ai.graph_sink('supplier_kg', $m${ "nodes": [ {"label": "Supplier", "property": "id", "from": "supplier_id"}, {"label": "Plant", "property": "name", "from": "plant"}, {"label": "Plant", "property": "disp_label", "from": "$.metadata.plant"} ], "edges": [ {"edge_label": "SHIPS_FROM", "from_key": "supplier_id", "to_key": "plant", "properties": {"document_id": "id"}} ] }$m$) ); SELECT ai.run('supplier_kg_pipeline'); Every edge records the notice that asserted it, so each relationship traces straight back to its evidence. Treat extracted edges as candidate evidence, and validate identifiers and relationship types before promoting them into operational use. Once both runs complete, openCypher traverses the new graph and joins the results with relational data, just as it did above. Now the assistant can check the question that matters most for our substitution: which other suppliers ship from the same plant as Supplier A? SELECT g.supplier, g.plant, d.title AS evidence FROM ag_catalog.cypher('supplier_kg', $$ MATCH (a:Supplier {id: 'S-A'})-[:SHIPS_FROM]->(p:Plant) <-[r:SHIPS_FROM]-(other:Supplier) WHERE other.id <> a.id RETURN other.id, p.disp_label, r.document_id $$) AS g(supplier ag_catalog.agtype, plant ag_catalog.agtype, document_id ag_catalog.agtype) JOIN documents AS d ON d.id = g.document_id::text::bigint; The answer connects two separate notices: Supplier B’s V-17 valves ship from Plant 2, the same plant Supplier A reports is paused for maintenance. That’s exactly the kind of hidden dependency the operations team wants to see before approving a substitution, and the assistant found it by connecting the documents for them. The graph supplies the context, and current records and business rules decide which orders need review. Faster ingestion and more effective graph planning Apache AGE also gets faster in HorizonDB GA, for both loading and querying. MERGE now finds existing paths with a hash-based lookup, and improved memory management frees temporary per-row allocations as it goes. Those gains add up when incoming records keep referring to the same suppliers and parts, just like the assistant’s supply graph. Reads get smarter planning. Property-aware selectivity estimates help PostgreSQL choose better join orders and methods, and index-friendly handling of eligible anchored undirected patterns keeps join shapes efficient. Both optimizations are on by default. Here’s what those improvements look like: Database Agent (Limited Public Preview) Our supplier assistant application helps the operations team. Database Agent for PostgreSQL, now in Limited Public Preview, helps the database professionals who keep the database running, right inside the PostgreSQL extension for Visual Studio Code. With orders, search, graphs, and AI sharing one database, that kind of operational visibility is a big win. The preview proactively monitors database health and investigates issues by correlating metrics, configuration, and workload signals. Take CPU saturation, the first documented diagnostic: the agent assembles the evidence, identifies likely causes, and recommends concrete remediation steps for the operator to review. Database Agent is advisory, which keeps your team in control. The operator reviews the report, checks each recommendation against the workload and application requirements, and decides what to apply. That’s the right balance when one database serves order updates, search, and graph queries: fast, evidence-backed investigation, with people making the production decisions. Ready to try it? Request access to the Database Agent Limited Public Preview: https://aka.ms/databaseagent-form Each request goes through approval and onboarding, where you’ll confirm that your service and deployment are supported. Start building! Ready to build your own AI application on Azure HorizonDB? Create a HorizonDB cluster, follow the extension setup guidance, and enable or register the models your application needs. Start with a small set of documents you can inspect, compare vector, BM25, and hybrid results, and then add reranking. Bring in the graph when your questions depend on relationships, and move to AI Pipelines when ingestion grows beyond a single SQL statement. The Apache AGE overview covers graph setup, and the DiskANN guide explains index configuration and SQ. Then bring your own workload and tune for what matters most to your users. Azure HorizonDB brings data, transactions, and AI together in one Postgres database. In this post, that let one supplier assistant search notices by meaning and by part number, trace supplier dependencies, spot a hidden risk, and help the team act on it in a single transaction. Knowledge Graphs builds that connected picture straight from your documents, and Database Agent helps keep the database itself healthy. We can’t wait to see what you’ll build next on Azure HorizonDB. Keep on developing!552Views3likes0CommentsComplete Oracle to PostgreSQL Migration: Move Your Schema, Data, and Application Code
Jonathon Frost, Principal Group Product Manager, PostgreSQL at Microsoft Moving your Oracle workloads to PostgreSQL on Azure just got a lot easier. Schema conversion, data migration, and AI-assisted application conversion now work together as one connected path to Azure Database for PostgreSQL flexible server and Azure HorizonDB. Convert your schema with the PostgreSQL extension for VS Code, move your data with Azure Database Migration Service (Azure DMS), and update your application code with the new migrate-oracle-app skill in the postgres-skills plugin. Your database and application teams can now work through the migration together, from the first converted object to the application that uses it. To see how the pieces fit together, we’ll follow an example order-processing service through all three stages: schema, data, and application code. We’ll convert its orders table, move the order data, and update the Java code that retrieves paid orders, all in a nonproduction rehearsal of the migration. Schema: convert your Oracle schema Connect and run discovery on your application’s Oracle database Schema conversion is built right into the PostgreSQL extension for VS Code. Create a migration project, connect to your Oracle database, and select the schemas your application uses. Discovery then checks your Oracle permissions and inventories the selected schemas, showing which objects it found, which it will extract, and which are excluded or invalid. It also lists dependencies on schemas you didn’t select, with a diagram of the references, so you can confirm the scope before extraction begins. Behind the scenes, schema conversion agents use your Microsoft Foundry model to translate the Oracle definitions into PostgreSQL. The tool then compiles the results in a scratch database and runs available static checks, such as plpgsql_check for PL/pgSQL routines. Translation and compilation work together across your tables, constraints, indexes, sequences, views, triggers, and PL/SQL packages, procedures, and functions. Configure your Azure destination Next, choose the scratch database where the tool validates the converted schema. Select Azure HorizonDB or Azure Database for PostgreSQL flexible server as the target type, then pick the connection and database. Validating on the same service you plan to run means the schema, data, and application stages all build on one environment. Give the conversion an empty or dedicated database of its own. Align its PostgreSQL major version, extensions, permissions, encoding, and locale with your planned deployment; readiness checks run as soon as you select the database and make no changes. Finally, connect your Microsoft Foundry model deployment using an API key or Microsoft Entra ID. Then select Migrate. The tool extracts your Oracle definitions and converts them in chunks, and the project view tracks progress as it goes. For our example order service, the orders table packs several common mapping decisions into a few columns. Here’s the Oracle definition: CREATE TABLE sales.orders ( order_id NUMBER(12,0) NOT NULL, placed_at DATE NOT NULL, total_amount NUMBER(12,2) NOT NULL, status VARCHAR2(20 CHAR) NOT NULL, CONSTRAINT orders_pk PRIMARY KEY (order_id) ); And here’s a representative PostgreSQL conversion, created in the sales schema: CREATE TABLE sales.orders ( order_id numeric(12,0) NOT NULL, placed_at timestamp(0) without time zone NOT NULL, total_amount numeric(12,2) NOT NULL, status varchar(20) NOT NULL, CONSTRAINT orders_pk PRIMARY KEY (order_id) ); Each choice preserves the values your application expects. The numeric(12,0) type keeps the identifier’s declared precision, and numeric(12,2) keeps amounts exact to the cent. Oracle DATE includes a time of day, so timestamp(0) without time zone carries the full wall-clock value into PostgreSQL. VARCHAR2(20 CHAR) becomes varchar(20), which PostgreSQL also measures in characters. Back in the project view, you can follow extraction and conversion progress across the whole schema: Review, refine, and deploy When conversion finishes, the HTML conversion report opens automatically with your discovery, extraction, and conversion results. Conversion Object Explorer then lets you compare each object’s Oracle and PostgreSQL definitions side by side and read its conversion notes, for converted and not-converted objects alike. Select Ask to have GitHub Copilot explain a conversion and its dependencies, or Fix to refine the object’s PostgreSQL file with Copilot’s help. Your PL/SQL converts too. Each package member becomes its own PostgreSQL routine: in the example below, the assign_manager procedure in hr_pkg becomes the function hr_pkg$assign_manager . Review each converted routine, then exercise the business operations it supports, such as assigning an order number or calculating an order total. When the schema is ready, select Setup instruction on the Conversion summary. The Setup Experience generates deployment instructions, PowerShell and Bash runners, and supporting SQL. Keep the setup directory inside the complete migration project, since the runners reference the converted deployment SQL next to it. From the setup directory, check your destination’s readiness first: bash setup.sh --validate-only To deploy into a database that already exists, use the existing-database mode: bash setup.sh --database-mode existing --validate-only A validate-only run checks connectivity, the PostgreSQL version, encoding and locale, permissions, target-schema occupancy, and extension availability, then writes a validation report without changing the destination. When the report looks good, run the same command without --validate-only to deploy the converted schema to your nonproduction destination. You now have a PostgreSQL schema ready for the data rehearsal. Schema conversion also produces coding notes that describe the Oracle patterns it found and how each one maps to PostgreSQL. Keep them with the deployed object names, types, and routine signatures. Together they form a shared contract between your teams: Azure DMS maps data into the same schema, and the application skill uses the notes to line up code changes with the objects you actually deployed. Data: move your data with Azure DMS The Oracle route in Azure DMS, now in Public Preview, supports offline migration from Oracle 19c and later to both Azure Database for PostgreSQL flexible server and Azure HorizonDB. With your converted schema deployed, DMS moves the rows from Oracle into the tables you prepared. Start with a rehearsal that uses representative data and your chosen Azure destination. For production, plan a migration window around four steps: pause writes to the source, copy the data, validate the results, and switch the application over. Pause scheduled jobs and integrations too, so the source data stays stable throughout the move. Select your prepared flexible server or HorizonDB resource and database, then configure the migration runtime and destination access. Use the same target in the application rehearsal, so schema, data, and code all come together in one environment. Azure DMS supports public and private network paths, along with Oracle connections over TLS. Configure connectivity to both endpoints: DNS and routing for private access, or firewall rules for public access. Set up certificate trust for TLS, then run the connection tests to confirm each route. Map schemas and follow the copy In the Azure portal, choose Oracle as the source, your Azure destination as the target, and offline mode. Then map each source schema to the target database and schema from your conversion project. For our order service, that maps Oracle’s SALES schema to the reviewed PostgreSQL sales schema. Start the migration and watch table-level progress and row counts as DMS copies the data. The monitoring view gives the whole team a shared picture of the run. Keep the migration record with the schema revision, so every rehearsal builds on the same configuration. Validate the order data After the copy, run the same read-only query against the paused Oracle source and the PostgreSQL destination. Grouping orders by status gives a quick comparison of row counts, total value, and date range for each group: SELECT status, COUNT(*) AS order_count, SUM(total_amount) AS order_total, MIN(placed_at) AS first_order_at, MAX(placed_at) AS last_order_at FROM sales.orders GROUP BY status ORDER BY status; Pair these totals with lookups of specific orders by key. Counts confirm the size of each group, while totals and timestamps confirm the business values. Include fractional amounts, character data, and date boundaries that represent your workload. Finish the load by checking constraints, indexes, privileges, and statistics on the destination. If your application uses sequences or identity columns, advance each one past the highest loaded key before you enable writes. The copied orders also make great fixtures for the application work ahead. Pick a few orders with known totals and statuses, and write down the results you expect when the application retrieves or updates them. That gives the code conversion a concrete set of business operations to verify. App Code: convert your Oracle application Add migration skills to your coding agent The new migrate-oracle-app skill completes the journey inside your application repository. It ships in Microsoft’s postgres-skills plugin and gives your coding agent migration workflows, scripts, language guidance, and PostgreSQL tools. The skill uses your deployed schema and the coding notes from schema conversion to guide changes to the code that calls the database. The skill covers Java, .NET, Python, C, and C++, with toolchain guidance for discovery, builds, tests, integration, and packaging. For our order service, we’ll follow a small Java query through the conversion. In GitHub Copilot CLI, install the complete plugin from its marketplace: copilot plugin marketplace add microsoft/postgres-skills copilot plugin install postgres-skills@postgres-skills You’ll need Node.js 22 or later, npm and npx, Git, Copilot access, and your application’s toolchain, which for our Java service means the JDK and Maven. Add Docker for PostgreSQL integration tests, and start a new agent session after you install the plugin. In Copilot CLI, the skill reaches PostgreSQL through the bundled postgres-mcp server. In VS Code Copilot, it uses the PostgreSQL extension’s MCP tools. Either way, save a connection profile in the provider your host uses. For this example, we saved a read-only profile named orders-rehearsal that points to the orders_pg database and its sales schema. The profile supplies the connection, while the schema and coding notes connect that target to the source repository. Assess with the schema conversion context Pass the extracted Oracle DDL with oracle-ddl-folder and the reviewed coding notes with notes. You can point notes at the coding_notes.md file itself, or at a migration project directory, where the skill looks for results/application_guidance/coding_notes.md. This assessment prompt brings together the order-service repository, the saved PostgreSQL profile, and the schema review artifacts: /migrate-oracle-app mode=assess codebase=. postgres-connection=orders-rehearsal database=orders_pg schema=sales oracle-ddl-folder="./schema-review" notes="./schema-review/coding_notes.md" Assessment starts by finding where the application actively uses Oracle and identifying its language and toolchain. It traces database calls, SQL, driver dependencies, and test coverage to build a focused conversion plan. Read-only checks against your PostgreSQL target then match those code references to the deployed objects and routine signatures. For the order service, ask the agent to trace the order query, its parameter binding, its result types, and any package calls through the reviewed mappings. Then open .github/migrate-oracle-app/assessment/assessment-report.md in the repository. The report brings the Oracle inventory, target mappings, test discovery, and baseline results together in one place, with machine-readable assessment data alongside it, giving the team a concrete starting point for the code changes. Convert the query and its tests The skill has three modes: assess builds the plan, convert applies a current assessment, and assess-and-convert runs both in one pass. In convert mode, the skill previews source changes for your approval. Edits land in your existing Git worktree, ready for your team’s usual diff review and commit process. For our order service, we’ll focus the conversion on the JDBC driver, parameter binding, and tests while keeping the API contract intact. This prompt turns on the tests option: /migrate-oracle-app mode=convert codebase=. postgres-connection=orders-rehearsal database=orders_pg schema=sales oracle-ddl-folder="./schema-review" notes="./schema-review/coding_notes.md" options=tests The tests option adds a test baseline, generated unit and integration tests, and fixes for affected tests. The skill also discovers and runs the project’s existing tests. PostgreSQL integration tests run in a disposable Docker environment, and you can separately authorize tests that write to the target database. Here’s the order service’s read path for paid orders on the Oracle JDBC driver. It binds the status through an Oracle named parameter, :status, using the driver’s OraclePreparedStatement extension: String sql = "SELECT order_id, total_amount FROM sales.orders " + "WHERE status = :status ORDER BY order_id"; try (PreparedStatement ps = oracleConn.prepareStatement(sql)) { ps.unwrap(OraclePreparedStatement.class) .setStringAtName("status", "PAID"); try (ResultSet rs = ps.executeQuery()) { while (rs.next()) { orders.add(new Order(rs.getLong("order_id"), rs.getBigDecimal("total_amount"))); } } } After conversion, the same method runs on the PostgreSQL JDBC driver with a standard positional parameter: String sql = "SELECT order_id, total_amount FROM sales.orders " + "WHERE status = ? ORDER BY order_id"; try (PreparedStatement ps = pgConn.prepareStatement(sql)) { ps.setString(1, "PAID"); try (ResultSet rs = ps.executeQuery()) { while (rs.next()) { orders.add(new Order(rs.getLong("order_id"), rs.getBigDecimal("total_amount"))); } } } The PostgreSQL JDBC driver binds ? placeholders by position, so the Oracle-specific setStringAtName call becomes a standard setString(1, "PAID"). The query keeps its columns and ordering, and getBigDecimal returns the numeric(12,2) amounts exactly. For production list endpoints, add paging or streaming. Keep decimal values and the API’s agreed serialization unchanged. Follow the reviewed object mappings, package the PostgreSQL JDBC driver (org.postgresql:postgresql) with the application, and use the skill’s language guidance for timestamps, transaction boundaries, and connection pooling. Run the application workflow on PostgreSQL Testing is built into the conversion. Docker-based PostgreSQL integration tests exercise the application’s real driver paths, and read-only checks confirm that the code matches the destination’s actual objects and capabilities. With your authorization, runtime tests can also exercise the target environment as part of the rehearsal. Match the PostgreSQL test image to your target’s major version, then run the service-specific checks against your chosen Azure resource, using its deployed objects, extensions, application identity, and connection configuration on flexible server or HorizonDB. Bring the order fixtures from the data rehearsal into these tests: an unpaid order, a paid order with a fractional total, and an order at a timestamp boundary. Run the same application operations and compare the results with the expected business behavior. That continuity turns schema, data, and code into one connected migration. The conversion report at .github/migrate-oracle-app/conversions/conversion-report.md collects the file diffs and results for code conversion, build and packaging, unit tests, PostgreSQL integration tests, and target validation. It gives the database and application teams one shared place to review the release. Bring Oracle migration into Modernize CLI Java and .NET teams already using Modernize CLI can run Oracle-to-PostgreSQL application migration there too, now in Public Preview. The source-based workflow follows three steps (assess, plan create, and plan execute) and runs during development, well ahead of the production data-migration window. It can use exported PostgreSQL definitions to carry object names, type mappings, and routine signatures into assessment and conversion. To bring the converted schema into a Java or .NET application, place its schema-only PostgreSQL definitions in the application workspace and point .github/modernize/oracle-postgres.json at that folder: { "postgres-ddl-folder": "database/postgres", "options": ["tests"] } Run modernize assess with --format html, and supply an assessment YAML file that sets analysisCoverage: full through --assess-config. The assessment produces an HTML aggregate report, an Oracle-to-PostgreSQL component report, and Markdown planning context. Then pass the assessment report path that the run prints to modernize plan create with --assess-file-path. The plan uses migration-oracle-to-postgresql-app-java for Java or migration-oracle-to-postgresql-app-dotnet for .NET. Review the plan, then run modernize plan execute to convert the code. Modernize tracks task progress, code edits, build and test results, and local commits as it works. Here too, the tests option adds a test baseline, unit tests, disposable PostgreSQL integration tests, and fixes for affected tests, all exercising real driver and repository paths against the converted objects. Then bring the converted application into the Azure rehearsal described above, so schema, data, and code are validated together. One connected journey from Oracle to PostgreSQL With your schema, data, and application rehearsals complete, you’re ready for the production window: pause, copy, validate, and switch. Choose Azure Database for PostgreSQL flexible server or Azure HorizonDB, start with an application your team knows well, and get your first Oracle workload running on PostgreSQL in Azure. Happy migrating! Migration resources Schema Conversion PostgreSQL extension for VS Code Oracle schema conversion (Microsoft Learn) Data Movement Oracle to Azure Database for PostgreSQL flexible server - Azure DMS documentation Oracle to Azure HorizonDB - Azure DMS tutorial App Code Conversion Migration guide migrate-oracle-app skill Modernize CLI Integration Modernize CLI overview (Microsoft Learn) Install and get started (Microsoft Learn) Modernize CLI command reference (Microsoft Learn)764Views1like0CommentsDecisions, decisions: Your guide to PostgreSQL at Microsoft Ignite 2026
Microsoft Ignite returns to San Francisco and online from November 17 to 20, 2026, and PostgreSQL is all over the agenda. Postgres has become the database of choice for modern application development, and more organizations are now relying on it to modernize the systems they already run and to power the AI apps and agents they are building next. Whether you are a technology leader shaping your data strategy, an architect weighing your options, or a developer who wants to see what's possible, we've done the decision making for you just this once. Below are 20 sessions planned for Ignite with PostgreSQL at their core that you can add to your schedule. Plus, we’ve highlighted a few activations and surprises you should plan to check out if you want to learn more about Postgres, engage with the experts, and potentially win an Xbox. One more thing: we have some exciting news to share for PostgreSQL at Microsoft. Tune in on Day 1, Tuesday, November 17, and keep an eye on this blog. Before you build your schedule Ignite has several session formats, and not all of them are streamed. Breakouts are 45 minutes, streamed live for the digital audience and available on demand. Theater sessions (25 minutes) are in person only but recorded for on-demand viewing. Lightning talks (15 minutes), table talks (45 minutes) and hands-on labs (75 minutes) are in-person experiences and are not recorded, so plan to be in the room. Labs require an RSVP. All times below are Pacific Time. Use the session scheduler in the Ignite catalog to save your favorites: Start with the big picture then find the right fit If you're new to PostgreSQL on Azure, or you're deciding where your next workload should land, start here. BRK362 | Data Foundations for Modern Apps, AI, and Agents Wednesday, Nov 18, 9:00 AM Join Microsoft engineering leaders to see how the database portfolio across Azure and Microsoft Fabric helps organizations modernize mission-critical applications while building a new generation of intelligent experiences. BRK366 | Database SOS: Choosing the right engine for your job Thursday, Nov 19, 1:30 PM Experts from across the Azure databases team compare database engines and share how to pick the right one for your next project. THR923 | What's new for open source data on Azure? Thursday, Nov 19, 1:30 PM Catch the most important open-source data updates on Azure in one technical briefing, including enhancements to Azure HorizonDB and Azure Database for PostgreSQL, and learn which capabilities matter most for your next modernization decision. THR884 | Two PostgreSQL services, one confident architecture decision Wednesday, Nov 18, 2:15 PM Which PostgreSQL on Azure service is the right fit for your workload? See how Azure Database for PostgreSQL compares to Azure HorizonDB across scale, availability, AI integration, operations and modernization needs. TT1865 | Bring your workload, leave with the best Postgres fit Tuesday, Nov 17, 2:00 PM Bring a real workload and pressure-test your architecture with peers and PostgreSQL experts. Compare requirements for scale, availability, migration, AI, operations and cost, and leave with a clearer decision framework, not a generic product pitch. Build AI apps and agents on PostgreSQL For teams turning operational data into AI experiences, these sessions show how to keep the stack simple and the data trusted. BRK370 | Build integrated AI apps with Azure HorizonDB Tuesday, Nov 17, 4:30 PM See how Azure HorizonDB brings PostgreSQL data together with AI functions, durable AI pipelines, vector and hybrid search, semantic ranking and knowledge graphs, through a technical walkthrough and live demo. BRK359 | Build intelligent PostgreSQL apps with Microsoft Fabric HorizonDB Tuesday, Nov 17, 3:15 PM Discover a Fabric-native PostgreSQL experience that lets applications query operational and analytical data through a single PostgreSQL experience, reducing data movement and ETL complexity while delivering real-time insights with built-in governance. THR881 | Microsoft Fabric HorizonDB: One PostgreSQL endpoint for AI apps Thursday, Nov 19, 11:05 AM Build intelligent applications without stitching together databases, analytics platforms and AI services. See how one PostgreSQL endpoint can unify transactional and analytical workloads so you can query live operational data and large-scale analytics together. LTG1254 | 5 ways to simplify your Postgres AI data pipelines on Azure Tuesday, Nov 17, 2:00 PM You can't ship AI features if pipelines break, drift or need constant glue code. Learn five PostgreSQL patterns to keep content fresh, generate embeddings and serve context to your applications. LTG1251 | Do you really need a separate vector database? Wednesday, Nov 18, 9:50 AM Choose a retrieval architecture based on the problem, not the label. In 15 minutes, learn when PostgreSQL-native vector, keyword and hybrid search can support an AI application, when graph context adds value, and which signals truly justify a separate service. LTG1252 | See Azure HorizonDB come alive in VS Code Wednesday, Nov 18, 1:20 PM Watch the PostgreSQL developer experience get faster right inside VS Code. This live demo shows schema exploration, querying and AI-assisted development for Azure HorizonDB without leaving your editor. LAB692 | Build a grounded AI agent with Azure HorizonDB for PostgreSQL Tuesday, Nov 17, 6:15 PM; Wednesday, Nov 18, 12:00 PM; Thursday, Nov 19, 2:45 PM; Friday, Nov 20, 9:00 AM Your agent is only as good as the data behind it. Build a working agent that retrieves trusted context from operational PostgreSQL data: create an AI pipeline, generate embeddings, combine vector and keyword retrieval, and connect the results to an agent workflow. Modernize and migrate with confidence Moving off a legacy database or running a large Postgres fleet? These sessions focus on lowering risk and moving faster. BRK451 | Accelerate Your Move to PostgreSQL with AI-Assisted Migration Thursday, Nov 19, 9:00 AM Modernizing databases doesn't have to be complex. Learn how AI-assisted and built-in tools simplify assessment, schema and code conversion, and data migration, and see a live demo of how to identify blockers early and build a repeatable modernization path. BRK368 | Postgres in Production on Azure: Lessons in Fleet Modernization Thursday, Nov 19, 11:30 AM Running PostgreSQL at scale requires performance, security, resilience and cost efficiency. Explore the latest innovations in Azure Database for PostgreSQL, including fleet management, elastic clusters, next-generation compute and storage, and immutable backups, and leave with proven patterns and real-world insights TT1702 | Eliminate your biggest Oracle migration blocker Thursday, Nov 19, 2:25 PM Bring your hardest Oracle migration question. Discuss assessment gaps, unsupported objects, conversion, validation, downtime and cutover with Microsoft experts and peers, and leave with practical next steps for moving to PostgreSQL on Azure. LTG1257 | Upgrade smarter with next-gen Postgres on Azure Thursday, Nov 19, 3:00 PM Upgrades stall when compatibility and rollback risk aren't proven early. See how to turn your next major-version upgrade on Azure Database for PostgreSQL into a repeatable test plan that checks extensions, performance, operations and rollback. Run PostgreSQL securely and reliably at scale For leaders and operators responsible for uptime, compliance and performance. BRK361 | Azure HorizonDB: Deep Dive into Architecture and Internals Wednesday, Nov 18, 4:15 PM Join the engineering and product leaders behind Azure HorizonDB for a look under the hood of a cloud-native PostgreSQL service: the storage engine, disaggregated compute and storage, replication, recovery design, and the elasticity that delivers predictable performance and resilience at scale. THR882 | Stop tuning databases, start optimizing with AI Thursday, Nov 19, 10:10 AM Most organizations don't have a database performance problem; they have an expertise bottleneck. See a new approach that combines observability, diagnosis, optimization recommendations and controlled remediation in a single AI-powered experience, while you keep governance and control. LTG1258 | Break your Postgres before production causes a breakdown Tuesday, Nov 17, 4:00 PM Validate recovery before an outage becomes the test. Watch a controlled PostgreSQL failure exercise and trace how backup, restore, immutability, geo-redundancy and retention choices affect your recovery objectives. TT1866 | Lock it down: Running PostgreSQL in regulated environments Tuesday, Nov 17, 4:00 PM Compare practical approaches for operating PostgreSQL under security, compliance and recovery requirements, covering identity, FIPS mode, immutable backups, long-term retention and confidential virtual machines. Bring your constraints and hear how peers turn policy into architecture. Play Decision Point: A game for Postgres Between sessions, come put your instincts to the test. Decision Point: A game for Postgresis a browser-based game that puts you in the role of a lead engineer racing to get an AI application launch-ready using Azure HorizonDB in VS Code. You don't need to be a database expert to play. Every round is a real-world decision, and every decision counts. In the "Ship the AI Agent" scenario, you're the lead engineer for Basket IQ, an AI shopping agent that is about to launch. You'll work through three engineering incidents and make the architecture and optimization calls that shape your Launch Readiness score. You'll find Decision Point in The Hub at various spots: Azure Community AMD booth #6044 Azure HorizonDB booth #AZ-11 See you at Ignite Whether you join us in San Francisco or virtually, we can't wait to connect. Register and explore the full catalog, stop by the Azure HorizonDB booth in the Expert Meet-Up area to meet the PostgreSQL team, and follow Microsoft for PostgreSQL on LinkedIn and X for live updates from the event. And don't forget to play Decision Point.373Views2likes0CommentsPostgres Trip Report from Postgres Summit US 2026
Photo gallery: Microsoft team at Postgres Summit US 2026 Postgres Summit US 2026 was a conference of connections: between database internals and the infrastructure underneath them, between AI ideas and production engineering, and between the people building PostgreSQL today and those who will carry it forward. For anyone who could not be in New York, this report captures the talks, technical questions, hallway conversations, and community moments that defined the week. The event also opened a new chapter. After years as PGConf NYC, the conference returned as Postgres Summit US, bringing more than 240 developers, DBAs, architects, contributors, technology leaders, and partners to Convene on Broadway from September 30 through October 2. The Microsoft team contributed six sessions across performance, replication, infrastructure, benchmarking, AI, developer tools, and community sustainability. Around those talks was a much larger program shaped by speakers and attendees from across the PostgreSQL ecosystem. 01 - Microsoft speaker highlights 02 - What the wider program was talking about 03 - Workshops and the hallway track 04 - The conversations continued after the slides 05 - What we brought home from New York 06 - Explore the Postgres Summit US 2026 program Gratitude for the organizers, speakers, sponsors, and attendees 01 - Microsoft speaker highlights Abe Omorogbe and Jared Meade: "Tour of Postgres on Azure with HorizonDB, Agentic workflows, & VS Code." Their end-to-end tour moved from HorizonDB's shared-storage architecture, rapid failover, and elastic read scale to SQL-declared chunking and embedding pipelines, durable incremental processing, intelligent product search, Copilot CLI Postgres skills, and an interactive VS Code query-plan visualizer. Although the demos used Microsoft technology, the engineering message applied broadly: production AI needs a dependable data layer, observable workflows, and tools that help developers understand what the database is doing. Microsoft Azure HorizonDB Documentation Landing Page | Microsoft Learn Claire Giordano delivered two talks that connected PostgreSQL's technical foundations with its future. In "A Secret Decoder Ring for Postgres Replication: A Beginner's Guide," Claire turned the alphabet soup of logical, physical, streaming, synchronous, and asynchronous replication into approachable mental models tied to high availability, disaster recovery, read scaling, migrations, WAL, and Patroni. Slides from Claire's talk: A Secret Decoder Ring for Postgres Replication: A Beginner's Guide In Claire Giordano's talk, "Building the next generation of Postgres contributors: what's working & what's getting in the way," she marked PostgreSQL's 30th anniversary by examining the project through three lenses: the soul of its people and culture, the machine of its workflows and governance, and the fuel of economics and funding. Together, the talks asked both how PostgreSQL keeps data moving and how the community keeps itself moving. Slides from Claire's talk: Building the next generation of Postgres contributors: what's working & what's getting in the way Divya Bhargov: "Same Postgres, Moving Ground: How Infrastructure Changes Shape Database Behavior." Divya explored a production reality that applies to every environment: PostgreSQL can remain stable while VM families, storage layers, operating systems, kernels, and networking stacks change underneath it. Drawing from large-scale operational experience, she showed why teams should correlate database symptoms with infrastructure transitions before assuming every behavioral change originated inside PostgreSQL. Gayathri Paderla: "PostgreSQL Performance Mysteries: When Low IOPS Still Means High Latency." Gayathri unpacked real production cases where latency increased even though familiar signals such as IOPS, query duration, CPU pressure, and indexing did not point to the cause. The trail instead led through memory behavior, cache eviction, PostgreSQL shared buffers, the operating system page cache, and storage interactions. The session showed how to correlate pg_buffercache, pg_stat_statements, wait events, storage behavior, and cache-warming techniques such as pg_prewarm. The practical lesson was memorable: low IOPS does not mean storage is uninvolved, and a normal query metric does not mean the application is experiencing normal latency. Slides from Gayathri's talk: PostgreSQL Performance Mysteries When low IOPS still means high latency - Speaker Deck Richard Yen: "Pushing PostgreSQL to the Limit: How to Benchmark Hardware with Postgres." Richard challenged the numbers used to sell hardware and cloud storage. Massive advertised IOPS or throughput does not tell a DBA whether the real limit will be storage, CPU bandwidth, PostgreSQL locks, checkpoints, archive_mode overhead, or autovacuum interference. His session focused on building an impartial PostgreSQL benchmarking harness, instrumenting both system and database metrics, and avoiding synthetic-test traps that can produce confident but misleading conclusions. Slides from Richard's talk: Pushing PostgreSQL to the Limit: How to Benchmark Hardware with Postgres 02 - What the wider program was talking about Beyond the Microsoft sessions, the schedule showed where PostgreSQL engineering is headed. The keynote "Lessons Learned from Developing Agentic AI Tooling for Postgres" set a practical tone for AI. Other sessions explored hybrid search, agent memory, AI-agent security, PostgreSQL 19, planner behavior, VACUUM, index prefetching, change data capture, driver maintenance, Kubernetes migrations, replication, and zero-downtime operations. The breadth of the program mattered. Healthcare, financial services, government, SaaS, analytics, and cloud-native teams have different workloads, but they share the same production requirements: reliability, security, predictable performance, recovery, regional availability, and a clear way to choose the right platform for each workload. The question is no longer simply whether PostgreSQL is enterprise ready. It is how each organization should use PostgreSQL without creating unnecessary operational complexity. 03 - Workshops and the hallway track The workshop track made the conference approachable for people at different stages of their PostgreSQL journey. Sessions such as "Getting Comfortable with Postgres," "Postgres DBA Basics Nobody Told You,"And "Locks, Monitoring & the Config That Matters" turned administration, configuration, troubleshooting, and performance concepts into hands-on practice. That mix of beginner-friendly learning and deep technical sessions is one of the best things about PostgreSQL conferences. Photo gallery: hands-on learning and community conversations 04 - The conversations continued after the slides The Day 1 reception gave everyone time to compare notes after the first full program, and many of the best exchanges continued at sponsor booths, over dinner, and between sessions. Engineers compared production lessons. Contributors heard directly from users. Teams discovered that problems they had considered unique were often shared by people at other companies. That hallway track is difficult to capture in an agenda, but it is a big reason people travel to PostgreSQL events. Postgres Summit US is organized by the United States PostgreSQL Association (PgUS) and supported by volunteer organizers, reviewers, speakers, and sponsors. The sponsor community included cloud providers, database companies, observability vendors, and open-source specialists. Microsoft was proud to participate, but the event's real strength came from the range of people willing to share what they had built, what had failed, and what they had learned. 05 - What we brought home from New York Microsoft brought home five key takeaways from Postgres Summit US 2026: Production AI is now a PostgreSQL architecture and operations discussion. The community is moving beyond AI prototypes toward dependable data foundations, secure agent access, observable pipelines, hybrid search, and production-ready developer tooling. Infrastructure changes can affect database behavior even when PostgreSQL itself has not changed. VM, storage, operating-system, kernel, and networking changes must be considered when diagnosing PostgreSQL performance and reliability. Observability and explainability are essential at scale. Effective diagnosis requires correlating PostgreSQL internals, query behavior, memory, caching, wait events, infrastructure metrics, and storage behavior rather than relying on one familiar metric. Organizations want to consolidate more workloads on PostgreSQL without increasing operational complexity. Customers expect simpler operations, predictable performance, stronger recovery, high availability, and clear guidance for selecting the right PostgreSQL platform. Community knowledge sharing remains one of PostgreSQL’s greatest strengths. Technical sessions, workshops, hallway conversations, and candid production lessons help practitioners, contributors, and new community members learn from one another. These takeaways reinforce Microsoft’s continued investment in PostgreSQL performance, developer experiences, AI integration, operational reliability, and open-source collaboration. The transition from PGConf NYC to Postgres Summit US felt appropriate. The event still had the technical depth, welcoming hallway conversations, and practical learning that people value, but the scope was broader. AI-enabled applications are moving into production, PostgreSQL 19 is opening new possibilities, and operators are asking sharper questions about reliability and performance. Microsoft will continue investing in PostgreSQL performance, developer experiences, AI integration, and open-source collaboration. We are already looking forward to the next gathering. Microsoft booth, reception, community dinner, and New York moments 06 - Explore the Postgres Summit US 2026 program Conference schedule :https://postgresql.us/events/postgressummitus2026/schedule/ Conference sessions and abstracts: https://postgresql.us/events/postgressummitus2026/sessions/ Gratitude for the organizers, speakers, sponsors, and attendees A conference like this only happens because many people contribute behind the scenes. Thank you to Postgres Summit US, the volunteer organizers, the program committee, the speakers who did the work behind every slide and demo, the sponsors who helped make the event possible, and the attendees who brought thoughtful questions and real production experience into every room. To everyone who shared a lesson, asked a difficult question, demonstrated a new idea, or welcomed someone new to the community: thank you. Hopefully these photos and highlights give you a feel for the energy in New York. See you at the next PostgreSQL gathering.276Views2likes0CommentsWhy Microsoft contributes to Postgres: What I tell people
Last week at PGConf.EU in Valencia, I gave a talk about the Postgres work being done at Microsoft (slides here). Getting ready for that talk, I kept noticing how much has changed in the Postgres team at Microsoft in the last 8 years. When I joined Microsoft through the Citus Data acquisition in early 2019, Microsoft contributed to Postgres in only one of the 9 ways it does today: our Azure Database for PostgreSQL managed service. We weren't sponsoring Postgres community conferences. We weren't sharing our expertise via blog posts and conference talks. We didn't have a Postgres open source contributors team. We didn't have a monthly podcast. And POSETTE: An Event for Postgres didn’t exist yet. It's heartwarming to see how far we've come. But sometimes, when I'm meeting people new to open source—especially those with a more proprietary software background—they will ask: “Why does Microsoft contribute to the Postgres open source project?” And when they learn my job is to lead our Postgres community efforts, they'll ask: “How do you know your open source work drives revenue?” Here's what I tell people about why Microsoft contributes to Postgres. Contributing upstream makes Postgres better for everyone, including Azure customers In my PGConf.EU 2026 talk, I used a slide like the one below to show how upstream and downstream fit together. Open source people use the “upstream” and “downstream” terms all the time, but they're not obvious to everyone. Quick definition: the upstream project is the Postgres open source project itself. Downstream services, like Azure Database for PostgreSQL and Azure HorizonDB, are built on top of it. Figure 1: Slide from my talk at PGConf.EU 2026, depicting the upstream Postgres open source project and our downstream managed services on Azure. If you run a Postgres managed service, you depend on Postgres—and we believe that means you have a responsibility to give back. So since 2019, we’ve been building a Postgres open source contributors team, to do our part to keep Postgres healthy for the long haul. And our upstream work benefits everyone who uses Postgres, including our downstream Azure customers. What might not be obvious: the things we learn running a Postgres service on Azure help the Postgres project too. When our engineers find a bug in Postgres while running it on Azure, they fix it upstream, which benefits Postgres users everywhere. Even open source developers need to eat Back in 2023 I wrote a meaty treatise of a blog post (complete with a hand-drawn infographic) about all the Postgres work happening at Microsoft. In that post, I included a section on why Microsoft has been building a team of Postgres contributors whose main focus is the upstream project. My answer to “why” hasn’t changed—I’ve included it in every edition of the annual what’s new blog post since, including the 2026 edition of What’s new with Postgres at Microsoft: In order to thrive, an open source ecosystem needs commercial support as well as volunteer efforts. Even open source developers need to eat! For the Postgres open source ecosystem to flourish, companies like Microsoft need to support the project by funding development in the Postgres core. Which we do. PostgreSQL is a complex piece of software that runs mission-critical workloads across the globe. To provide the best possible experience on Azure, it follows that we need to thoroughly understand how it works. By having PostgreSQL committers and contributors on our team, they can share knowledge internally across different orgs, or directly answer internal questions regarding incidents or extension development. Because today's cloud operates at a scale most on-prem solutions never encountered, unique cloud data center problems, often relating to performance, now require special attention. Our in-house team of deep Postgres experts are focused on tackling these cloud-scale issues upstream, in the Postgres core. Another benefit: our team's Postgres expertise gives Azure customers confidence in our cloud database services, too. Commercial funding of PostgreSQL developers has another benefit: it gives developers the long-term stability to pursue the big things, the groundbreaking changes that are super important to the future. In particular, the Postgres contributor team at Microsoft is focused on some big architectural changes (example: Asynchronous IO) that you wouldn’t be able to do without the funding for a full-time, multi-year effort. Example: one of those groundbreaking Postgres changes I mentioned landed last year: Asynchronous IO shipped in Postgres 18 and continues to evolve in Postgres 19 on forward. If I were writing those 2023 words above fresh today, I’d add one more reason: The Postgres project is about more than code. The project also runs on docs, the build farm, web infrastructure, packaging, translations, mentoring, conferences, trademark protection, the extension ecosystem, meetups, and more. That’s why our Postgres team contributes to the project in all sorts of ways beyond code. Nine ways Microsoft contributes to Postgres When explaining to people why we have a team dedicated to the upstream Postgres project, it helps to see how we contribute to the broader Postgres ecosystem—both our work on the Postgres code and community, and our managed services on Azure. So let’s walk through nine of the ways our team is contributing today. Figure 2: Infographic of 9 of the ways our team at Microsoft is contributing to the Postgres ecosystem. Clockwise, starting with our code contributions: Upstream Contributions to Postgres: Microsoft employs a dedicated team of Postgres committers and contributors working directly on upstream Postgres—plus a team working on open-source extensions such as Citus. While many of us believe commits are not a perfect measure of impact, they are a metric we have and they do give you a feel for scope. In the first release candidate of Postgres 19 (RC1), Microsoft’s team contributed 15% of the author commits (631 out of 4,098) and 17% of patch reviews (1,232 out of 7,240). The Microsoft team’s work spans performance, query planner, Async IO, security, and more. (Postgres 19 release notes) Supporting Postgres Events: Microsoft sponsors, and helps to organize, PostgreSQL community conferences and user groups worldwide. In the last year we sponsored 16 Postgres conferences, including PGConf.EU, PGConf.dev, PGConf India, and Postgres Summit US. Our team also shows up as speakers and program committee members. And several people on our team volunteer their time to co-organize conferences too: Daniel Gustafsson with Nordic PGDay; Melanie Plageman with PGConf.dev; Tomas Vondra with Prague PostgreSQL Developers Day (P2D2); and Cornelia Biacsics with PostgreSQL Conference Germany. Benefactor Sponsor of PGCA & the PostgreSQL project: Earlier this year, Microsoft made a benefactor donation to the PostgreSQL Community Association (PGCA), a non-profit chartered by the PostgreSQL core team in 2011 to protect and defend the Postgres trademarks. Full disclosure: I wear two hats here: I serve on the PGCA Board of Directors, and I work at Microsoft. With my PGCA hat on, I’m so appreciative of Microsoft’s support for the PGCA mission. (PGCA Sponsors) Visual Studio Code Extension for PostgreSQL: Lets you work with Postgres right inside VS Code. Over 785K installs, and it works with any Postgres database, not just Azure. (aka.ms/pgsql-vscode) POSETTE: An Event for Postgres: Free and virtual developer event with expert speakers from the Postgres ecosystem, now in its 6 th year. POSETTE 2027 will happen on 30 and 31 March 2027. (PosetteConf.com/2027) Azure Database for PostgreSQL: Our fully-managed database as a service, supporting the latest releases of Postgres open source. One thing I’m particularly happy to see: we supported Postgres 17 within 3 days of its release, and Postgres 18 on release day. With Postgres 19, we expect to support it on release day for both new servers and Major Version Upgrade. (aka.ms/azure-postgres-docs) Azure HorizonDB: Currently in preview, Azure HorizonDB is a new PostgreSQL-compatible database service built on a shared storage architecture, for applications that need to scale. (aka.ms/azure-horizondb-docs) Microsoft Blog for PostgreSQL: Our blog about Postgres, Azure, and our Postgres community initiatives. (aka.ms/microsoft-blog-postgres) Talking Postgres podcast: A monthly podcast about the people who work on Postgres and why they do what they do. I have the privilege of hosting it, and it’s so much fun. 44 episodes to date. (TalkingPostgres.com) And there’s more! Beyond the nine, our team keeps releasing new open-source tools for the Postgres community. Two recent ones: pghacker-mcp: This open-source MCP server lets you get answers to questions about Postgres’s design history and source code, with citations. Ask why a feature works the way it does, and an agent finds the relevant pgsql-hackers mailing list threads, commits, and code that answer it, and quotes them. (pghacker-mcp.dev) pg_durable: An open-source Postgres extension that lets you write long-running, fault-tolerant SQL functions, with retries and scheduling built in. It’s handy for things like ETL, database maintenance, and AI apps. Our team uses pg_durable in AI pipelines, Oracle to Postgres migrations, and pg_textsearch. (aka.ms/pg_durable) The revenue impact of upstream work is indirect—but it’s real Which brings me back to the question new hires ask me the most, especially if they come from a proprietary software background: Question: “How do we know our work on the upstream Postgres project moves the needle on Azure revenue?” My answer: The revenue impact of our open source work is indirect. And while it can't easily be measured, it's real. That's true of the patches our engineers write, and it's true of the podcast, POSETTE, and the conferences we sponsor. You can't trace most commits to a dollar of revenue, any more than you can trace a conference talk to one. Here's the thing: Azure Database for PostgreSQL and Azure HorizonDB are built on Postgres. As the Postgres project continues to thrive and grow, so do our Azure services. It all starts with people When we help make Postgres better, everyone who uses Postgres benefits, including our Azure customers. On the Talking Postgres podcast we sometimes talk about the toothbrush test: when you brush your teeth in the morning, are you looking forward to the work you'll be doing that day? My work leading our Postgres community efforts at Microsoft definitely passes the toothbrush test. 😊 And the biggest reason is the people. In my talk at PGConf.EU I said that Microsoft’s investment in the Postgres project starts with people. And the inspiration for my Postgres community work also starts with people: the people in the broader Postgres open source community, and my Postgres teammates at Microsoft. : Slide from my talk at PGConf.EU 2026 about Microsoft’s work with Postgres, with headshots of the people contributing to the upstream Postgres open source project—who inspire me every day. About Microsoft's Perspectives on PostgreSQL Perspectives on PostgreSQL is a monthly blog series featuring insights from Microsoft engineers, contributors, and builders working with PostgreSQL. Explore more articles on the Microsoft for PostgreSQL blog.2.1KViews3likes0CommentsUsing PostgreSQL to reflect on its own history and code: introducing pghacker-mcp.dev
By: Maxim Lukiyanov, PhD, Principal Software Engineer Every feature in PostgreSQL has a story. Before a line of code lands, it's proposed, debated, reviewed and often rewritten on the pgsql-hackers mailing list, sometimes over years. That conversation has been going on in public since 1997, and its 645,000 messages hold the reasons behind most of PostgreSQL's design decisions. It's one of the richest records of engineering knowledge I know of, and it's exactly the context AI agents need when they work on PostgreSQL or build on it. Agents can search the archive, but searching hundreds of thousands of messages takes them a long time, they can still miss the message that settled a question, and they have no map of how the facts connect: which thread led to which commit, which patch became which line of code, who argued for what, and what was finally decided. So I built pghacker-mcp. It's a free, public Model Context Protocol (MCP) server that gives any AI agent the PostgreSQL community's design history and PostgreSQL's source code, every commit on every branch, connected in one knowledge graph, and it answers with citations you can check. There's no sign-in, and the whole project is open source. Fittingly, it's powered by PostgreSQL itself, running on Azure HorizonDB: PostgreSQL, the database, reflecting on PostgreSQL, the project. With the PostgreSQL community gathering in Valencia for PGConf.EU 2026 this week, it felt like the right moment to share it. In this post, I'll show you what it can do, and then take you under the hood. Ask PostgreSQL why With pghacker-mcp connected, your agent can follow a feature from proposal to commit or revert, including the alternatives that were ruled out and why. It can also read, search and blame any version of PostgreSQL's code, back to the threads behind each line. Every answer comes with citations to the messages, commits and lines of code behind it. For example, ask whether retrying a failed fsync() can lose data. Your agent will explain that it can, because on Linux a retried fsync() can report success after the first failure lost the data, and that in 2018 PostgreSQL chose to PANIC instead. That's the real point of pghacker-mcp. Any agent can sound like it knows PostgreSQL's history. With pghacker-mcp, yours can show you where that history is written. How it works pghacker-mcp has three parts, built around one PostgreSQL database: The indexer, written in Rust, loads new mail and commits every hour and keeps the commit history and the graph up to date. Crawler agents, running on PilotSwarm, an open source durable runtime for agents from Microsoft, have read all 58,734 threads and recorded what each one decided: features, decisions and each author's positions, with verbatim quotes. Reading a 250-message debate and saying who argued what takes a language model, and it's what makes this project possible today. The MCP server, also in Rust, is public, stateless and read-only, with 17 tools: familiar ones like grep, read_file and blame, thread search, and a query tool for SQL and Cypher. PostgreSQL turned out to be a great code search engine Agents ask about code across time: how a function looked in 2015, who wrote a line, or whether a fix reached the back branches. That means pghacker-mcp needs every version of PostgreSQL's code, searchable fast. That's a bigger challenge than it sounds. PostgreSQL's history has 105,000 commits on 39 branches, and the tree at an average commit holds about 2.6 million lines. Checked out one by one, they would add up to more than 250 billion lines. On my laptop, git log -S fsync_fname , which finds the commits that changed uses of PostgreSQL's fsync helper, takes about 54 seconds to search the whole history, and running git grep on every commit would take about six hours. So the commit history stores each version of a line just once, with the range of commits that contain it. The idea is older than git. It's how SCCS stored every version of a file as one weave of interleaved deltas in the 1970s, and it's how temporal databases record the period in which a row is valid, here measured in commits, not time. The trick is in how commits are numbered. Every commit gets a 64-bit address: master's commits are spaced 2³² apart, and each branch numbers its commits in the gap right after the commit it forked from. PostgreSQL's history has no merge commits, so the descendants of any commit form one continuous range, much as in the nested set model for storing trees in SQL. "Is this line in commit X?" becomes a simple range test on the line's bounds: lo <= X AND X < hi AND (alive IS NULL OR alive @> X) The int8multirange column alive covers the one exception: lines deleted on one branch but kept on another. With this model, all 105,000 commits fit in 24 million line versions, 6.5 GB with indexes. What surprised me is that PostgreSQL already had every tool this design needs. The bounds are plain bigint columns, the same half-open interval an int8range describes, and int8multirange handles the exceptions. A B-tree on each line's file and bounds, (lineage, hi, lo) , narrows a search to the files and commit you asked about. And a GIN index with pg_trgm's gin_trgm_ops narrows a regular expression down to a few candidate lines, which PostgreSQL then checks exactly. That's the technique Russ Cox described in how Google Code Search worked, and pg_trgm has supported it since PostgreSQL 9.3, thanks to Alexander Korotkov. Together, these indexes search the whole history far faster than local grep can, because grep has to scan every version of the tree, while PostgreSQL's indexes go straight to the few lines that can match. pghacker-mcp finds every line that ever contained fsync_fname in every one of 105,000 commits, in 50 milliseconds. Trigrams carry most of the load. I studied how AI coding agents actually search code, and of 35,728 real grep calls from my own agent sessions, 91% could use a trigram index, including 98% of those that spanned a folder or a whole repository. Nearly all of the other 9% searched files the agent had already named, where PostgreSQL simply reads those few lines. Just as important, grep works exactly as agents expect. They can send pghacker-mcp the same grep commands they already write, flags, pipes and all. Replayed against GNU grep, 7,254 real grep commands from my agent sessions returned exactly the same output, every one. Agents don't need to learn a new search language: grep just works, on every version of PostgreSQL. Everything else this project needs runs in the same engine: BM25 ranking and vectors for the mail, and a graph for the links. One SQL query can join them all. I never needed a separate search engine, vector store or graph database. I chose PostgreSQL to store the code, and it turned out to be a great engine for searching it, too. A knowledge graph from the mailing list to the code Search finds text. But questions about design are about connections: which thread a commit came from, which patch first proposed a line, who argued for what, and what was decided. Relationships like these are natural to express as a graph, so pghacker-mcp keeps them in a knowledge graph, built with Apache AGE in the same database: about a million vertices, from authors and messages to files and commits, and four million edges between them. The most important design decision was who creates which links. Links that are facts are made by deterministic code. The Discussion: link that committers add to commit messages, or a message that mentions the commit, connects a commit to its thread; there are more than 40,000 such links. Patches posted to the list are matched to the lines and commits they became. Judgments, like what a thread decided and where each author stood, come from the crawler agents, and each one must quote its messages exactly, or it's rejected. Here's the fsync story again, this time starting from the code: One blame call takes a line of PostgreSQL 19 to its 2018 commit and to the patch where it first appeared. The commit's Discussion: link leads to the thread, and the thread to its decision. Three tool calls, from today's code to the debate behind it. Because these connections are stored rather than rediscovered on every question, your agent can also ask what no single thread can answer: which features a file implements, who argued for or against each of them, which commits changed the file, and which release each feature shipped in or targets. Search tells you where something was said. The graph tells you how it all connects: why the code is the way it is, and who shaped it. MCP is growing up fast In the last year and a half alone, MCP gained elicitation, structured output, tasks and extensions, and the 2026-07-28 revision made it stateless: no sessions, no handshake, and every request carries the client's capabilities. For a public server like pghacker-mcp, that's a big deal, because any server instance can answer any request. But what excites me most are two newer features that change what a server can offer, and pghacker-mcp uses both. Skills: a server that teaches agents Tools give an agent abilities; skills give it know-how. An Agent Skill is a SKILL.md file of instructions that teaches an agent a workflow. The new official skills extension for MCP lets a server publish skills next to its tools, so agents that connect can discover and load them. pghacker-mcp publishes one skill, review-as-author. Give your agent a patch and the name of a pgsql-hackers regular, and it reviews the patch the way that person likely would: each point backed by a quote of their own, marked as a prediction, and, given a date, based only on what they had written by then. Ask your agent to review the May 2022 patch set for logical replication of DDL as Tom Lane would have, and it predicts he'd push back on putting it into core, quoting his own 2012 warning that decompiling parse trees would be "a permanent drag on every type of SQL feature addition". Tom actually raised that objection on this patch in March 2023, 80 patch versions later. That's feedback worth having early. Clients that don't support the skills extension yet can load the same skill through a tool, load_skill_review_as_author. Elicitation: a server that can talk to the user Originally, an MCP server could only answer the model. Elicitation lets it ask the user a question directly, through a form the client shows, with the model taking no part. In the 2026-07-28 revision, it works as a multi-round-trip request: the server answers a tool call with input_required and a form, and the client retries the call with the user's answer. I use it for something every public service needs: feedback. Once in a while, pghacker-mcp asks "Was the last answer helpful?", with 👍, 👎 or Skip. It asks at most once in an hour of use, backs off for a day if you decline, and never asks if you connect with ?feedback=off. It sounds small, but it's a new interaction mode: a server that hears directly from the people it serves. I believe we'll see a lot more of this, from confirmations to choices to preferences. MCP is no longer just a way for agents to call tools. It's becoming a flexible protocol between servers, agents and the people who use them. Why I built it on Azure HorizonDB Everything I've described, from the mail and embeddings to the code history and the graph, lives in one Azure HorizonDB database: 29 GB on 32 vCores, running PostgreSQL 17 with pgvector, pg_trgm, pg_textsearch and Apache AGE. Even PilotSwarm keeps its agents' durable state there, and the indexer writes to it every hour while the public server reads. Full disclosure: I work on the team that builds HorizonDB, so I'm biased. But this project shows what HorizonDB was designed for. HorizonDB separates compute from storage and sends only WAL from compute to storage, so I never had to provision storage or IOPS as the archive and the history grew. If the public server needs more read capacity, read replicas share the same zone-resilient storage instead of copying it. And because HorizonDB is built on PostgreSQL, every extension this project needed is there, and nothing in the code is specific to HorizonDB. One command runs the same project on your laptop, with PostgreSQL 17. HorizonDB is in public preview and open to everyone. If you're building AI apps and agents on PostgreSQL, create a cluster and give it a try. In conclusion pghacker-mcp unlocks the PostgreSQL community's knowledge for every AI agent. With the commit history, your agent can search any version of PostgreSQL in milliseconds. With the knowledge graph, it can connect code to the debate behind it. And with skills and elicitation, a server can teach agents and hear from the people who use it. To try it, add the server to your agent. In GitHub Copilot CLI or Claude Code, it's one command: copilot mcp add --transport http pghacker https://pghacker-mcp.dev/mcp claude mcp add --transport http pghacker https://pghacker-mcp.dev/mcp pghacker-mcp.dev has the steps for the GitHub Copilot app, VS Code, Codex, Cursor and OpenCode. Then ask it something you've always wondered about PostgreSQL. The code is on GitHub: read it, file issues, contribute, and tell me how its answers work for you. For nearly three decades, the PostgreSQL community has explained in public why PostgreSQL is built the way it is. Now PostgreSQL itself can help every agent, and every developer, find those explanations.510Views3likes0CommentsRethinking Memory Management for Azure HorizonDB on Disaggregated Storage
In Smarter Storage for Azure HorizonDB, we described how HorizonDB moves durability, replication, checkpointing, and recovery out of PostgreSQL and into a purpose-built storage layer. The compute node writes only the write-ahead log (WAL). Data pages are rebuilt and stored by remote page servers. That design raises an obvious question: if PostgreSQL no longer reads and writes its own data files, what happens to its memory management? PostgreSQL's buffer manager was built around a specific partner: the operating system's page cache. Many of its defaults and heuristics only make sense because the kernel is quietly doing a lot of work underneath. HorizonDB removes that partner. This post explains which assumptions broke, and the changes we made to the PostgreSQL engine, so memory works well on disaggregated storage. What PostgreSQL assumes about the kernel PostgreSQL stores each table and index as ordinary files and accesses them with buffered I/O. Every page therefore can live in two places in memory: in PostgreSQL's own buffer pool (shared_buffers) and in the operating system's page cache. This "double buffering" is a deliberate part of the design, and it shapes several behaviors. A modest buffer pool. The PostgreSQL documentation suggests starting shared_buffers at about 25% of system memory. Much of the rest is expected to act as kernel file cache. A page evicted from shared_buffers is often still in the kernel cache, so reading it back costs a memory copy rather than a disk read. Prefetching is a hint to the kernel. When PostgreSQL knows it will need a page soon—during a bitmap heap scan, for example—it calls posix_fadvise with POSIX_FADV_WILLNEED. The kernel starts reading the page into its cache. A later read finds it there. PostgreSQL itself never allocates a buffer for the prefetched page. Sequential scans rely on kernel readahead. For sequential access, the kernel detects the pattern and reads ahead automatically, so PostgreSQL can issue fewer explicit hints. Ring buffers protect the cache. Large sequential scans, VACUUM, and bulk writes such as COPY use a small private ring of buffers—from a few hundred kilobytes to a few megabytes—instead of the whole buffer pool. A scan of a table much larger than memory therefore cannot push the working set out of shared_buffers. This is safe because a page that cycles through the ring is usually still in the kernel cache if it is needed again. Writes are cheap and deferred. When a dirty buffer is evicted, PostgreSQL writes it to the kernel cache, which flushes it to disk later. The background writer cleans buffers ahead of eviction so that queries rarely wait for a write. Checkpoints write all dirty pages and call fsync to make them durable. Each of these behaviors assumes that a miss in shared_buffers is usually cheap, and that writing a page means writing it to a local file. What changes in HorizonDB Figure 1. Compute memory layout: Community PostgreSQL vs. Azure HorizonDB. In HorizonDB, permanent tables and indexes do not exist as local files on the compute node. There is no kernel page cache holding database pages. A miss in shared_buffers must be served by the remote storage layer: Tier Where it lives Typical role Shared buffers Compute memory Working set; all pages are read and modified here SSD cache Compute local disk Extends shared buffers; holds cached copies of pages Page servers Remote storage fleet Page cache of the current version of every page Azure Blob Storage Remote, zone-redundant Durable backing store for pages and WAL A page that falls out of memory no longer drops into a free kernel cache. It may require a network round trip to a page server, which is much more expensive than a memory read. Writes change too. Because page servers rebuild pages from WAL, "writing" a dirty page on the compute node does not mean copying it anywhere. PostgreSQL only has to make sure the WAL describing the change is durable - a rule it already enforces before any page write. Taken together, this inverts the trade-offs behind PostgreSQL's defaults. Memory is no longer one of two caches. It is the primary cache. Design principle: shared buffers are the primary cache We organized the engine changes around one principle. shared_buffers is the primary cache, eliminating the memory overhead of double buffering and improving memory efficiency. Every page that is about to be needed should arrive in memory before the query asks for it. The following sections describe the engine changes that implement it. 1. Size shared buffers for the machine Without a kernel cache to share memory with, leaving 75% of RAM to the operating system would waste most of it. HorizonDB sizes shared_buffers automatically at 60–70% of the compute node's memory, depending on the size of the instance. The remaining memory is left for connections, query execution memory such as sorts and hashes, and the operating system. 2. Retire ring buffers Ring buffers exist so that a large scan can use a few megabytes of memory and rely on the kernel cache for anything it needs again. In HorizonDB, there is no such safety net. Recycling a small ring means that every page the scan touches is read, used once, and discarded—and a second scan of the same table must fetch everything again from storage. Ring buffers also exist to limit write traffic: a bulk operation that dirties pages in a small ring must write them out quickly. HorizonDB doesn't need to write dirty data pages back to disk at all, so that motivation disappears as well. HorizonDB therefore disables buffer ring strategies. Sequential scans, VACUUM, and bulk loads use the shared buffer pool like any other query. This is a trade-off, not a free win. A very large scan can now displace pages from shared_buffers that other queries were using. Two factors limit the cost. First, clock-sweep replacement tracks how often each buffer is used, so frequently accessed pages outlive pages a scan touched only once—and buffer replacement is an area we continue to improve. Second, pages that leave shared_buffers are not simply lost: HorizonDB can keep them close by in the local SSD cache. How it decides and what goes there is a story for a separate post. 3. Prefetch directly into shared buffers On a local disk, a prefetch miss costs a disk seek. On disaggregated storage, it costs a network round trip. Hiding that latency matters even more, so HorizonDB makes prefetching explicit, aggressive, and memory aware. Prefetch requests go to the page servers. When PostgreSQL issues a prefetch, HorizonDB sends a read request for the page to the page server that owns it, and does not wait for the answer. Each backend keeps a set of outstanding requests by default, so dozens of page reads overlap instead of running one after another. Sequential scans prefetch explicitly. PostgreSQL's read stream mechanism, which drives sequential scans and other block-range reads, normally avoids prefetching sequential blocks because it expects kernel readahead to cover them. HorizonDB turns that assumption off, so sequential reads are prefetched like any other access pattern. Responses land in their final buffer. In stock PostgreSQL, a prefetch only warms the kernel cache, so the later read still has to copy the page into shared_buffers. In HorizonDB, the page server's response goes straight into a shared buffer. When the query asks for the page, it is already in memory, with no extra copy and no second request to storage. These are only some of the prefetch optimizations we have built into the engine. Others use custom prefetch implementations and logic that tunes how far ahead each query reads. All of them share one goal: hiding storage latency so queries spend less time waiting on I/O and more time doing useful work. What this means for you As a fully managed service, our goal is to delight customers with a best-in-class PostgreSQL experience. You shouldn't have to think about kernel caches, buffer rings, or prefetch windows—that is our job. HorizonDB retains full PostgreSQL compatibility, so applications keep the familiar Postgres programming interface while the engine is tuned to deliver predictable performance on the storage underneath955Views5likes1CommentAI features in Azure databases
A support engineer hits a fault. Somebody solved the same fault two years ago, wrote down what fixed it, and closed the ticket. The engineer searches, finds nothing, and works it out from scratch. The answer was in the database the whole time. The search could not reach it. The cost of that is not abstract. It is the same diagnosis paid for twice, a vessel or a production line down for longer than it needed to be, and an organisation that cannot tell whether a fault is new or its fifth recurrence. The knowledge was captured. The organisation still could not use it. That is a retrieval problem, not a model problem, and it is where this experiment starts. It also explains why a model alone does not fix it: the limiting factor is what the system can find, not how well it writes. Azure Database for PostgreSQL and Azure Cosmos DB have both added vector search, full text search, hybrid ranking, and the ability to call a model directly. These arrived as feature announcements. What they do under a real question, what they cost, and where each one stops being the right tool are not in the announcements. So the same 1000 records were loaded into both engines and into a graph, and every query was run live against Azure. Nothing here is a screenshot or a recorded result. Each claim is a query that executed, with its wall clock time and its request unit cost recorded. Three questions were being answered: Where does keyword search beat vector search, and where does it collapse? What changes when the database calls the model itself, rather than an application doing it? Does a graph add anything that SQL over the same table cannot already do? The third one produced the most uncomfortable answer. Background Both engines now ship the same broad capability set, at different stages of maturity. Capability PostgreSQL flexible server Cosmos DB for NoSQL Vector index DiskANN, via pg_diskann DiskANN Full text search tsvector with GIN built in, BM25 scoring Hybrid ranking written by hand RRF() as a single clause Embeddings from inside the database azure_ai extension, generally available public preview Generation from inside the database azure_ai.generate() not available Graph Apache AGE extension no The asymmetry is the interesting part. PostgreSQL gives the database its own identity and lets it call a model, which moves work out of the application entirely. Cosmos DB gives hybrid ranking as one function call and keeps latency low. Neither is a superset of the other. Method Dataset. 1000 synthetic support tickets across maritime, energy, payments and retail, generated from a fixed seed so the results reproduce exactly. Each ticket has a title, a free text description written the way a person would write it, a resolution, a fault code, an asset, a team and a severity. Two design choices decide whether the experiment says anything: The same fault is described as shuddering, juddering, trembling and knocking by different people. Without that variation there is nothing for vector search to beat keyword search at. The fault code is excluded from the embedded text. Include it and vector search half answers code lookups, which destroys the contrast being measured. Stores. Store Configuration PostgreSQL flexible server pgvector at 1536 dimensions, DiskANN, azure_ai, Apache AGE AGE graph, same server 1000 tickets, 18 assets, 12 teams, 12 codes, 3209 edges Cosmos DB for NoSQL 3072 dimension vectors, DiskANN, full text index, autoscale to 5000 RU/s Models. One Microsoft Foundry account. text-embedding-3-large for both stores, gpt-5.5 for the application, gpt-4.1-mini for generation inside PostgreSQL. Authentication. Entra ID everywhere. Password authentication disabled on PostgreSQL, local authentication disabled on Cosmos DB and Foundry. No key or connection string exists anywhere in the build. Measurement. A four page web application executes each query and reports wall clock time. A script runs every endpoint against every input and then clicks every control in a real browser. Numbers below come from that run. The setup. Note the difference in the two lines on the right: for PostgreSQL the database calls the model itself, for Cosmos DB the application does it. Results: PostgreSQL Query Time Plain English search, embedding generated in the database 1.3 s Semantic search feeding a GROUP BY 540 ms Hybrid fusion written by hand 580 ms Retrieval and generation in one statement 2.7 s The query contains no vector. azure_openai.create_embeddings() runs inside the SQL, authenticated by the server’s own managed identity. Because a similarity search returns an ordinary relation, ordinary SQL aggregates over it: which teams, how many tickets, average hours to repair. This is the operation a separate vector store cannot perform, because the join does not exist across two systems. With azure_ai.generate(), one statement embeds the question, searches, builds the prompt and calls the model. There is no application tier in the loop, so anything that can run SQL can do it: a scheduled job, a report, a trigger. The cost of that convenience is latency. Every one of these timings includes the database going out to Foundry and back on the caller’s behalf, which is why the plain English search takes over a second. The next section shows what the same questions cost when the application does that work instead. Results: the graph Apache AGE runs inside the same PostgreSQL server used above. No second database and no sync job. Three of its four edge types restate columns that already exist: which asset a ticket is on, which team fixed it, which code it carried. The fourth does not. SIMILAR_TO links each ticket to its two nearest neighbours by embedding, restricted to neighbours with a different fault code and a cosine distance under 0.40. That produced 209 edges over 1000 tickets. Same code neighbours are skipped because the existing CODED edge already connects those. Measured against a retail point of sale fault: Reached by Assets Fault code walk 5 retail stores and distribution centres SIMILAR_TO walk 4 vessels and 2 substations, none carrying that fault code The first walk is reproducible in SQL. SELECT DISTINCT asset FROM tickets WHERE error_code = ... returns the identical rows, verified one by one. The second is not, because no column connects a checkout terminal to a ship’s bridge display. Expanding from a retail point of sale fault. Grey links are the fault code, which SQL could also follow. Magenta links are the embedding-derived edge, and they reach four vessels and two substations that carry no ERR-6205 ticket at all. Note also that the graph stores no text and no vectors, so it cannot be searched by meaning, only traversed. Vector search selects the entry node and the graph decides how far to walk from there. Results: Cosmos DB The same 1000 tickets, in a document database rather than a relational one, with the application rather than the database calling the model. Query Result Time RU Keyword ERR-5012 13 tickets 130 ms 3.6 Keyword shaking 0 tickets 130 ms 3.6 Vector, paraphrased symptom the same 13 tickets, none sharing a word with the query 190 ms 7.1 Vector, given a fault code unrelated tickets, confidently ranked 420 ms 7.1 Filtered vector meaning plus metadata in one query 180 ms 8.7 Hybrid, ORDER BY RANK RRF(...) both rankings fused in the engine 380 ms 70.5 Two results stand out. The shaking query returns zero. The tickets describe that exact fault, using other words. Vector search then returns those tickets from a sentence that shares no vocabulary with them. Handed a fault code instead, vector search fails, because a code carries no meaning to embed. The two methods fail at opposite things. Hybrid search costs roughly ten times a plain vector query, 70.5 RU against 7.1. It is one clause and it works well, but it is not free and should not be the default on every request. The fusion itself is reciprocal rank fusion, which combines the two result lists by position rather than by score: score = sum over lists of 1 / (k + rank) This matters in practice, because it means the BM25 relevance score and the cosine distance never have to be made comparable. Only the ordering is used. It is also why the demo shows rank rather than the fused score: the score is an artefact of the constant k. With both sets of numbers on the table, the latency gap is the clearest difference between the two engines. Cosmos DB answers a vector query in 190 ms where PostgreSQL takes 1.3 s, roughly seven times faster, because the application has already produced the vector before the query is sent. That is the trade: PostgreSQL removes the application and pays for it in latency. Results: retrieval versus model The final test holds the model constant and varies only the retrieval. Same deployment, same prompt, same question. Each side receives whatever its search returned. Retrieval Tickets passed Answer Keyword search 0 “We have no record of this happening before.” Vector search 8 Names the causes and fixes, cites 8 ticket IDs, all verified Same deployment, same prompt, same 1000 tickets. Only the retrieval differed. The first answer is not a hallucination and not a weak model. It is accurate about what it was given, and wrong about reality, because the retrieval beneath it failed. A system that returns no results produces a confident denial rather than an error, which is why this failure mode reaches production. It is also the expensive one. A wrong answer gets challenged. “We have no record of this” gets believed, and the engineer starts again from nothing. No alert fires, no error appears in a log, and the only visible symptom is work being repeated somewhere else in the organisation months later. Constraints encountered Findings that were not documented in anything read beforehand. Cosmos DB autoscale has an irreversible floor. The maximum cannot later be set below one tenth of the highest value ever provisioned on that container. Raising throughput to 20000 briefly during a load permanently floored the container at 2000 RU/s. Data plane and control plane RBAC are independent. A subscription Owner still receives 403 when reading documents without a Cosmos data plane role. Throughput changes are control plane only. With local authentication disabled the data plane SDK cannot alter RU/s at all, regardless of identity. azure_ai.generate() sends temperature = 0.2 with no override. Newer reasoning models accept only the default and reject the request, so in database generation required a separate gpt-4.1-mini deployment. An embedding call inside ORDER BY is evaluated once per row. Over a cross join that is 1000 model calls per query. Moving it into its own CTE fixes it. The symptom presents as an unreliable network. pg_diskann is limited to 2000 dimensions. text-embedding-3-large produces 3072, so PostgreSQL indexes a 1536 dimension prefix of the same model. Apache AGE is preloaded on Azure. LOAD 'age', which most tutorials instruct, fails with a privilege error. shared_preload_libraries replaces rather than appends and changing it restarts the server. The Gremlin API does not support Entra ID on the data plane. It requires an account key and a separate account, which is incompatible with a keyless deployment. AGE inside PostgreSQL provided a graph without a second database. Role assignments take two to four minutes to propagate. During that window the error reads “Principal does not have access to API/Operation”, which is indistinguishable from a genuine misconfiguration. The /models inference endpoint requires Azure AI Developer. Cognitive Services OpenAI User grants OpenAI/* but not MaaS/*. A pooled connection survives a network change as a black hole. After the client machine changed address, the shared PostgreSQL connection remained open but unresponsive, and queries blocked indefinitely. connect_timeout, TCP keepalives and statement_timeout convert this into a recoverable error; measured recovery is 1.3 seconds. Cost Per day, in NOK, for the deployment described above: Component Cost PostgreSQL flexible server, running 83.80 Cosmos DB about 13 Storage about 1.30 The database dominates. Stopping the PostgreSQL server between sessions is the entire cost strategy. Model usage is consumption priced and negligible at this volume. Two things follow from that. The search and retrieval capability itself is nearly free, because it is a feature of a database that is already being paid for rather than a separate product with its own licence and its own operations budget. And the meter that matters is compute hours on a server that can be stopped, not tokens, which is a more predictable line item than most AI spending. Takeaways Money spent on a better model does not buy a better answer if the retrieval is weak. Both sides of the final test held the same 1000 tickets. Only the search differed, and that alone separated a correct answer from a confident denial. The search layer is where the return on an AI investment is decided, and it is usually the cheapest part of the stack to improve. The two search methods are complements, not competitors. Keyword search is exact and literal, and it is what a serial number, a part code or an invoice number needs. Vector search is approximate and semantic, and it is what a symptom described in someone’s own words needs. Each fails at what the other does well. Real questions contain both, which is the argument for hybrid rather than for choosing. Hybrid search is not free. Ten times the request units of a vector query on this dataset. That is a per-query cost multiplier at production volume, so it belongs on the queries that mix a code with a description, not on every request by default. PostgreSQL and Cosmos DB answer different questions, and the choice has consequences beyond performance. PostgreSQL keeps the semantic result inside SQL, where it can be joined, aggregated, and handed to a model without an application in between, which means a scheduled job or a report can use AI without anyone building a service first. Cosmos DB is the low latency path and gives hybrid fusion as a single clause. The first changes who in an organisation is able to deliver something. The second changes what the user waits for. Keeping operational data and vectors in one engine removes a moving part. There is no second store to provision, secure, synchronise or reconcile, and no window in which the two disagree. The experiment never had to answer the question “which copy is right”, because there was only one. A graph earns its place only through edges that are not columns. Traversing relationships that already exist as foreign keys is a GROUP BY in different syntax, and calling that a graph capability will not survive a competent question. An edge derived from embeddings is different: it reaches records that no WHERE clause can, and in this dataset it connected failures across four separate parts of the business that shared no code, no component and no domain. Keyless is achievable end to end. Entra ID across both databases and the model account, with the database calling the model as its own managed identity, removed every key, password and connection string from the system. Nothing can leak from a repository or a configuration file, because nothing is there. The cost is understanding that data plane roles are assigned separately from control plane roles. Silent failures dominate, and they are the ones that reach production. Every significant defect in this build produced no error: counts inflated by a cartesian product, unresolved tickets averaged as zero hour repairs, near duplicate generated text, a stale process serving old code, and a connection that had stopped responding. Nothing alerted. Assertions over the data and a scripted pass over every endpoint caught all of them, and both took under a day to write. On a system that answers questions rather than returning rows, that kind of check is not optional, because a wrong answer looks exactly like a right one. Where this goes next: Azure HorizonDB Nothing in this experiment used Azure HorizonDB, but it changes the shape of the argument, so it belongs here. The pattern behind the scaling question is familiar: teams want to stay on PostgreSQL and eventually hit a ceiling. HorizonDB is Microsoft’s own PostgreSQL, built for workloads past that point, and it is in public preview. It carries the same AI surface used above, pgvector, DiskANN indexing, hybrid search with reciprocal rank fusion, and the azure_ai extension, so the code in this experiment transfers rather than being rewritten. What it adds is AI pipelines. Chunking, embedding, extraction, generation and ranking are declared in SQL as a pipeline that runs inside the database, on top of durable execution. The definition is a row in a system catalog. Execution survives a crash, retries failed steps, checkpoints partial work, and re-embeds only rows that are new or changed. That closes the remaining gap. This experiment showed a database answering a question. A pipeline is the same idea applied to keeping the data ready to be asked: no orchestrator, no separate worker, no job that quietly stops running. Both are preview features and should be read as direction rather than as something to put in front of customers this quarter. Not tested Scope was limited to what the two databases do on their own. Three things were left out deliberately and would change the conclusions if included. Agentic retrieval. Query planning, sub queries, iterative retrieval and reflection over multiple knowledge sources, as offered by Azure AI Search and Foundry IQ. That is a retrieval strategy built above the database, and it would have made the single query comparison meaningless. Reranking. A semantic reranking model over the candidate set. PostgreSQL exposes azure_ai.rank() for this and it was verified as working, but nothing in the experiment used it. Scale. 1000 rows is enough to show behaviour and not enough to show performance. The query planner in particular behaves differently: at this size it correctly ignores the vector index, because a sequential scan over a thousand rows is cheaper than the index startup cost. Try it yourself Everything described here is published, including the Terraform for the Azure resources and the generator for the dataset. https://github.com/Hanifff/ai-features-in-azure-databases git clone https://github.com/Hanifff/ai-features-in-azure-databases.git cd ai-features-in-azure-databases az login ./scripts/setup.sh That reads your current Azure context, provisions the resources, loads all three stores, and starts the application. The dataset is generated from a fixed seed, so the counts quoted in this post reproduce exactly. The PostgreSQL server is the only meaningful cost. Stop it when you are not using it, and run terraform -chdir=infra/terraform destroy to remove everything.482Views1like0Comments