Why a cross-region PostgreSQL standby needs its own design
If your single region is a failure domain for your database, you need a second-region copy of PostgreSQL that can be promoted when the first region is lost. A cross-region standby is an asynchronous replica or a Patroni standby cluster in a second region, promoted by a runbook your team has rehearsed. It is not a synchronous replica, and it is not a backup you restore from scratch.
PostgreSQL supplies the mechanics: hot standby servers that replicate from the primary over the network, and continuous archiving, which ships WAL files and combines a base backup with archived WAL for point-in-time recovery. PostgreSQL does not detect a failed primary or notify the standby, so failure detection, promotion and client cutover come from external tools and procedures you choose and test. The PostgreSQL high availability documentation describes the replication options, and the failover documentation explains why promotion is a separate step. Automatic promotion across regions is a decision, not a default, and many teams keep it manual so a WAN partition cannot trigger a second primary.
The design has to be built in your own cloud accounts, data centers or networks, with your identity, secrets and change controls. PostgreSQL is released under the PostgreSQL License, a permissive open source license, so there is no license fee to plan for, but the cost sits in the second region's compute, storage, WAN bandwidth and the time spent rehearsing. DeployOpen plans and builds this inside your infrastructure. Before scoping, confirm with your compliance team which recovery point and recovery time targets apply to this database, and which regions your data may reside in.
Which standby topology fits your recovery targets
A plain warm standby is one PostgreSQL server in the second region that receives WAL from the primary and replays it, ready to be promoted by hand. The team builds it from a base backup, marks it with standby.signal, and points it at the primary. PostgreSQL does not detect a failed primary or notify the standby, so the decision to promote rests with people or with monitoring your team builds and operates. The PostgreSQL failover documentation covers the promotion steps this design depends on.
- Setup work: Create the standby from a base backup, add replication entries to
pg_hba.conf, and confirm replay position after each change. Keep the configuration in version control so the standby can be rebuilt the same way. - Promotion trigger: An on-call engineer or an alert decides that the primary is gone and runs promotion on the standby. The time that decision takes is part of your recovery time, so ask who makes the call and how they confirm the outage is real.
- Operational overhead: Few moving parts, but the team owns the runbook, replication monitoring, and regular rehearsals of promotion.
- Split-brain risk: If the primary region is only partly unreachable, the old primary may keep accepting writes. The runbook should stop or fence the old primary before the standby is promoted.
- Rebuild after promotion: The former primary must be resynchronized as a standby before the site is protected again. Include that work and its owner in the runbook.
Check who makes the promotion decision, how long they need to reach it, and whether the runbook has been rehearsed over the WAN link you will actually use.
A Patroni standby cluster runs its own Patroni nodes and its own distributed configuration store (DCS) in the second region, with a leader elected inside that region. Its leader replicates from the primary cluster through direct streaming, or through a relay node in the same design, and the standby cluster is configured through a standby_cluster section in the DCS. The high availability documentation describes the replication modes this depends on. Patroni keeps the second region's nodes consistent with each other, but it does not remove the need to decide when the primary region is lost.
- Team needs: Operators must run and upgrade a DCS in each region, understand Patroni's leader and quorum behavior, and maintain load balancing through HAProxy or a virtual IP. Ask whether your team has done this before or whether the work must be contracted.
- Promotion trigger: Promotion is performed by changing the standby cluster configuration so its leader takes writes. Confirm the exact procedure for your Patroni version, and decide whether a person or automation makes that change.
- Operational overhead: Two clusters, two DCS deployments, and two sets of upgrades and certificates. Each extra component is another thing to monitor during an incident.
- Split-brain risk across regions: A WAN outage can isolate the standby region's DCS from the primary's, so each side may believe it is authoritative. Fencing the old primary before promotion is still required, and the cluster tooling does not replace that step.
- Failure behavior: A standby cluster keeps a local leader through a WAN outage, which helps only if the standby region's own nodes and DCS stay healthy.
Confirm the procedure, DCS placement, and fencing steps against the Patroni documentation for your version before you commit to this design.
The right topology depends less on which design is more capable and more on what your team can keep correct during a regional outage. A plain standby has fewer components to fail but relies on a rehearsed human decision. A Patroni standby cluster shortens the path to a working second region but adds a second DCS, more configuration, and more places where two sides can disagree. Use your recovery point and recovery time targets as the test, then ask whether the team can meet them with the design you choose. The continuous archiving documentation is a useful reference for the WAL fallback that either design can use.
- Team capacity: Count the people who can run promotion at any hour and who understand the topology. If that group is small, a simpler design with a tested runbook is often easier to keep correct.
- Recovery targets: Your recovery time target sets how fast promotion must happen. Your recovery point target depends on replication lag over the WAN link, so measure lag before choosing a design.
- Failure domains: A cluster in the second region can keep a local leader during a WAN outage. A plain standby has no quorum to lose, but it also depends entirely on the decision of whoever is on call.
- Cost components: A plain standby costs mainly the second server, its storage, and staff time for runbook upkeep. A Patroni standby cluster adds DCS members, load balancing, and engineering time for both clusters. Ask any quote to itemize these, with one-time and recurring costs separated.
- Staged path: Some teams start with a plain standby, rehearse promotion, and move to a cluster once operators have the skills to run it.
Confirm the choice in a written test: measure lag, time a promotion rehearsal, and check whether the result meets your targets in your own environment.
Configuration options and when each fits
This table compares the settings that shape a cross-region PostgreSQL standby, with the situation each one fits and the trade-off it brings. Read each row as a decision point: the setting either supports your recovery point target across the WAN or creates a risk you must monitor. Confirm exact defaults and behavior against the PostgreSQL version and Patroni release you plan to run.
| Setting | When it fits | Trade-off to plan for |
|---|---|---|
| primary_conninfo | Streams WAL from the primary region to the standby over the WAN link, with TLS and a dedicated replication role. | A dropped or slow WAN link stalls streaming, so lag grows until the link recovers. Test reconnection behavior. |
| restore_command | Lets the standby fetch WAL segments from the archive when streaming falls behind or a slot is missing. | Archive fetches are slower than streaming and depend on the archive being reachable from the second region. |
| archive_command | Ships completed WAL segments from the primary to an off-site archive, giving the standby a fallback source and a PITR path. | Archived segments arrive in batches, so the archive, not the stream, often sets the worst-case recovery point. Monitor archive failures. |
| Replication slot (primary_slot_name) | Stops the primary from removing WAL the standby has not yet received, which matters when a WAN outage is longer than normal WAL retention. | An inactive slot retains WAL on the primary and can fill its disk. Pair slot use with a size cap. |
| wal_keep_size or max_slot_wal_keep_size | wal_keep_size keeps a fixed WAL window without slots. max_slot_wal_keep_size caps how much WAL slots may hold on the primary. | A cap that is too small makes the standby unrecoverable after a long outage and forces a rebuild. Size the cap against your expected WAN outage and disk capacity. |
| recovery_min_apply_delay | Keeps the standby deliberately behind so a bad change on the primary can be recovered from the standby before it is applied. | The delay adds to the effective recovery point for a failover, and it does not replace point-in-time recovery from the archive. |
| synchronous_standby_names (left empty) | Keeps commits on the primary from waiting for the remote region, which is the usual choice for asynchronous WAN replication. | Commits can be lost if the primary fails before a change reaches the standby. The loss window is the replication lag you measure. |
| Patroni standby_cluster settings | Runs a whole second-region cluster as a standby of the primary cluster, so promotion is handled by Patroni rather than by manual steps. | Standby cluster settings need careful coordination with the DCS in each region, and the topology must be tested before a real promotion. |
Risks that appear on WAN links
A cross-region standby works until the WAN link, the primary's disk, or the standby's query load changes. The cards below pair each failure mode with the symptom to watch for and the design response to decide before go-live.
Lag grows under bandwidth limits
When WAL generation outpaces what the WAN link can carry, replay lag on the standby climbs steadily and your effective recovery point drifts further from the primary. Measure lag in bytes and seconds on both sides, and compare peak write volume (including bulk loads and index builds) with sustained link throughput. Ask your network team for measured, not nominal, bandwidth and jitter between regions before you commit to an RPO.
HA docsWAL retention fills the primary disk
If the standby is disconnected for an extended period, the primary keeps WAL it has not yet sent, and the disk holding pg_wal can fill and stop writes. The design response is to set an explicit WAL retention ceiling, alert on free space well before it is reached, and agree in advance whether you would rather drop the standby or pause the primary. Confirm this behavior for your PostgreSQL version in the replication documentation.
Replication slots add disk pressure
A physical replication slot holds WAL until the standby confirms receipt, so an abandoned or lagging slot can retain files long after the standby has stopped needing them. Check pg_replication_slots for inactive slots and their retained WAL, and cap retention with max_slot_wal_keep_size so one slot cannot consume the whole volume. Decide who owns slot cleanup when the DR region is decommissioned or rebuilt.
Network partitions trigger false promotion
A WAN outage looks identical to a dead primary from the standby region, so an automated promotion there can create a second writable primary when the original site is still serving clients. Require a quorum or witness outside both regions before any automatic promotion, and keep promotion of the DR cluster a documented, human-approved action unless that design is proven. Test the partition case explicitly, because it is the most common way cross-region clusters end up with two primaries.
Failover docsArchive gaps break point-in-time restore
Streaming replication alone does not guarantee a complete history, so a missing or corrupted WAL segment in the archive can stop a point-in-time restore at the wrong moment. Point-in-time recovery depends on a base backup plus a contiguous run of archived WAL, so monitor the archive command's success, check for gaps on a schedule, and restore from the archive in the DR region as a routine test. Confirm which archive tool and storage replication you will use before go-live.
Archiving docsHot standby query conflicts
If the DR standby serves read-only reporting queries, replay can be forced to wait for or cancel those queries, which shows up as query errors on the reader and growing lag on the standby. Decide whether the standby is purely a recovery target or also a read endpoint, and if it serves reads, tune conflict handling and monitor cancellations. Keep read traffic off the standby during a failover drill unless you have tested that behavior.
How to build the cross-region standby, step by step
This sequence turns a single-region PostgreSQL primary into a second-region standby that can be promoted during a disaster, with lag measured, archive fallback tested and a restore proven before anyone depends on it.
Confirm version support and the WAN network path
Confirm the primary runs a PostgreSQL major version still in support, and check the supported version list in the official versioning policy before choosing the standby build. Measure the WAN path between regions for latency, packet loss, bandwidth and firewall rules on the replication port, and record the expected peak write volume from the primary. Your team and DeployOpen agree these figures in writing. Done when the path test results and the version record are filed with the change request.
Provision the second region with matching major version
Build the standby hosts in the second region on the same PostgreSQL major version as the primary, with matching extensions, locale and relevant configuration. Matching the major version is required for physical streaming replication, and it avoids a version change during a failover. Install the same minor release where possible, since minor releases do not change the storage format. Done when the standby binaries report the same major version and the extension list matches the primary.
Configure replication roles and WAN-only access
Create a dedicated replication role with a strong credential and limit its access in pg_hba.conf to the standby's address only, so no other source can open a replication connection. Set the TLS settings for the replication connection and keep the password or certificate in your secrets store. Confirm the settings on both sides, then test the connection from the standby. Done when the standby connects with the replication role and the primary rejects the same role from any other address.
Take the base backup over the WAN link
Run pg_basebackup from the standby host against the primary, with WAL streaming enabled so the backup can start without a gap. Plan the transfer window with the bandwidth figures from the first step, since the initial copy of a large cluster can take a long time over a WAN link. Monitor disk space and checksums on the standby during the copy. Done when the backup completes without errors and the data directory is ready to start as a standby.
Ship archived WAL to off-site storage
Configure archive_command or your archive tool on the primary to copy completed WAL segments to storage in the second region or another site you control, and confirm that every segment is written and verified. The standby can then fetch archived WAL through restore_command when streaming falls behind or a connection breaks. Run a test that switches the WAL file on the primary and confirms the segment appears in the archive. Done when the archive receives segments continuously with no gaps in the sequence.
Start the standby and check replication health
Start the standby with its standby signal and connection settings in place, then confirm it streams from the primary and reports as a hot standby. Check replication status on the primary, including sent, written, flushed and replayed positions, and check that any replication slot is active and not growing without limit. Record the replay lag as your baseline. Done when the standby is streaming, the slot is healthy and lag stays within the range you agreed for the recovery point target.
Verify lag alerts and archive restore
Set alerts on replay lag, slot retained WAL and archive failures, and send them to the team that answers the pager. Then prove the archive path works by restoring a recent base backup and replaying archived WAL on a separate test host, and by checking that the restored data matches an agreed reference. Record the time the restore took. Done when the alerts fire in a test, the restore reaches the target point, and the results are filed for the runbook.
Document the exact commands and promotion runbook
Write down the exact commands for promotion, DNS or application cutover and the return to the original primary, and set them during the engagement against your own hosts and tooling. Include the decision owner, the lag threshold that triggers a promotion review and the steps to fence the old primary. Schedule a promotion drill so the runbook is tested against the standby. Done when the runbook has been run once in a test and the drill notes are signed off by the operations and security teams.
Primary region, WAN replication and archive fallback
The diagram starts with clients reaching the primary PostgreSQL cluster in region A through a load balancer or DNS record. Streaming replication carries WAL over the WAN to the standby cluster in region B, which serves as the warm standby. A separate path ships archived WAL and base backups to off-site storage, where a restore into region B acts as the fallback when the streaming link cannot supply the needed WAL. Check that each trust boundary has its own network controls, that the archive is reachable from region B, and that the cutover path is tested, not assumed.
Streaming replication, WAL archive fallback and cutover path across two regions.
What the promotion and cutover runbook must decide
The runbook must name who declares a disaster before anyone touches the standby. Declaration authority belongs to one named role with a fixed criterion, such as the primary region being unreachable for a defined period, so that operators do not promote a standby during a network blip that the primary survives. Write the decision down with the people on call, the escalation path, and the point at which the team accepts that writes made on the old primary after the last replayed WAL may be lost. Confirm that the business has signed off on that exposure, since it is the practical meaning of the RPO that lag defines.
Before promotion, the runbook must prove the old primary cannot accept writes. Confirm that the old primary is stopped, isolated, or fenced by a method your environment actually supports, and check it from a host outside the failed region. Then choose the promotion path. On a plain warm standby, pg_ctl promote (or the pg_promote() function) ends recovery and opens the standby for writes. On a Patroni standby cluster, the path is a Patroni failover or switchover, and the runbook should state which one applies and why. Confirm the exact Patroni and PostgreSQL behavior for your version against the PostgreSQL failover documentation before writing commands into the runbook.
Cutover time is set by how fast clients find the new primary. Decide whether traffic moves by DNS record change, a virtual IP, or a load balancer or proxy target update. For DNS, the record TTL, resolver caching in application runtimes, and connection pool lifetimes all add delay, so lower the TTL well before a rehearsal, not during an incident. Define the client reconnection behavior and measure it in the rehearsal. Fail back is a separate runbook: rebuild the former primary as a standby of the new primary, let it catch up, and only then schedule a planned switchover. The whole procedure must be rehearsed, and failover testing methods are covered in the sibling topic on PostgreSQL failover testing and switchover runbooks.
Security and operational controls for the second region
A standby region carries a full copy of your data, so it needs the same access, encryption and audit controls as the primary. The cards below cover the controls that connect the WAN replication stream, the archive and the promotion process.
Least-privilege replication role
Create a dedicated role with the REPLICATION attribute and no other privileges for streaming from the primary to the standby. Do not reuse the superuser or application roles for replication. Confirm which role attributes your PostgreSQL version requires and document who may create or change this role, since it can read all WAL and therefore all data.
HA docsTLS on the WAN stream
Replication traffic crosses a wide-area link, so encrypt it with TLS and verify the primary's certificate on the standby side. Plan certificate issuance, renewal and rotation for both regions before the first base backup. Confirm the connection parameters your chosen replication tooling uses, and test that an expired or mismatched certificate stops the stream rather than failing open.
Scoped pg_hba.conf entries
Write pg_hba.conf rules that allow replication connections only from the standby's specific addresses, to the replication pseudo-database, with the replication role. Avoid broad CIDR ranges and trust entries across the WAN path. Review these rules after each cutover, because a promoted standby and a rebuilt primary both need correct entries.
SCRAM and certificate authentication
PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so set password_encryption to scram-sha-256 and use SCRAM for the replication role. For stronger identity, consider certificate authentication for the replication connection. Confirm the methods your version and build support, and check that the standby's password or certificate material is stored with restricted file permissions.
Encrypted archive and base backups
WAL archives and base backups contain the full database contents, so they need encryption at rest in the second region and in transit to it. PostgreSQL does not encrypt backup files itself. Confirm whether your archive tool or storage platform provides encryption, who holds the keys, and how keys are recovered if the region is lost.
Access to the off-site archive
Limit write access to the WAL archive to the primary's archive command and read access to the standby and restore operators. Use separate credentials per role, and enable object versioning or write-once retention where the storage supports it so that deleted WAL cannot be silently removed. Review the access list at each quarterly access review and after staff changes.
Continuous archiving docsAudit logging of promotion
Promoting the standby changes the system of record, so record who triggered it, when and why. Log the promotion step, the decision to fail over and the cutover of DNS or application configuration in a central log store the primary region cannot overwrite. Confirm that your PostgreSQL logging settings capture the promotion event and that log shipping continues during a region outage.
Questions teams ask before building a DR standby
What drives the cost of a cross-region PostgreSQL DR standby?
The cost comes from four components: the second-region compute and storage for the standby, the WAN bandwidth that carries WAL continuously, the archive storage that keeps WAL and base backups, and the staff time to design, build, test and operate it. Infrastructure and bandwidth recur every month, while design, build and the first rehearsal are largely one-time. Costs rise with write volume (more WAL to ship and store), with the size of the database, with how long WAL archives are retained, and with how often the team rehearses promotion. Ask any quote to split these components and to state which ones are one-time and which recur. DeployOpen prepares a written scope and quote from your environment, so request one that names your cloud or data center accounts, retention period and rehearsal schedule.
How long does it take to build a cross-region DR standby?
Build time depends on the database size and write rate, the bandwidth between regions, whether a Patroni standby cluster or a single warm standby is used, how many systems must be repointed at cutover, and how much of the network and identity foundation already exists in the second region. The initial base backup and catch-up replication often take the longest, so the transfer rate over your WAN link is a key input. The page does not assign a duration because none has been established for your environment. Ask for a timeline in the written scope that separates network and access setup, base backup transfer, replication validation, promotion runbook testing and the first rehearsal.
What does the internal team need to provide?
Your team needs to provide access to both regions, network paths between the primary and standby sites, decisions on recovery targets, and people who own the application and DNS or load balancer records that change at cutover. Engineers must be able to review pg_hba.conf entries for the replication role, approve TLS and secrets handling, and sign off on which application endpoints move during a promotion. Business owners should confirm the acceptable data loss window and who has authority to declare a regional failover. Plan for database administrators and platform engineers to join the rehearsals, because a runbook that only the builder understands will not hold up during an incident.
Can our own team build a DR standby without a partner?
Yes, a team with PostgreSQL administration experience and access to both regions can build a warm standby or Patroni standby cluster on its own. The harder parts are usually not the replication setup itself but the cross-region network design, the WAL archive fallback, the promotion runbook, and the cutover of applications and DNS. Teams that build alone should be honest about how much time they can give the work and who will rehearse it twice a year. A partner is useful when the team lacks capacity, needs an independent review of the design, or wants the evidence assembled for an audit. Whichever path you choose, ask for the scope, deliverables and handover in writing before work begins.
How do we measure the RPO from replication lag?
On an asynchronous standby, the recovery point objective you can actually meet is roughly the amount of committed data that has not yet reached the standby when the primary is lost. Measure it by comparing the primary's current WAL position with the standby's replay position, both as byte lag and as time lag, and alert on the trend, not only the snapshot. On the primary, the pg_stat_replication view shows sent, written, flushed and replayed positions for each standby. Also check the WAL archive, since archived segments can be a fallback source when streaming lag is high. Record the lag measurements during peak write periods and during WAN congestion, because the worst case, not the average, is the number that defines your RPO.
How often should we rehearse promotion of the DR standby?
Rehearse promotion on a fixed schedule set by your recovery objectives, your change rate and your compliance commitments, and repeat it after any major change to the database, the network or the application cutover path. A rehearsal should promote the standby, run application smoke tests against it, measure client reconnection time, and then restore the original topology. Record the steps, the elapsed times and any deviation from the runbook, and assign an owner to each fix. The right frequency is a decision for your team; ask any partner to propose a schedule in the written scope and to explain what each rehearsal proves.
What should the written scope and quote include?
A useful scope names the PostgreSQL version and cluster design, the two regions and the network path between them, the replication method, the WAL archive and base backup approach, the promotion and failback runbooks, the application and DNS cutover steps, and the rehearsals included. It should also list what is excluded, such as application code changes, licensing or third-party monitoring, and who provides each piece of infrastructure. The quote should separate one-time build work from recurring support, retesting and infrastructure you pay directly. Confirm the handover package, the acceptance criteria and the change process for scope adjustments before signing. DeployOpen agrees scope, deliverables and timelines in writing before work starts, so request that document and compare it against your own design notes.
Limits to confirm in your environment
The PostgreSQL facts settle how replication, archiving and upgrades behave, but not what your network, release calendar, pooler, tooling or regulator will accept. Each card below names one open item, why it changes the cross-region design, and who should confirm it before the build is scoped.
WAN bandwidth and latency
Asynchronous streaming replication must carry your full write volume across the WAN link, and any period when the link falls behind builds lag that becomes data you could lose. Measure peak WAL generation over business cycles, such as month-end batch runs, and compare it with sustained throughput and round-trip time to the second region. Confirm these figures with your network team and your circuit provider, and confirm whether the link is dedicated or shared with other traffic.
PostgreSQL version and end of life
Choose the major version for the standby with its support window in view, since a cross-region pair is expensive to re-platform later. Check the end-of-life date for your chosen major version against your planned go-live and the period you expect to run it, and confirm which minor release your vendor or internal standard requires. Your platform owner and any application vendors should confirm they certify the same major version on both sites.
- Supported through
- 14 (to November 12, 2026)
PgBouncer version and cutover
If PgBouncer sits in front of the primary, its configuration decides how clients reconnect after promotion, and its version must include current security fixes. Confirm the PgBouncer release you will run, check its release notes for the version you deploy, and decide whether it points at a virtual IP, a DNS name or a load balancer that Patroni or your failover tool updates. Test that pooled sessions reconnect to the promoted site without manual edits.
- Latest release cited
- 1.26.1
Failover tool choice
PostgreSQL does not detect a failed primary or promote a standby by itself, so the tool you choose defines when promotion happens and who is allowed to trigger it across regions. Decide whether promotion is automatic or a human-approved step, how the second region learns the first is gone, and how the old primary is fenced to avoid two writable sites. Confirm the choice with your platform and security teams, since it governs split-brain risk and the runbook your operators follow.
Failover documentationAcceptance of asynchronous RPO
An asynchronous standby means committed transactions not yet shipped to the second region can be lost in a site failure, and the recovery point objective you can claim equals the lag at failure time, not zero. Ask your regulator, internal risk function or external auditor whether they accept that RPO for the systems in scope, and in what form they want evidence, such as monitored lag history and restore tests. Record the answer in writing before the design is fixed, because a no answer changes the architecture.
Archive fallback and retention
WAL archived to object storage in a third location can close gaps when streaming lags, but it adds its own cost, retention rules and restore time. Confirm where archives are written, who can delete them, how long they are kept, and whether the archive location is reachable from the second region during a primary site outage. Your backup owner and storage team should agree these settings, since they set the lowest achievable point of recovery when the link is down.
Continuous archiving docsWho should own each part of a cross-region build
The first decision in a cross-region standby is not technical: it is who owns each part of the recovery path once the second region is live. Three groups usually share it. The client's network team owns the WAN links between regions, routing, firewall rules for replication traffic and the DNS zones that applications resolve. The platform team owns the hosts, storage, the etcd or DCS members if Patroni is used, the WAL archive location and the cutover tooling. The database team owns postgresql.conf, pg_hba.conf, replication roles, slot policy and the promotion runbook. DeployOpen plans, builds and documents the PostgreSQL and standby layer inside infrastructure the client controls, and hands over the runbooks, configuration and evidence. It does not take over the client's network, cloud accounts or DNS authority, and it does not issue audit reports or certifications. Any compliance outcome depends on independent assessors and the client's own controls.
Write the split down before design starts. For each item below, name one accountable owner and one approver: the WAN path and its latency and bandwidth limits, the replication network allow list, the replication role and its password or certificate, the WAL archive bucket and its retention and access policy, the decision to promote, the DNS or load balancer change that moves applications, and the rule for returning to the original primary after failback. Most failed recovery exercises trace back to one of these items having no owner. Ask each group to confirm in writing which of these they hold, because a standby that is healthy in PostgreSQL can still be unreachable from the application tier.
The scope document is the place to settle these boundaries. DeployOpen's engagements are fixed-scope, and scope, deliverables and timelines are agreed in writing before work starts. Ask for a written list of what is in scope (for example, the standby build, a tested promotion runbook, and a documented cutover method) and what is excluded (for example, changes to the client's WAN or DNS provider). Ask which environments are covered, which tests are run before handover and who signs off the results. Any quote should follow from that written scope, so unclear ownership at this stage tends to show up later as cost changes or delayed sign-off.
How DeployOpen scopes, builds and supports PostgreSQL DR
DeployOpen plans, builds, tests, documents and supports a cross-region PostgreSQL standby inside infrastructure you control. The work starts with a written scope that fixes the topology, recovery targets, cutover method and test plan before any server is touched, so your team knows what it is receiving and how it will be proven.
How we scope
- Written scope covers the primary and standby regions, network path, and who owns each component
- Recovery point and recovery time targets are agreed with your teams and tied to measured replication lag
- Choice between warm standby and Patroni standby cluster is documented with its failover trade-offs
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts
How we build
- Asynchronous streaming replication is configured over your WAN link with lag monitoring and alert thresholds
- WAL archive fallback is set up so a standby can catch up when the stream falls behind a retained WAL window
- Promotion runbooks and DNS or application cutover steps are written and rehearsed in a non-production environment
- Backup and restore checks confirm the standby and the archive can recover the primary's data
How we hand over
- Architecture record documents topology, replication roles, pg_hba.conf entries and firewall rules as built
- Runbooks cover promotion, failback, reseeding a standby and checking replication health under pressure
- Test results show measured lag, cutover timing and any gaps found, with fixes applied and retested
- Your operators are trained on the runbooks and on the monitoring that signals a degraded standby
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover
- Periodic failover drills and restore tests can be scheduled so the standby is proven over time
- Minor release updates and planned major upgrades for both regions can be included in the retainer scope
- Ask us to confirm response arrangements, drill frequency and upgrade handling in the written quote

