Learn · PostgreSQL operations

Oracle RAC alternative on PostgreSQL: what replaces it, and what does not

Oracle RAC is bought for several jobs at once. PostgreSQL replaces some of them, partly replaces one and does not replace another. This guide splits the jobs so you can see which ones your estate needs.

45 minutes with an engineer: we review your workload and sketch the design.

  • Docs read 3 Dec 2026
  • OSStend runs Patroni or CloudNativePG

PostgreSQL has no shared-disk, multi-writer equivalent of Oracle RAC. What most RAC estates were bought for, surviving the loss of a node, is covered by a primary with standbys and a failover tool. Scaling writes across nodes is not. Decide which job RAC does for you, then use the table below to see what replaces it. Docs read 3 December 2026.

Customers

  • Microsoft logo
  • Henry Schein logo
  • Enbridge logo
  • Gojek logo

Partners

  • Broadcom logo
  • Redis logo
  • VMware Tanzu logo
  • OSSeva logo

What is Oracle RAC, and why is it hard to replace?

Oracle describes RAC as a shared-everything database: several instances, each on its own server, all access one database whose files sit on shared disks, and Cache Fusion keeps their buffer caches in step. Oracle says applications can run on it without code changes. PostgreSQL has no equivalent design, so you replace the jobs RAC did.

Source: Oracle RAC introduction, Oracle Database 19c docs, docs read 3 Dec 2026. Oracle also says an extended cluster may not meet all disaster-recovery needs and recommends Data Guard with RAC.

Because RAC and PostgreSQL scale differently, the useful question is not "what is the PostgreSQL RAC?" but "which of RAC's jobs does this system actually need?"

Which RAC job do you need, and what covers it in PostgreSQL?

RAC is bought for several jobs: surviving a node failure without losing commits, rolling maintenance, scaling reads and scaling writes across nodes. PostgreSQL replaces node-loss survival and read scaling, gives zero data loss at a latency cost, partly replaces rolling maintenance and does not scale writes across nodes.

RAC jobMatchWhat you give up or must design
Survive loss of a nodePrimary plus streaming standby in another zone; a failover tool promotes itReplacedFailover is a promotion, not a continuation: connections drop and applications must reconnect. A fencing and client-routing design is required (failover)
Zero data loss on that failureSynchronous standby with synchronous_commit on and synchronous_standby_namesReplaced, at a costEach commit waits for a standby; writes stall if no named standby is reachable. Oracle Data Guard offers the same trade in its Maximum Availability and Maximum Protection modes
Rolling maintenanceSwitchover to a standby, then upgrade the old primary; minor releases need a restartPartlyThere is a short switchover, not none
Scale readsRead replicas behind a router or poolerReplacedReplica lag is a design input; asynchronous replicas can be behind
Scale writes across nodesNone. The PostgreSQL manual says it does not offer synchronous multimaster replication (manual, docs read 3 Dec 2026)Not replacedScale up one primary, split data by partitioning or sharding in the application or with extensions, or redesign hot tables
Shared storageThe manual describes shared-disk failover and warns that if the shared array fails, primary and standby are both down (manual)Not advisedEach node keeps its own copy of the data

Oracle statements are from Oracle's published docs, docs read 3 Dec 2026; PostgreSQL statements are from its manual, linked in the cells. The Match column is our reading.

45 minutes with an engineer: we review your workload and sketch the design, then price it.

What is the PostgreSQL equivalent of Oracle Data Guard?

Streaming replication plus a failover tool is the nearest equivalent. Data Guard keeps a physical standby by applying redo and offers three protection modes. PostgreSQL ships WAL to standbys, and synchronous_commit and synchronous_standby_names choose how long a commit waits. PostgreSQL leaves automatic failover to Patroni, CloudNativePG or a cloud control plane.

