postgresql on azure
40 TopicsMonitoring and using pg_repack in Azure Database for PostgreSQL flexible server
In this post: we will walk through how to configure and use the pg_repack extension in Azure Database for PostgreSQL flexible server. We will also cover how to run pg_repack on a table, monitor the progress during execution, and validate the results after the repack operation is completed. Why Monitor pg_repack During Execution? While running pg_repack is straightforward, administrators often need visibility into what is happening behind the scenes, especially when working with large tables in production environments. Monitoring the operation provides several benefits: Verify that pg_repack is actively running and has not stalled. Identify the current phase of the operation, such as table copying, index rebuilding, or final table swap. Understand resource usage and the impact on the database. Before you start: Before performing this lab, ensure the following prerequisites are met: Azure Resources: An active Azure subscription An Azure Database for PostgreSQL flexible server instance Database Requirements: A table with a PRIMARY KEY or UNIQUE NOT NULL index (required by pg_repack) Linux Machine: I have used an Ubuntu Linux Virtual Machine SSH connectivity to the VM using PuTTY Configuring and using pg_repack in Azure Database for PostgreSQL Step 1: Allow list and create the pg_repack Extension Before using pg_repack, the extension must be allowlisted and created in the target database. Navigate to your Azure Database for PostgreSQL flexible server and add pg_repack to the allow list of extensions. Once the server configuration is updated, connect to the database and create the extension. Step 2: Create and connect to a Linux Virtual Machine Since pg_repack is a client-side utility, a Linux virtual machine was created to install and run the pg_repack client against Azure Database for PostgreSQL flexible server. Step 3: Connect to the Linux Virtual Machine Before running pg_repack, I connected to the Linux virtual machine that would be used to install and execute the pg_repack client. In the Azure portal, navigate to the Linux Virtual Machine. Open PuTTY and enter the VM's IP Address. Select SSH (Port 22) as the connection type and click Open. Enter the VM username and password when prompted. After successful authentication, a terminal session is established The following output confirms that the connection was successful and that the Ubuntu operating system is ready for further configuration. Step 4: Update Package Repositories on the Linux Virtual Machine Before installing the pg_repack client, update the package repositories on the Ubuntu virtual machine to ensure the latest package information is available. Please run the following command and provide the password for the linux virtual machine when prompted. sudo apt update Step 5: Download the pg_repack Important: If you face any version mismatch issue or errors then you can use the below command to resolve After preparing the test environment and generating table bloat, the next step was to download the pg_repack source code to the Linux virtual machine. The git clone command downloads the pg_repack source code from the official GitHub repository to the Linux virtual machine. This source code is later used to build and install the pg_repack client utility required to perform table reorganization operation. After downloading the repository, the cd pg_repack command changes the current directory to the downloaded project folder. git clone https://github.com/reorg/pg_repack.git cd pg_repack Step 6: Install PostgreSQL Client Packages After updating the package repositories, the next step was to install the PostgreSQL client packages on the Linux virtual machine. The PostgreSQL package installs the PostgreSQL client tools, including psql, which is used to connect to Azure Database for PostgreSQL flexible server. sudo apt install postgresql postgresql-contrib When the command is executed, Ubuntu displays a summary of the packages that will be installed along with their dependencies. To proceed with the installation, type Y and press Enter. Step 7: Connect to Azure Database for PostgreSQL flexible server After installing the PostgreSQL client packages on the Linux virtual machine, the next step is to establish a connection to the Azure Database for PostgreSQL flexible server using the psql client. Please update the following command with your server details and execute it and enter your PostgreSQL server user password to establish the connection. Note: Make sure your Linux machine network is allowed to connect on your Azure Database for PostgreSQL flexible server. psql -h <Hostname> -p 5432 -U <username> postgres Step 8: Create a Test Database After successfully connecting to Azure Database for PostgreSQL flexible server, a dedicated database was created to perform the pg_repack lab activities as shown below: Step 9: Connect to the Newly Created Database After creating the repack_lab database, connect to it before proceeding with the pg_repack activities. \c repack_lab Step 10: Create a Sample Table for pg_repack Testing After connecting to the repack_lab database, I created a sample table that would be used throughout the lab to test the functionality of pg_repack. CREATE TABLE test_table ( id SERIAL PRIMARY KEY, name TEXT, created_at TIMESTAMP DEFAULT NOW() ); Step 11: Insert Sample Data into the Test Table After creating the test_table, the next step was to populate it with sample data. This helps simulate a realistic workload and provides enough records to demonstrate how pg_repack works. The following command was used to insert 100,000 rows into the table: INSERT INTO test_table(name) SELECT md5(random()::text) FROM generate_series(1,100000); Step 12: Create an Index on the Test Table After populating the test_table with 100,000 records, an index was created as shown below: CREATE INDEX idx_test_name ON test_table(name); Step 13: Check the Initial Table Size Before generating table, bloat and running pg_repack, it is useful to capture the current size of the table. This serves as a baseline for comparing storage consumption before and after the repack operation. SELECT pg_size_pretty(pg_total_relation_size('test_table')); Step 14: Generate Table Bloat Using UPDATE Operations To demonstrate how pg_repack reorganizes a table and reclaims unused space, the next step was to generate table bloat by repeatedly updating all rows in the table. The following command was executed multiple times: UPDATE test_table SET name = md5(random()::text); Step 15: Disable Autovacuum on the Test Table To clearly observe table bloat and demonstrate the effectiveness of pg_repack, autovacuum was temporarily disabled on the test table. This prevents Azure Database for PostgreSQL flexible server from automatically cleaning up dead tuples generated by the previous UPDATE and DELETE operations. ALTER TABLE test_table SET (autovacuum_enabled = false); Step 16: Analyze Live and Dead Tuples Before Running pg_repack After generating table bloat through multiple UPDATE and DELETE operations and disabling autovacuum, the next step was to measure the number of live and dead tuples in the table. Step 17: Execute pg_repack to Reorganize the Table The pg_repack utility was executed against the test table to reclaim unused space and reorganize the table structure. The pg_repack utility reorganizes tables and indexes online while minimizing locking and application downtime. Unlike VACUUM FULL, pg_repack performs the reorganization in the background and requires only a brief lock during the final table swap operation. Command executed: pg_repack \ --host=myflexibleserver.postgres.database.azure.com \ --port=5432 \ --username=dbadmin \ --dbname=repack_lab \ --table=test_table \ --jobs=2 \ --no-kill-backend \ --no-superuser-check Monitoring pg_repack Execution Once the pg_repack operation was initiated, the next step was to monitor its execution and identify the activities being performed by the utility in the background: To track active pg_repack sessions, the following query was executed: SELECT pid, usename, application_name, state, wait_event_type, wait_event, now() - query_start AS running_for, query FROM pg_stat_activity WHERE application_name ILIKE '%repack%' OR query ILIKE '%repack%' ORDER BY query_start; After starting the pg_repack operation, I monitored the active sessions by querying the pg_stat_activity system view. This helped me understand the current stage of the operation and verify that the process was executing successfully. The query returned multiple sessions created by pg_repack, indicating that the utility was actively processing the table. Session 1 - Lock Acquisition LOCK TABLE public.test_table IN SHARE UPDATE EXCLUSIVE MODE This session acquired a SHARE UPDATE EXCLUSIVE lock on the target table. This lock prevents conflicting schema changes while still allowing normal read and write operations during most of the repack process. Session 2 - Temporary Repack Table Creation SELECT 'repack.table_24861'::regclass::oid At this stage, pg_repack was working with an internal temporary table created to hold the reorganized data. This table acts as a replacement for the original table during the repack operation. Session 3 - Creating Primary Key Index CREATE UNIQUE INDEX index_24869 ON repack.table_24861 USING btree(id) This session shows pg_repack rebuilding the primary key index on the new table structure. Session 4 - Creating Secondary Index CREATE INDEX index_24873 ON repack.table_24861 USING btree(name) This indicates that additional indexes are being recreated on the temporary table to match the original table definition. Based on the output, the operation had successfully moved past the initialization phase and was actively rebuilding indexes on the temporary table. This is one of the final stages before pg_repack performs the table swap and completes the reorganization process. Conclusion In summary, monitoring pg_repack execution is essential for ensuring a smooth and efficient table reorganization process. Proper visibility into progress and resource consumption helps administrator complete maintenance tasks confidently while maintaining optimal database performance and availability. References Optimize by using pg_repack - Azure Database for PostgreSQL | Microsoft Learn PostgreSQL: Documentation: 18: 27.4. Progress Reporting pg_repack 1.5.3 -- Reorganize tables in PostgreSQL databases with minimal locks503Views7likes0CommentsRethinking 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 underneath939Views5likes1CommentAI-assisted Oracle-to-PostgreSQL schema conversion in Visual Studio Code
By AI Omar Rajawat, Pranay Lohia, Gautam Juneja, Vikas Nimmagadda, Anil Dogra, Aditya Duvuri We’re seeing significant interest in migrating database workloads from Oracle to Azure Database for PostgreSQL. Historically, schema conversion has been one of the most technically challenging and expensive steps in that journey, demanding specialist knowledge of both engines and stretching migration timelines before a single row of data moves. Recent advances in AI-assisted schema conversion are changing that, turning what used to be a long, manual effort into a faster, more accessible, and lower-cost proposition. This post looks at what that shift means in practice for teams moving to Azure Database for PostgreSQL flexible server. Oracle schema conversion is where the complexity of translating schema and code objects to PostgreSQL becomes visible. Packages, procedures, triggers, custom types, and dependencies built up over years must be mapped to PostgreSQL-compatible definitions while preserving the relationships that make the schema work. Generally available since May 2026, the feature is built into the PostgreSQL extension for Visual Studio Code, published by Microsoft. It helps teams convert Oracle schema and code objects — tables, views, constraints, packages, procedures, functions, and triggers — into PostgreSQL-compatible definitions for Azure Database for PostgreSQL flexible server, with no separate conversion utility to install and no disconnected workflow to manage. It brings schema discovery, conversion, compile validation, and review into one project-based experience. Teams can connect to Oracle, select schemas, and configure a Microsoft Foundry connection in the same project. The extension then translates Oracle-specific constructs, compiles and syntax-checks converted DDL into scratch schemas on Azure Database for PostgreSQL flexible server and surfaces unresolved items as review tasks that teams can work through with GitHub Copilot agent mode. Why schema conversion deserves a better workflow Traditional conversion tools can produce a useful first pass, but the long tail of the process is rarely solved by generating replacement DDL alone. Teams still need clear answers to practical questions: What converted successfully? What needs attention? Which Oracle constructs require a PostgreSQL design decision? Which items should be reviewed first? We designed the schema conversion experience around those questions. The goal is not to hide complexity behind a single score. It is to help teams make steady progress while keeping the work visible and reviewable. What the schema conversion experience provides The experience guides teams through a schema conversion project rather than a collection of separate scripts. It discovers the selected Oracle schemas and converts both the relational model and the code that runs on it: tables, indexes, sequences, primary key, unique, check and foreign key constraints, views and materialized views, synonyms, and Oracle object types — along with the PL/SQL that is usually the hardest part of the migration. Packages and package bodies, package-level state, standalone procedures and functions, and triggers are translated into PostgreSQL functions, procedures, and trigger functions. Oracle-specific constructs are mapped to PostgreSQL equivalents rather than dropped or stubbed out. REF CURSOR and SYS_REFCURSOR become PostgreSQL refcursor; CLOB and BLOB columns become text and bytea ; and NUMBER and VARCHAR2 are mapped by precision and length to their closest PostgreSQL types. Oracle date functions such as ADD_MONTHS, LAST_DAY, MONTHS_BETWEEN, and TRUNC are resolved through the orafce extension, which the project detects and flags for you before deployment. Every converted definition is compiled against scratch schemas on Azure Database for PostgreSQL flexible server, so the deployment script you end up with is an organized, dependency-ordered set of PostgreSQL SQL artifacts that has already been proven to build. Objects that still require human judgment are surfaced as review tasks. Teams can inspect the source and converted definitions side by side, work through the remaining items, and use GitHub Copilot agent mode for guided assistance — keeping automation and human review in the same workflow. How it works: the system architecture Under the hood, the conversion engine follows one principle — the language model is a single, bounded stage; it never has the first or the last word. Deterministic steps decide what the model sees and what it is allowed to produce. Deterministic in. Rule-based extraction reads the Oracle DDL and metadata, then a dependency-graph decomposition splits the estate into bounded, dependency-ordered chunks — so every object is converted in the context that keeps it correct. Bounded conversion. A tiered model strategy through the Microsoft Foundry connection translates each chunk with structured, contract-wrapped input and output. Even very large PL/SQL packages are split and converted member by member, so nothing is trusted as a monolith. Deterministic out. Converted objects pass through review, then compile-and-verify against scratch schemas on Azure Database for PostgreSQL flexible server, and finally dependency-ordered deploy assembly. Unresolved items become review tasks, and every object carries a per-object audit trail. A continuous-improvement loop closes the system: the engineering team maintains a versioned regression suite of supported conversion patterns, and an executable benchmark tracks regressions as the pipeline evolves. Proven in production The approach has been exercised on real enterprise estate. Across representative production runs totaling more than 60,000 schema objects; conversion reached roughly 98% overall — with several schemas converting at a full 100%. The hardest tail, PL/SQL package members, now compiles at 96% across more than 20,000 members thanks to targeted coverage and a resilient compile stage. Conversion outcome and review status are separate measures. Objects that convert and compile cleanly are safe to deploy as they are; the rest are deliberately routed into a prioritized review queue rather than silently accepted. In a representative single-schema run, no object ended in a hard conversion failure, and a cleanly generated object can still involve a PostgreSQL design decision. That is the workflow operating as intended: automation absorbs the volume, and review tasks to keep the remaining judgment calls visible, ordered, and auditable. Measured, not asserted: the SchemaBench eval Quality is verified by running it. SchemaBench, the evaluation framework, deploys each converted schema to a live PostgreSQL database and probes real behavior — whether constraints still fire and whether objects still resolve — rather than comparing DDL text. It scores seven weighted dimensions: semantic fidelity, structure, constraints, completeness, performance, target idioms, and maintainability, behind hard gates. On the e-commerce benchmark, the strongest model scored 96.1 overall with 100% semantic fidelity and a ~98% behavioral-probe pass rate. Every failure a migration hits becomes a permanent regression test the next run has to pass. Learn more: Oracle to Azure Database for PostgreSQL schema conversion overview560Views5likes0CommentsHorizonDB: 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.2KViews4likes0CommentsWolters Kluwer scales tax and accounting software with PostgreSQL on Azure
This blog was authored by Sven Hubert, Associate Director IT Operations at Wolters Kluwer, Oliver Heimlich, Lead Product Software Engineer at Wolters Kluwer, Volker Krebs, DevOps Engineer at Wolters Kluwer As part of Wolters Kluwer, a global leader in professional information, software solutions, and services, Wolters Kluwer Tax & Accounting Germany develops software that helps tax advisory firms and midsize businesses streamline payroll, bookkeeping, banking, and tax compliance. With decades of experience, we are a leading technology partner in the industry's transition towards an integrated digital ecosystem. More than 6,000 tax advisory firms and 14,000 midsize businesses rely on our solutions, which process 2.5 million payslips every month, 2.5 million tax returns annually, and support 15% of Germany’s annual financial statements. All these applications run on PostgreSQL, but their data requirements vary significantly, from transactional accounting and dense payroll data to complex tax structures requiring frequent recalculation. At the same time, decades-long customer relationships mean years of historical data must remain readily accessible. Combined, those demands have helped drive our PostgreSQL data from about 6 TB in early 2026 to nearly 10 TB by September 2026, and it's still roughly doubling every year. Keeping ahead of that kind of growth is what led us to adopt elastic clusters in Azure Database for PostgreSQL, enabling us to scale PostgreSQL horizontally as our data volumes and workloads continue to expand. Looking for a more sustainable way to scale Our PostgreSQL architecture has evolved as our business has grown. Before moving to Azure Database for PostgreSQL three years ago, we managed PostgreSQL ourselves on Azure infrastructure, which meant our team was responsible for server patching, backups, and day-to-day database operations. Azure Database for PostgreSQL gave us the managed platform-as-a-service (PaaS) model we wanted and reduced that operational burden. But our data kept growing. Reaching 6 TB was not a hardware problem. We could still scale vertically with relatively little operational effort. The challenge was that the growing size of our datasets increasingly affected PostgreSQL's day-to-day operation. By that point, 42 tables exceeded 10 GB and several had grown beyond 100 GB. Larger tables and indexes made maintenance tasks, queries, updates, and retention-driven cleanup operations more expensive, and a single poorly performing query could impact the wider system. Our engineers were manually creating or tuning indexes in production almost every week, consuming roughly half of one engineer's time, while peak memory usage approached 90%. We wanted to retain the managed experience of Azure Database for PostgreSQL while gaining the ability to scale horizontally. With our data continuing to roughly double each year, it became clear that we needed a more sustainable scaling model. Finding a path to horizontal scale Those requirements narrowed the field quickly. We wanted to stay on PostgreSQL so we could preserve our existing data-access layer and the time-based partitioning we'd already built with pg_partman. Any new solution also needed to run on Microsoft Azure and provide a managed PaaS experience rather than require us to manage the infrastructure ourselves. Data residency requirements limited our options even further: we needed high availability and disaster recovery in multiple German regions. We evaluated several options, running proof-of-concept tests on synthetic banking data. But it was hard to find one that supported development and CI testing without requiring a live cluster and was also available in two German regions. When elastic clusters in Azure Database for PostgreSQL reached general availability in both Germany West Central and Germany North, we had our path forward. Elastic clusters use the Citus extension to turn PostgreSQL into a distributed database. It's still PostgreSQL, so scaling out is transparent to our applications, and we keep the managed-service model we already relied on. We also had a head start because our custom data-access layer was already sharding-aware from that earlier proof-of-concept work. The move meant extending a partitioning strategy we understood, not rewriting the application from scratch. Getting that architecture right took longer than the cutover itself. Across roughly 400 tables, we decided which ones to distribute by tenant, which to replicate as reference tables, and which also needed pg_partman's time-based partitioning layered on top. That combination mattered because our data is both multi-tenant and long-lived, with some customers' records going back decades. We spent about three months on that design and cleanup work as well as continuous testing to ensure a smooth and short migration. The production migration itself ran over a single weekend earlier this year, when we used pgcopydb to move roughly 6.4 TB of data onto the new cluster. What we learned as an early adopter Working with elastic clusters at production scale taught us things we hadn't seen in smaller test environments, particularly around connection pooling. We hadn't used PgBouncer in our previous architecture, so we initially ran elastic clusters without it as well. But distributing and partitioning our data multiplied the number of shards, and in Citus, memory cost per connection scales with shard count. Adding PgBouncer reduced our physical connections to close to one-sixth of their previous level, helping us use cluster resources far more efficiently. We also learned that the test environment has to match production exactly, not just the data but every configuration setting. We enabled high availability only after the production migration, and that surfaced an issue we hadn't seen in testing. Now we validate failover, health probes, and traffic routing with high availability enabled before making any changes to the cluster. However, being early to the platform also meant we didn't have to work through issues like that on our own. We had direct access to the Azure Database for PostgreSQL product group throughout the project, beyond the standard support model. That relationship has become an ongoing feedback loop, where we bring current challenges and upcoming requirements to Microsoft's team, test new capabilities against our own environment, and help shape what matters most as the platform evolves. Leaving weekly database troubleshooting behind We went into this migration primarily looking for a more sustainable way to scale. What exceeded our expectations was the performance improvement we saw after the migration and the relatively short tuning and optimization work that followed. Before the migration, some queries encountered multi-second I/O waits as the database grew larger. Since then, average statement execution time has stabilized below 20 milliseconds, and peak memory now stays consistently below 80%. The weekly cycle of hunting slow queries and hand-building new indexes has stopped completely. Long-standing performance tickets have been closed as "not reproducible," and work that had consumed close to half of one engineer's time now requires only occasional attention. That shift means our engineers spend less time chasing the next database bottleneck and more time building the features our customers use. That matters on the development side, too: roughly 100 developers work against the databases across development, test, integration, and production, with around two dozen systems running at once. Once we'd proven the configuration in production, rolling it out across those environments was straightforward. We use the same Terraform provisioning scaled down to inexpensive single-node clusters, and a plain Citus Docker container for local work. Preparing for the next doubling Just as important, we now have room to keep scaling. The growth that took us from roughly 6 TB to nearly 10 TB hasn't slowed, and we don't expect it to. As that data grows, we need our applications to keep performing for the thousands of firms and businesses that rely on them every day. But for the first time, that expansion feels like something our architecture is designed for rather than something we're constantly reacting to. Today, our production deployment of elastic clusters in Azure Database for PostgreSQL runs across six nodes. As data volumes continue to increase, we expect to add a seventh and eighth, testing the scale-out process against a restored production backup before applying it live. With elastic clusters, we can now scale both horizontally and vertically as our capacity needs change. And we're continuing to work with Microsoft on what comes next, from further optimizing connection pooling to major PostgreSQL version upgrades, as we prepare for the next doubling and the one after that.423Views4likes0CommentsDatabase Change Management - Azure Database for PostgreSQL, GitHub Actions and Liquibase OSS
Introduction Database Change Management (DCM) is a comprehensive process of managing all changes to the database schema, objects, reference data, and code over the lifetime of an application. It encompasses version control, testing, deployment, and tracking of database evolutions in a consistent, reliable, and auditable manner. In modern DevOps practices, treating database changes just like application code helps maintain integrity across environments and reduces the risk of errors. Handling Database Change Management using Git Integrating database change management with GitHub brings the rigor, predictability, and safety of standard software development to relational database schemas. Much like application code deployments, where features are developed on feature branches, peer-reviewed via Pull Requests (PRs), and merged only after passing automated test suites. When integrated with GitHub Actions, database deployments transition from manual, error-prone runbooks executed by DBAs into fully automated, repeatable pipelines. When a pull request is merged into the master branch, GitHub triggers a workflow that automatically validates changelogs, dry-runs SQL changes against ephemeral test databases, and updates staging or production database servers, ensuring that database schema structures remain in perfect, synchronized step with the application code they support. Approach To implement database change management, multiple tools and frameworks must be used to handle automation, integrated approach and version management. Following Azure, Git and open-source tools will be used in this approach: Azure database for PostgreSQL (or Azure SQL database) GitHub repo GitHub actions Liquibase (open-source DB version control tool) Database schema migrations (using tools like Liquibase) are treated as declarative, version-controlled source files. This alignment allows teams to leverage the key advantages of Git: A single source of truth for database state A comprehensive and immutable audit trail of who modified what and when Ability to easily revert problematic schema changes by rolling back code commits. Tool Used – Liquibase Liquibase is an open-source, database-independent schema migration tool that treats database changes as code to automate continuous integration and deployment (CI/CD) pipelines. It operates by evaluating a user-defined core manifest file known as a Changelog, which contains granular, ordered tracking units called ChangeSets authored in SQL, YAML or JSON. When executed against a target database instance, the Liquibase engine checks the database's internal DATABASECHANGELOG tracking table to identify previously applied changesets by matching their unique combination of ID, Author, execution Filep and tag. Unexecuted changes (written in JSON or YAML) are dynamically translated via specialized JDBC drivers into dialect-specific SQL (such as PostgreSQL, SQL Server etc.) and executed within a single transaction wrapper. Beyond structural upgrades (update), Liquibase provides robust operational functionalities including Rollback capabilities, which allow to revert schema states back to targeted baseline schema tags or specific timestamps by executing explicit, user-defined “--rollback” blocks in reverse chronological order. Furthermore, it features comprehensive schema difference management via the “diff” and diff-changelog engines. This allows engineers to perform automated schema drift detection by comparing an active database against a reference baseline (or another active environment), instantly identifying disparities in tables, columns, indexes, or constraints, and auto-generating the exact operational changesets required to bring the environments back into structural synchronization. Migration-based Approach When managing database migrations, Liquibase provides three structural configuration patterns to declare and execute schema changes across environments: SQL, YAML, and JSON. Sample of SQL Changelog is given below. It follows SQL syntax of native database engine (PostgreSQL in this case): The Formatted SQL approach is highly recommended for database administrators and developers who require low-level control, as it uses standard, platform-native SQL scripts annotated with special comment tokens (like --changeset and --rollback) to direct the Liquibase parser. In contrast, the YAML and JSON approaches use a database-agnostic, declarative key-value abstraction model. Instead of raw DDL, developers define structural states using structural objects (such as “createTable” or “addColumn” fields). The Liquibase engine dynamically compiles these JSON/YAML objects into dialect-specific SQL using target JDBC drivers at runtime, while automatically inferring the exact inverse commands required for database rollbacks. Regardless of whether a team implements raw SQL for precise indexing and database-specific performance optimizations or leverages the strict serialization of JSON/YAML to maintain standardized, cross-platform migrations, all three file types integrate seamlessly into version control as a single source of truth for CI/CD automation. Versioning and Repeatable Migrations Liquibase governs schema versioning and repeatable migrations through a combination of tracking states and distinct changeset configurations. Unlike traditional application version numbering, Liquibase applies a state-driven versioning model where every discrete schema modification is tracked as an individual, ordered “changeset” identified by a unique composite key consisting of the id, author, changelog file and tag. When a deployment pipeline runs, the Liquibase engine queries the target database’s internal DATABASECHANGELOG table to evaluate this composite key signature; if the key exists, the migration is skipped to preserve environment stability. Architecture Overview A robust database change management architecture involves several key Azure components working together. At the core is Azure Database for PostgreSQL (Flexible Server) as the production-grade target database, often deployed with private endpoint connectivity to restrict network access. GitHub hosts the repository containing Liquibase migration scripts. GitHub Actions orchestrates CI/CD pipelines; a self-hosted runner, placed within the same Azure Virtual Network (VNet) as the database, executes Liquibase commands to apply migrations securely with minimal network latency. Secrets such as database connection strings and credentials are stored securely in Azure Key Vault or GitHub Secrets. Workflows use the Azure/login and azure/get-keyvault-secrets actions to fetch Azure secrets at runtime. GitHub secrets are fetched automatically when referenced in the workflow. Liquibase updates the “DATABASECHANGELOG” table on the PostgreSQL instance each time a migration is applied, providing full tracking. This formation ensures that all database changes are automated, auditable, and under version control. Following are the architectural components: GitHub repo containing the DDL/DCL scripts to be applied to the database engine. GitHub actions containing the workflow that can be scheduled based on push or commit or at a time. GitHub actions self-hosted runner on Azure VM. Azure PostgreSQL database instance where changes are to be applied. Following architecture uses same SQL scripts for multi-environment deployment. Azure Database for PostgreSQL Configuration Azure Database for PostgreSQL should be configured with a private endpoint and integrated into the Virtual Network to ensure self-hosted runner has secure, internal access. Appropriate database schemas should already be available. User account that is to be used for Liquibase migrations should have necessary access like create and modify tables, “DATABASECHANGELOG” table which Liquibase uses to track applied migrations. GitHub “secrets” or Azure Key Vault should be used to store database connection and user details. Rollback action can be used to revert database changes, however, point-in-time restore (PITR) backups should be enabled so that database can be reverted to previous states if migration causes unintended effects. Set firewall rules to restrict public access, configure SSL connections to enforce encrypted traffic for database communication. Azure Monitor should be used to capture audit logs. GitHub Actions and Self-hosted Runner GitHub Actions workflows will execute Liquibase commands, set up a self-hosted runner within the same VNet as the Azure Database fir PostgreSQL server. Provision a lightweight Azure VM (Linux recommended). Following software needs to be installed: OpenJDK Liquibase “psql” PostgreSQL client tool. GitHub Actions runner application and register it with the repository, assigning it labels (e.g., self-hosted) so workflows can target it. Attach Azure managed identity (system or user assigned) with necessary RBAC permissions to retrieve secrets from Azure Key Vault at runtime and connect to database. Liquibase Configuration Liquibase configuration contains two files as mentioned below: Changelog file – Database SQL statements pertaining to the changes. This file is the major component of the configuration as it would contain SQL statements that are to be applied to the database. E.g. postgresdb.changelog.sql. The file should follow Liquibase formatted SQL syntax. liquibase.properties – Contains peripheral details like schema and changelog configuration. Following are the key configuration parameters: changeLogFile=postgres_changelog/postgresdb.changelog.sql : Location of database changelog file relative to the location of where liquibase.properties file is stored. defaultSchemaName : Schema name in postgres database where changes will be applied. liquibaseSchemaName : Schema name in postgres database where Liquibase tracking tables will be created. logLevel : Level of logging by Liquibase execution. databaseChangeLogTableName and databaseChangeLogLockTableName : Liquibase tracking tables. Keep the default values. Setup & Execution Steps Please use the following GitHub repo to download all resources required for implementation. https://github.com/deepcontent2208/db_change_mgmt_liquibase_github.git CI/CD Pipeline Configuration CI Pipeline The Continuous Integration (CI) workflow in GitHub Actions should focus on validating migration scripts before they are merged into the main branch. Use triggers on pull requests targeting main. Begin steps by checking out the repository using actions/checkout@v4, ensuring that the sql migration and “liquibase.properties” files are available locally. Database authentication details can be stored either in Azure Key Vault or GitHub Secrets. These details will be extracted dynamically during workflow execution. Following is the code snippet for extraction: Next, execute Liquibase validate CI, by invoking CI GitHub workflow. Capture and report any validation errors to prevent faulty migrations from entering the code base. CD Pipeline Continuous Deployment (CD) workflows apply the validated migrations to target environments. Use on-demand triggers with workflow_dispatch for production deployments to avoid accidental changes. In your workflow configuration, after actions/checkout@v4, authenticate and fetch Key Vault secrets similarly to the CI pipeline. You may add environment approvals (GitHub Environments) for prod. 3 different CD workflows are being used – “Database Deployment”, “Database Rollback” and “Database Schema Drift”. Following is the architecture of schema deployment; it uses same repo to deploy across environments. Invoke Liquibase CD workflow pipeline to implement the changes. The same pipeline/workflow will work for DEV, QA and PROD as it is parameterized. Workflow will use the same SQL changelog file for all environments to ensure schema consistency across environments unless developers decide to use different SQL changelogs for different environments. Following snippet shows parameters for workflow execution. Release “tag” should be provided with proper tags. It will ensure Rollback can be done to the provided “tag”. Conclusion Database change management is critical for maintaining application integrity and enabling continuous delivery. Liquibase provides a mature and reliable framework for tracking, versioning, and applying schema changes and rollback in a production environment. By integrating Liquibase with Azure Database for PostgreSQL, Azure SQL Database, Azure SQL MI, GitHub Actions, a self-hosted runner, and Azure Key Vault, teams can establish fully automated and secure CI/CD pipelines for databases. Adopting migration-based workflows, enforcing version control, leveraging environment parity, and following best practices reduces deployment risks and supports auditing and compliance requirements. As database schemas evolve, having an auditable history and the ability to apply changes in a controlled, repeatable way empowers development teams to innovate while preserving data integrity.581Views4likes2CommentsAzure 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!495Views3likes0CommentsWhy 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.A Single View of Your PostgreSQL Estate: Database Hub in Public Preview
By Varun Dhawan, Matt McFarland, Erdem Tuna from Microsoft PostgreSQL team Azure Database for PostgreSQL support in Database Hub is now in public preview, bringing fleet visibility, security posture, and performance monitoring into one place. This preview is part of the broader vision outlined in our SQLCon Barcelona 2026 announcement: bringing database signals together so teams can see where attention is needed and take a well-informed next step. Here, we focus on the Azure PostgreSQL experience in Database Hub. Database Hub in Microsoft Fabric lets you monitor existing flexible servers in their Azure subscriptions and regions, without moving or mirroring data or building a new customer-managed telemetry pipeline. Baseline monitoring uses existing Azure Monitor metrics. Available capabilities vary by database service. Start with a practical question: Which PostgreSQL servers show sustained memory pressure, and which should I investigate first? Follow the three views below to narrow the scope and compare trends. See the PostgreSQL monitoring guide for setup and preview details. 1. Start with an estate-wide Overview Overview brings cross-engine findings and performance summaries into one starting point. Spot a signal worth investigating, such as elevated PostgreSQL memory usage, then open Estate to focus on the relevant resources. Figure 1: Overview combines cross-engine findings with performance summaries, including PostgreSQL, to help prioritize investigation. Illustrative mockup with sample data. 2. Focus on your Azure PostgreSQL estate In Estate, select the PostgreSQL view and filter by subscription or resource group to define the scope for the memory-pressure investigation. Compare the flexible servers you can access before choosing resources to examine: Filter your PostgreSQL estate by subscription or resource group to focus on the servers you manage. Review a flexible server's resource details in one place. The inventory represents server instances, not each database hosted inside them. Save and share a custom view for a scope you revisit regularly. Colleagues see only the resources their existing permissions allow. Figure 2: Estate filtered to PostgreSQL, bringing flexible server resources, status, findings, and subscription context into one inventory. Illustrative mockup with sample data. Once you have scoped your estate, switch to Performance and select the PostgreSQL servers you want to investigate. 3. Review security posture and performance Security posture In public preview, Database Hub assesses four aspects of your Azure PostgreSQL security configuration: Microsoft Entra authentication: identify servers where it is not enabled. Encryption at rest using customer-managed keys: review key management against your organization's policy. A server using service-managed keys is still encrypted at rest. Microsoft Entra authentication enforced: review whether Microsoft Entra authentication is required, rather than only available as an option. Public Network Access Disabled: review public exposure against your network policy. The private networking guidance explains the virtual network integration option. Performance monitoring In Performance, select the PostgreSQL dashboard and use CPU, memory, and storage summaries to identify servers that need a closer look. You can also review disk activity, connections, failed connections, and applicable read-replica lag. For the memory-pressure question, compare server trends over the same interval to distinguish sustained pressure from a brief spike. Use the Azure Monitor metric reference to match units and aggregation. Missing data is not proof of good health. Figure 3: Performance monitoring with PostgreSQL selected, illustrating utilization summaries and trends for closer investigation. Illustrative mockup with sample data. When a server needs a deeper look, continue in the Azure portal and PostgreSQL tools using the monitoring and diagnostics guidance. Preview scope: Monitoring is metric-based; query-level diagnostics remain in native PostgreSQL tools. Security findings are not a complete compliance audit. Database Hub does not automatically tune, resize, or remediate PostgreSQL servers. Check the servers selected in Performance: dashboard scope can differ from the Estate inventory. Why this matters if you run Postgres at scale Database Hub doesn't replace your PostgreSQL expertise or native tools. It reduces the work of finding which servers need attention, alongside your other supported database engines including SQL Database and Cosmos DB. The Database Hub FAQ explains the access boundaries and how the experiences fit together. Get started Review the Database Hub documentation and PostgreSQL prerequisites, then: Enable the preview: Ask your Fabric administrator to enable Users can access the Database hub (preview) in Tenant settings. Check access: Use a Microsoft Entra identity with Reader or greater permissions on each subscription containing the servers you want to monitor. Start here: open Database Hub in Microsoft Fabric. Scope your estate: In Estate, choose View: PostgreSQL and filter to the subscriptions or resource groups you manage. Compare servers: In Performance, select PostgreSQL, choose the servers to compare, and set the same time range and aggregation. Access boundary: Resource visibility and shared views do not grant permission to query databases. Existing PostgreSQL authentication and network controls still apply. As your PostgreSQL estate grows, Database Hub brings the bigger picture into focus, helping you see where attention is needed and take a more informed next step. We're excited to bring Azure PostgreSQL into this shared experience. Explore the public preview in Microsoft Fabric and discover a simpler way to stay on top of your PostgreSQL estate.611Views3likes2Comments