<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=2826169&amp;fmt=gif">
Start trial

    Start trial

      img-anim-badge-gear-01

      Your business needs PostgreSQL databases in two regions to accept writes, or you're being asked to recreate an active-active setup from a legacy platform. Either way, you need to understand your replication options before choosing an architecture.

      PostgreSQL doesn't provide native multi-master replication. Supporting writes across multiple nodes requires additional configuration, extensions, or third-party platforms.

      Your decision depends on where writes originate, how you'll handle conflicts, and whether your team can manage multiple writable nodes. This guide compares the available options and their trade-offs to help you choose.

      Explore PostgreSQL multi-master replication options, their trade-offs, and when simpler architectures better meet your need

      What multi-master replication means in PostgreSQL

      Multi-master replication allows multiple PostgreSQL nodes to accept writes concurrently and replicate changes between them. You'll also encounter these related terms:

      • Multi-master replication (MMR)
        Multiple nodes accept and replicate writes.
      • Active-active replication
        Multiple nodes remain writable.
      • Bi-directional replication
        Changes flow in both directions, although write ownership may be restricted.
      • BDR
        Also refers to a product lineage originating at 2ndQuadrant and now part of EnterpriseDB.

      How does multi-master differ from streaming and logical replication?

      Physical streaming replication maintains a read-only standby, while logical replication transfers row-level changes between PostgreSQL databases.

      • Physical streaming replication
        Replays write-ahead log (WAL) records on a standby. The standby can serve queries through hot standby but can't accept application writes.
      • Logical replication
        Uses logical decoding to replicate inserts, updates, and deletes. Subscribers can also accept local writes, but PostgreSQL doesn't automatically coordinate conflicts between writable nodes.

      Multi-master solutions build on logical replication or trigger-based mechanisms, adding controls for replication loops and concurrent writes.

      Why doesn't PostgreSQL support native multi-master replication?

      PostgreSQL doesn't provide a complete native framework for coordinating concurrent writes across multiple nodes. If two nodes update the same record, the system needs rules for deciding which change survives.

      PostgreSQL 16 introduced origin filtering, enabling basic bi-directional logical replication without loops. However, origin filtering doesn't automatically resolve write conflicts.

      The conflict problem that defines every multi-master design

      Write conflicts occur when PostgreSQL nodes modify the same data before receiving each other's changes. Your replication solution needs a strategy for resolving them.

      Depending on the implementation, conflict-handling options include:

      • Last-update-wins
        Retains the change with the latest timestamp, according to the implementation's rules.
      • Delta-apply
        Applies numerical differences to configured columns, preserving concurrent increments or decrements.
      • Custom conflict resolution
        Uses application-specific rules or handlers where supported.

      With asynchronous replication, both nodes can acknowledge writes before detecting a conflict. An acknowledged update may subsequently be overwritten.

      How network latency affects multi-master replication

      Network latency affects the practicality of synchronous replication across regions. Depending on its configuration, synchronous replication can strengthen durability guarantees, but remote acknowledgment increases commit latency.

      EnterpriseDB's 2024 PostgreSQL benchmarks found that the performance impact of synchronous replication was almost negligible at 3 ms network latency under high concurrency, while a measurable gap persisted at 10 ms. Cross-region connections can introduce considerably higher latency, making synchronous replication less practical for latency-sensitive workloads.

      Asynchronous replication avoids waiting for remote acknowledgment but increases the window for conflicting writes. Synchronous replication alone doesn't provide globally coordinated transactions or automatic conflict prevention. Check each platform's documented consistency guarantees.

      What are the operational challenges of multi-master replication?

      Multi-master replication adds requirements for schema coordination, sequence management, monitoring, and upgrades.

      The main operational challenges include:

      • DDL coordination
        Inconsistent schema changes can interrupt replication.
      • Sequence management
        Independently generated identifiers can collide across nodes.
      • Monitoring
        Track replication lag, conflicts, and node health across multiple paths.
      • Upgrades
        Maintain replication compatibility while upgrading nodes.

      These requirements add to your team's operational workload, particularly as you introduce more writable nodes across regions. You'll need consistent PostgreSQL security practices across every node, including access controls, audit logging, and compliance safeguards for regulated environments.

      The multi-master options available in 2026

      PostgreSQL multi-master replication options include native logical replication, pgactive, Fujitsu Enterprise Postgres, Spock, EDB Postgres Distributed, and Bucardo.

      Native logical replication with origin filteringroundel-circular-arrow-with-gear-01

      PostgreSQL 16 and later support basic bi-directional replication without extensions. Each node publishes its changes and subscribes to the other.

      How it works
      • Create publications using CREATE PUBLICATION.
      • Create subscriptions with origin = none to prevent replication loops.
      • Configure additional nodes and verify synchronization.

      See Fujitsu's bi-directional replication walkthrough for the full setup.

      Capabilities Origin filtering excludes changes that originated elsewhere, enabling basic two-way replication.
      Best suited to Origin filtering excludes changes that originated elsewhere, enabling basic two-way replication.
      Limitations PostgreSQL doesn't provide automatic conflict resolution or DDL replication. Conflicts can stop replication, while copy_data = true with origin = none creates initial synchronization limitations documented by PostgreSQL.

      pgactiveroundel-circle-with-diverging-arrows-02

      pgactive is an open-source logical replication extension maintained by AWS, with roots in earlier BDR technology. It supports active-active PostgreSQL deployments with automatic conflict handling.

      How it works
      • Install pgactive and configure logical replication.
      • Create a replication group.
      • Join additional nodes.

      The pgactive quick-start guide documents configuration.

      Capabilities The pgactive reference guide documents last-update-wins resolution, conflict history, replication statistics, and sequence-management functions.
      Best suited to Applications requiring multiple writable nodes that can tolerate eventual consistency.
      Limitations Replicated tables require primary keys, DDL changes need coordination, and certain conflicts require manual intervention.

      Fujitsu Enterprise Postgres multi-master replicationroundel-gear-and-computer-circuitry-02

      Fujitsu Enterprise Postgres combines multi-master replication across regions with primary-standby high availability within each region. Fujitsu's implementation is built on pgactive, the open source extension developed by AWS, with Fujitsu's own additions on top.

      How it works
      • Configure database multiplexing within each region.
      • Enable pgactive and the required PostgreSQL settings.
      • Establish cross-region replication and select participating tables.

      The Fujitsu Cluster Operation Guide documents the configuration.

      Capabilities Fujitsu supports bi-directional replication, table-level controls, and delta-based recovery, alongside local high availability.
      Best suited to Enterprise applications requiring cross-region writes and in-region failover.
      Limitations Requires a supported Fujitsu Enterprise Postgres release. Your team must still plan conflict resolution, sequence management, and schema changes. For mission-critical workloads, check that your enterprise PostgreSQL support covers incident response, escalation, and troubleshooting across multiple regions.

      Spock and pgEdge Distributed PostgreSQLroundel-app-01

      Spock is an open-source logical replication extension used by pgEdge for multi-master PostgreSQL deployments.

      How it works
      • Install Spock and configure PostgreSQL replication settings.
      • Register nodes and create subscriptions.
      • Configure replication sets and conflict handling.
      Capabilities Spock supports timestamp-based conflict resolution, configurable delta-apply columns, conflict logging, and optional DDL replication.
      Best suited to Applications requiring distributed writes and delta-apply handling for concurrent numerical updates.
      Limitations Timestamp-based resolution requires commit timestamp tracking. Automatic DDL replication needs configuration and has documented restrictions, particularly in multi-node deployments. Check feature support against your installed Spock version.

      EDB Postgres Distributedroundel-diagram-04

      EDB Postgres Distributed (PGD) is a commercial multi-master platform based on the BDR technology lineage developed by 2ndQuadrant.

      How it works
      • Deploy supported EDB Postgres servers.
      • Configure a distributed node group.
      • Establish replication and conflict policies.
      Capabilities The vendor documents automatic conflict resolution, configurable resolvers, conflict tracking, DDL replication, and eager replication modes.
      Best suited to Geographically distributed applications requiring configurable conflict-management policies.
      Limitations Requires commercial licensing and supported EDB builds. Certain conflicts can interrupt replication and require intervention.

      Bucardoroundel-clipboard-with-check-mark-and-pencil-02

      Bucardo is an open-source, trigger-based system for asynchronous PostgreSQL multi-master replication. It uses database triggers and an external Perl daemon to synchronize changes.

      How it works
      • Install Bucardo and configure its control database.
      • Register databases and tables.
      • Configure synchronization groups and conflict handling.

      See the Bucardo documentation for configuration instructions.

      Capabilities Bucardo supports built-in and custom conflict handlers, including source selection and custom Perl rules.
      Best suited to Existing Bucardo deployments or applications requiring trigger-based replication.
      Limitations Triggers add processing overhead, while the daemon and control database require separate administration. DDL changes need coordination.
      Where pglogical fits pglogical provides extension-based logical replication and influenced earlier BDR implementations. It doesn't independently provide the complete multi-master conflict-management capabilities described above.

      Comparing PostgreSQL multi-master replication options

      PostgreSQL multi-master solutions differ in how they replicate changes, how they resolve conflicts, whether failover inside a region comes with them, and how much operational work they hand to your team. The table below compares those dimensions against each option’s documented behavior.

      Option Replication mechanism Conflict resolution In-region failover Track record What it asks of your team
      Native logical replication Core logical replication with origin filtering None automatic; apply worker can stop on conflicts Separate tooling required Origin filtering has shipped in PostgreSQL core since version 16 Standard PostgreSQL administration, manual DDL coordination, and conflict handling built into the application
      pgactive Logical replication extension Automatic, including last-update-wins, with conflict logging Separate tooling required Published and maintained by AWS, on lineage running back to earlier BDR work Extension management, primary keys on replicated tables, sequence planning, manual DDL coordination
      Fujitsu Enterprise Postgres pgactive-based logical replication pgactive-based; supported policies depend on Fujitsu’s implementation Included, through Mirroring Controller Built on pgactive, with Fujitsu’s additions and commercial support behind it Vendor-supported deployment; conflict and schema planning still sit with your team
      Spock / pgEdge Logical replication extension Timestamp-based resolution, delta-apply, conflict logging Separate tooling required Developed for pgEdge’s distributed platform and published as open source Version-matched extension management, commit timestamp tracking, DDL replication configuration
      EDB Postgres Distributed BDR-based logical replication Multiple resolvers, conflict triggers, eager replication options Per vendor documentation Commercial platform on the BDR lineage from 2ndQuadrant Licensed builds and vendor-specific operational tooling
      Bucardo Trigger-based asynchronous replication Built-in and custom conflict handlers Separate tooling required The longest-running option here, predating logical replication in core Perl daemon and control database administration, trigger maintenance, manual DDL coordination

      Comparison of PostgreSQL multi-master replication options

      The replication machinery behind every option here has years of production use. What varies is how long each has existed as a packaged product. Native logical replication and Bucardo are the longest-standing, and native logical replication is the only option that needs nothing installed. pgactive carries lineage running back to earlier BDR work, and the platforms built on top of it, including Fujitsu’s, are newer as products than the engine underneath them. What separates the options in practice is the right-hand column: anything beyond standard PostgreSQL administration — trigger and daemon maintenance, commit timestamp tracking, conflict policy design — wants someone who has run it before.

      When multi-master replication is the wrong choice

      Multi-master replication solves exactly one problem: accepting writes in more than one location. Most requirements that arrive labeled "we need active-active" are one of the four below wearing the same words, and each has an answer that costs far less to operate.

      • Read scaling and load balancing
        Use hot standby replicas with read-query routing through a solution such as Pgpool-II.
      • Regional read performance
        Place streaming replicas closer to users, using cascading replication where appropriate.
      • Fault tolerance and failover
        Use streaming replication with automated failover to maintain availability after a primary failure.
      • Write-throughput scaling
        Consider sharding or a distributed database architecture to distribute writes across partitions.

      For example, manufacturers operating multiple plants may need local database availability to keep production running during network interruptions. That requirement should inform their manufacturing database modernization strategy before they commit to multi-master replication.

      How to decide if you need multi-master replication

      Before choosing multi-master replication, ask three questions:

      • Do writes need to originate in multiple regions?
        If you can route writes to one primary, multi-master may add unnecessary complexity.
      • Can your application tolerate conflicting writes?
        Asynchronous replication requires a strategy for handling conflicts and eventual consistency.
      • Can your team manage multiple writable nodes?
        Consider monitoring, schema changes, failover, and conflict resolution across regions.

      If your requirements don't justify that additional complexity, a single-primary architecture may provide the scalability and availability you need.

      How Fujitsu Enterprise Postgres supports multi-region availability

      Fujitsu Enterprise Postgres combines multi-master replication across regions with primary-standby high availability within each region. The implementation provides:

      • Bi-directional replication
        Synchronizes data between regions without installing a separate replication tool.
      • In-region high availability
        Uses primary-standby duplication, with Mirroring Controller managing monitoring, automatic failover, and split-brain prevention.
      • Delta-based recovery
        Synchronizes changes made during an interruption without requiring a full data resynchronization.
      • Active nodes
        Allows each region to process writes rather than reserving an entire region as a standby.
      • Table-level controls
        Lets you include or exclude specific tables from replication.

      For infrastructure-specific requirements, Fujitsu also offers Enterprise Postgres on IBM LinuxONE, combining database high availability with hardware-backed encryption and disaster recovery capabilities.

      You'll still need to plan conflict resolution, sequence management, and schema changes. See the Fujitsu Enterprise Postgres key features for further capability details.

      Choosing a PostgreSQL replication architecture you can operate

      Choose your architecture based on write locations, conflict tolerance, and your team's operational capacity. 

      Fujitsu brings 24/7 global enterprise support to deployments with regulated industry requirements and data residency requirements.

      Test it against your own availability targets with a free trial of Fujitsu Enterprise Postgres.

      Frequently asked questions about PostgreSQL multi-master replication

      Does PostgreSQL support multi-master replication natively?

      PostgreSQL doesn't provide a complete native multi-master replication solution. Physical streaming replication uses a single writable primary, while logical replication allows subscribers to accept local writes. PostgreSQL 16 introduced origin filtering for basic bi-directional replication, but automatic conflict handling requires additional tooling or application logic.

      What is the difference between multi-master and bi-directional replication?

      Multi-master and bi-directional replication describe closely related architectures that allow multiple PostgreSQL nodes to accept and exchange writes. Multi-master emphasizes multiple writable nodes, while bi-directional replication describes changes flowing in both directions. You'll also encounter active-active and BDR, although BDR refers to a specific technology lineage originating at 2ndQuadrant and now part of EnterpriseDB.

      How are write conflicts resolved in multi-master PostgreSQL?

      Write conflicts in multi-master PostgreSQL are resolved using strategies such as last-update-wins, delta-apply, or custom conflict handlers. The available methods depend on your replication solution. With asynchronous replication, conflicting writes may already have been acknowledged before resolution occurs, meaning one update could subsequently be overwritten.

      Is multi-master replication suitable for high availability?

      Multi-master replication can improve write availability across nodes, but failover and fault tolerance depend on the implementation. You may still need separate monitoring and automated failover. Fujitsu Enterprise Postgres combines cross-region multi-master replication with primary-standby high availability within each region.

      Can you run multi-master replication across cloud regions?

      You can run PostgreSQL multi-master replication across cloud regions using extensions or platforms that support distributed writes. Network latency affects replication performance and consistency. Synchronous replication can increase commit latency across regions, while asynchronous replication allows nodes to accept writes independently but introduces potential conflicts and replication lag.

      Topics: PostgreSQL, Fujitsu Enterprise Postgres, PostgreSQL development, Logical replication, High Availability, Database replication, PostgreSQL high availability, PostgreSQL replication

      Receive our blog

      Search by topic

      see all >
      photo-fujitsu-in-hlight-circle-orange-to-yellow-02
      Fujitsu
      We make the world more sustainable by building trust in society through innovation.

      Fujitsu provides migration, support and training services for PostgreSQL, plus Fujitsu Enterprise Postgres, the open source based database with enhanced enterprise capabilities.
      roundel-owl-and-book-01PostgreSQL Insider 
      has a series of technical articles for PostgreSQL enthusiasts of all stripes, with tips and how-to's.
      Explore PostgreSQL Insider >
      Subscribe to be notified of future blog posts
      If you would like to be notified of our next blog posts and other PostgreSQL-related articles, fill the form here.

      Read our latest blogs

      Read our most recent articles regarding all aspects of PostgreSQL and Fujitsu Enterprise Postgres.

      Receive our blog

      Fill the form to receive notifications of future posts

      Search by topic

      see all >