Oracle Data GuardPostgreSQL
Physical standby kept in step by applying redoStreaming replication of WAL to a standby (replication settings)
Maximum Performance (the default): asynchronousDefault: asynchronous
Maximum Availability: commit waits for a synchronized standby, and falls back to performance mode if none is reachablesynchronous_commit with a quorum such as ANY 2 of 3 standbys. What happens with no standby available is a design decision; see the HA guide
Maximum Protection: the primary shuts down rather than commit without a standbyA single named synchronous standby that stalls writes while it is down
Fast-start failover by the brokerA cluster manager such as Patroni, or the Kubernetes operator in CloudNativePG

How does failover work, and how long does it take?

Failover has three parts: detecting the dead primary, promoting a standby and moving client traffic. Detection time depends on the tool's timers. Patroni's defaults are ttl 30, loop_wait 10 and retry_timeout 10 seconds, so detection is bounded by those settings, not by PostgreSQL.

The timers are in Patroni's dynamic configuration docs. What they mean for a failover is worked through in CloudNativePG vs Patroni, and fencing and pg_rewind are in the HA guide. No failover time is promised here: it is measured in the rehearsal on your cluster and written into the design.

What does the application have to change?

Oracle says RAC applications can run without code changes. A PostgreSQL failover is not transparent: connections break and must be re-established. Plan for connection retry, a router that follows the leader, idempotent writes where a commit may be unacknowledged, and a connection pool sized to the server.

Reconnect logic.
After a promotion, existing connections break and applications must reconnect (HA guide).
Routing.
A DNS name, virtual IP, load balancer or pooler that follows the leader.
Unacknowledged commits.
With asynchronous replication, the last commits may not have reached the standby. Choose synchronous commit per database where that is not acceptable.
Connection budget.
PostgreSQL runs one process per connection; see connection limits.

How does OSStend run this?

OSStend designs the failover stack with you in writing, builds it, runs a failover on purpose before go-live, and then runs it 24/7: named engineers watch replication lag, archived WAL and transaction ID age. It runs in OSStend's cloud, your cloud account or your data center.

How each Oracle expectation maps to a PostgreSQL design is on managed PostgreSQL for Oracle workloads; response terms are on service levels. On Kubernetes or OpenShift, see managed CloudNativePG.

Who this fits, and who it does not

A primary with standbys fits RAC estates bought for node-loss survival and rolling patching. It does not fit active-active writes across sites with no application change.

Contact us if

  • Your RAC was bought for node-loss survival and rolling patching.
  • You are leaving Oracle for cost.
  • You will accept a short, rehearsed failover.
Talk to an engineer

Not a fit if

  • You need active-active writes across sites with no application change.
  • You are not willing to touch connection handling.
  • You run one small database that a managed cloud plan holds.

Questions about replacing Oracle RAC with PostgreSQL

What is the PostgreSQL alternative to Oracle RAC?

A primary with one or more standbys and a failover tool such as Patroni, or CloudNativePG on Kubernetes. It replaces node-loss survival, not multi-node write scaling.

Does PostgreSQL support multi-master?

Not synchronous multimaster. The manual says it does not offer that type of replication, though built-in logical replication lets a server publish and subscribe, so data can flow in several directions with its own conflict rules (manual, docs read 3 Dec 2026).

Can PostgreSQL give zero data loss on failover?

Yes, for commits acknowledged under synchronous_commit on or remote_apply while a synchronous standby is available, per the PostgreSQL manual as summarised in the HA guide. The cost is added commit latency.

What is the Oracle Data Guard equivalent in PostgreSQL?

Streaming replication with synchronous or asynchronous standbys, plus a cluster manager for automatic failover. See the Data Guard table above.

Do I need Kubernetes for this?

No. Patroni runs on virtual machines and bare metal; CloudNativePG runs on Kubernetes and OpenShift (comparison).

Talk to an engineer

Take your failover design to an engineer

45 minutes: your RAC requirements are sorted into replaced, partly replaced and not replaced, and the PostgreSQL design is sketched.

  • A design sketch for your workload, not a plan menu
  • A zero-downtime cutover path for what you run today
  • A price for that design, after the review
See pricing →

Your request goes to the OSStend team. No newsletter sign-up.

Get a quoteTalk to an engineer
2Engines Optional
3Where should it run?
4What do you need?

Your request goes to the OSStend team. No newsletter sign-up.