Abstract
Background/Objective. PostgreSQL logical replication applies row-level changes on a subscriber through a single worker, so the subscriber can fall behind. Published staleness measurements cover key-value stores and MySQL, and none separates how much PostgreSQL replicates from how the data is composed. I measured how replay lag responds to client concurrency, transaction batching, row size and network round-trip time (RTT) while holding the measured write-ahead-log (WAL) byte rate constant.
Methods. I ran 23 replicated runs on one PostgreSQL version. Each level started from a checked zero-backlog state, ran in randomised order and was summarised by its median replay lag. Subscribers in four cloud regions gave real RTTs of 0.1–207 ms. The run was the unit of analysis for trend, equivalence and regression tests.
Results. At a constant WAL rate, 1–64 clients at 8 MiB/s, or 8–64 at 30 MiB/s, changed median lag by only 0.5 and 1.8 ms (equivalent within ±5 ms), and going from 1 to 1,000 rows per commit produced no monotone trend in the median but widened the 95th percentile. Larger rows at the same byte rate lowered lag from 48 ms to 3 ms, and lag rose linearly with RTT (slope 0.99, 95 % CI 0.96–1.01; R² = 0.999).
Conclusions. Below saturation, replay lag is one RTT plus a 3–50 ms processing term that depends on the composition of the byte stream, not on concurrency or byte volume alone.
Keywords: PostgreSQL; logical replication; replication lag; staleness; write-ahead log; cloud latency; performance measurement.
Introduction
Background and context
Most production database systems keep more than one copy of their data. Extra copies protect against hardware failure, let read traffic be spread across servers, and make it possible to move to a new system or version without downtime. There is a long-standing trade-off between keeping copies identical and keeping them fast. Eager (synchronous) replication guarantees identical copies but pays a coordination cost on every transaction, while lazy (asynchronous) replication commits locally and sends the changes afterwards, which leaves a window during which the replicas are stale1,2. That window is replication lag. In the language of CAP, it is the price of low write latency and high availability: reads from an asynchronous replica can be some bounded interval behind the primary3,4.
PostgreSQL has two built-in ways to replicate. Physical (streaming) replication ships the write-ahead log (WAL), the byte-level journal of every change that follows the ARIES design5, to standbys that keep a block-for-block copy. Logical replication, available since PostgreSQL 10, decodes the same WAL into individual row changes using the pgoutput plugin and sends them through a publish–subscribe model. The subscriber then applies the changes as ordinary transactions, in commit order, through an apply worker6. Because the subscriber runs row changes instead of copying disk blocks, logical replication can cross major versions and replicate only some tables. The same property makes it more expensive: the publisher has to decode WAL into row changes, and the subscriber has to execute them again, by default through one worker per subscription.
When the publisher commits changes faster than the subscriber can apply them, or when the network between them adds delay, the subscriber falls behind. PostgreSQL reports this in pg_stat_replication as a byte distance between WAL positions and as three time intervals, write_lag, flush_lag and replay_lag7. Lag matters in practice. Reads sent to a lagging subscriber return stale results, which is why systems that route reads to replicas keep track of how far each replica is behind8. WAL kept for a slow subscriber takes up disk on the publisher, and the amount of data that would be lost if the publisher failed grows with the backlog.
Related work
Database replication architectures. Gray et al. showed with an analytical model that eager update-anywhere replication produces deadlock rates that grow with the cube of the number of nodes, and they recommended lazy primary-copy propagation instead1. PostgreSQL logical replication is of that lazy primary-copy type. Later work built PostgreSQL-based middleware such as Tashkent, in which snapshot-isolation replicas are updated lazily to scale reads9. One finding from that work matters here: Elnikety et al. found that applying remote write-sets in commit order on a PostgreSQL replica creates a serial path that limits how fast the replica can go9. Kemme and Alonso’s retrospective notes that commercial systems mostly settled on asynchronous, log-based primary-copy replication2. PostgreSQL’s built-in mechanism is exactly that kind of system, but its lag behaviour has not been characterised in the peer-reviewed literature.
Measuring staleness. A separate body of work measures the inconsistency window of eventually consistent stores. Bermbach and Tai wrote timestamped values and polled them from several locations to measure how long Amazon S3 took to become consistent. In later multi-year work they showed that the window changes by region and over time, and that a single short run is not reliable10,11. Bailis et al. defined probabilistically bounded staleness and predicted, from a fitted pipeline model of write, acknowledgement, read and response latencies, the probability that a read returns a value older than t milliseconds12. Terry et al. built consistency-based service-level agreements that pick a replica from its measured lag and round-trip time8. These studies all measure key-value or object stores from the outside, as black boxes. None of them measures a relational database’s own replication pipeline with the database’s internal instrumentation, and none of them holds the replicated byte rate constant while changing how the writes are composed.
Single-threaded apply as a bottleneck. The closest relatives of the PostgreSQL apply worker are in MySQL and in-memory databases. Hong et al. described the “parallelism gap” in MySQL replication: the primary runs transactions concurrently, but the replica replays its log one transaction at a time and falls behind under a write-heavy load13. Qin et al. found the same limit for in-memory databases14. Verbitski et al. reported that Amazon Aurora replicas, which apply redo instead of re-running statements, stayed tens of milliseconds behind in an experiment where MySQL replicas fell hundreds of seconds behind15. CockroachDB takes the opposite route and replicates synchronously through consensus, paying cross-region round trips on every write instead of accepting lag on reads16. Studies of write-ahead logging show that the log path is loaded by the bytes generated per second, not by the number of transactions17. That is the reason I controlled the WAL byte rate rather than the requested transaction rate.
Performance prediction. An earlier round of this study tried to predict lag with tree-ensemble models. Learned performance models for databases usually target query latency, for example plan-structured neural networks18 and graph models of concurrently running queries19, and the main weakness of such models is well documented in that literature: their accuracy collapses on workloads that do not resemble the training set, which is the motivation for zero-shot cost models20. Mozafari et al. found that white-box models extrapolated correctly to load levels outside the training range while black-box regressors did not21. Feature-importance rankings from tree ensembles are also biased when the predictors are correlated with each other22,23. The precedent I follow is the fitted pipeline model of Bailis et al.: a simple, interpretable relation fitted to controlled measurements12.
Measurement in public clouds. Cloud performance varies between instances, over time and between providers24. Laaber et al. showed that multi-trial, randomised designs on Azure, AWS and Google Cloud can detect effects of a few per cent that single runs miss25, and Kalibera and Jones describe how to plan repetitions and report medians and intervals instead of best-of-N numbers26. The latency between Azure and AWS regions has been measured directly27, and more recent measurements show that it varies by region and over time, from inside the cloud28 and from users outside it29. Standard load generators report the requested rate rather than the achieved one. In this study I report the WAL byte rate that was achieved inside the server.
Position of this study. I searched the ACM, IEEE and Springer libraries and found no peer-reviewed measurement study of PostgreSQL logical replication lag. The nearest is a small-venue evaluation of a Patroni cluster that reports one workload and no lag distributions30. This study therefore extends the write-then-observe staleness method of Bermbach and Tai to a relational database’s built-in replication pipeline, is consistent with the single-worker bottleneck argument that was made for MySQL and in-memory systems, since the processing term I measured is the per-row and per-transaction work of that one worker, and differs from the middleware-replication literature by studying the unmodified engine through its own statistics views. It supersedes the earlier round of this study by replacing predictive modelling with controlled single-factor experiments at a constant measured byte rate.
Problem statement and research gap
Practitioners agree that heavy writes cause logical replication lag, but “heavy” mixes up several different quantities: the number of concurrent clients, transactions per second, rows per transaction, row size and the resulting WAL bytes per second. In the earlier round of this study these were varied together. Raising rows per commit at a fixed commit rate also raised the byte rate a thousandfold, so lag could not be attributed to either one. Phases were also measured one after another within a single run, so backlog left over from one phase contaminated the next, and the PostgreSQL version, the hardware and the workload family were confounded. So the gap is not that workload factors have never been discussed. It is that no study has (i) held the measured WAL byte rate constant while varying one compositional factor at a time, (ii) started every level from a verified zero-backlog state so that a steady-state quantity exists, (iii) replicated whole runs and treated the run as the statistical unit, and (iv) used real inter-region network paths instead of emulated delay.
Research questions and hypotheses
I asked four independent questions. Each one is answered by one experiment family in which a single factor varies while the measured WAL rate, the PostgreSQL version, the hardware and the configuration stay fixed.
RQ1 (concurrency). At a constant measured WAL rate, does the number of concurrent client connections affect steady-state replay lag? H1: it does not, to within a practically negligible margin of ±5 ms.
RQ2 (batching). At a constant measured WAL rate and a constant number of rows per second, does the number of rows per transaction affect replay lag? H2: the median is unaffected, because the batching effect seen in the earlier round was a byte-volume effect.
RQ3 (row size). At a constant measured WAL rate, does the size of individual rows, and with it the number of rows and transactions per byte, affect replay lag? H3: lag decreases as rows get larger, because the per-row and per-transaction work per byte falls.
RQ4 (network latency). How does replay lag depend on the real network round-trip time between publisher and subscriber? H4: lag increases linearly with RTT with a slope of about one, because each confirmation needs one round trip.
Significance, scope and outline
The results give a capacity planner quantities that can be measured or looked up, namely the WAL byte rate, the composition of the write stream and the RTT to the subscriber, and they show which of these move lag and by how much. The scope is deliberately the region below saturation, where a steady state exists and lag is a latency rather than a growing backlog. All experiments use one publisher, one subscriber per run, one replicated table with an insert-only workload, and PostgreSQL 18.6 on Azure virtual machines. The framework behind the questions is the pipeline view in Figure 1: lag is treated as the sum of a network delay and the work the pipeline does per byte. In brief, the method was to hold the measured WAL rate at a set-point with a feedback-controlled load generator, run each factor level from a drained state in randomised order with replicated runs, and summarise each level by the median of the server’s own time-based lag. The Methodology section describes the testbed, the load controller, the measurements and the statistical design. The Results section reports the validity checks and the results. The Discussion section interprets the results against the literature, and the Conclusion section closes the paper.
Methodology
Research design
The study is a controlled, replicated experiment with a one-factor-at-a-time design. I ran five experiment families (Table 1). Families B, C and D each vary one compositional factor of the workload at a fixed measured WAL rate. Family F varies the network path by placing the subscriber in one of four Azure regions. Family E varies only the length of a level, to test whether the level summaries are steady-state values. Every family was executed as complete, independent runs (three for B, C, D and for each region of F, and two for E). Within a run the order of the levels was randomised from a recorded seed (B, C and D), and every level began from a verified zero-backlog state and ended with a drain. The run is the unit of analysis: each run contributes one summary value per level, and all inference is done on those values.
Testbed
All machines were Azure Dv6-series virtual machines with 8 vCPUs and 32 GiB of memory, running Windows Server 2022 and PostgreSQL 18.6, with the data directory on a 1 TB Premium SSD formatted with 64 kB NTFS clusters. The publisher and the Central US subscriber were Standard_D8ads_v6 instances in Central US; the subscribers in the other three regions used the closest available D8 v6 size in each region (Table 2). The publisher and the subscribers talked over peered private virtual networks. The server configuration was identical on all machines and is recorded in every run manifest: wal_level = logical, shared_buffers = 8 GiB, checkpoint_timeout = 15 min, max_wal_size = 16 GiB, synchronous_commit = off, wal_compression = off, track_io_timing = on, with the WAL writer at its defaults (wal_writer_delay = 200 ms, wal_writer_flush_after = 1 MiB)31. The replicated table ingest_data had thirteen columns, including a bigint primary key, account and status attributes, a JSONB column and a text payload whose length set the row size. Both machines had the same three secondary indexes, so that index maintenance was part of the apply cost. The subscription was created with default options (streaming = off, binary = off), so a single apply worker applied all changes. Clocks were synchronised by the Windows time service.
| Family (RQ) | Factor varied and levels | Held constant | Measured WAL set-point | Duration per level | Runs |
| B (RQ1) | Clients: 1, 4, 8, 16, 32, 64 (levels B01–B06) | 10 rows/commit, 1 kB rows | 8 MiB/s | 6 min | 3 |
| B (RQ1) | Clients: 8, 16, 32, 64 (B07–B10) | 10 rows/commit, 1 kB rows | 30 MiB/s | 4 min | 3 |
| C (RQ2) | Rows per commit: 1, 10, 50, 100, 500, 1,000 (C01–C06) | 16 clients, 1 kB rows | 16 MiB/s | 6 min | 3 |
| D (RQ3) | Row size: 100 B, 1 kB, 10 kB, 50 kB, 100 kB, 250 kB (D01–D06) | 16 clients, 1 row/commit | 6 MiB/s | 6 min | 3 |
| E (steady state) | Level duration: 2, 5, 10, 20, 30 min (E01–E05) | 16 clients, 10 rows/commit, 1 kB rows | 32 MiB/s | as stated | 2 |
| F (RQ4) | Subscriber region: Central US, East US, North Europe, Central India (F01 in each region) | 16 clients, 1 row/commit, 1 kB rows | 6 MiB/s | 6 min | 3 each |
| Region | Instance size | Measured RTT (ms) |
| Central US (same region as publisher) | Standard D v6 series, 8 vCPU, 32 GiB | 0.1 |
| East US | Standard D v6 series, 8 vCPU, 32 GiB | 23.2 |
| North Europe | Standard D v6 series, 8 vCPU, 32 GiB | 99.5 |
| Central India | Standard D v6 series, 8 vCPU, 32 GiB | 207.0 |
Load generation and set-point control
I wrote a load generator in Python (psycopg2) that ran on the publisher with one process per simulated client. Each process held its own connection and issued single-statement INSERT transactions with the configured rows per commit and row size. Instead of targeting a transaction rate, the generator targeted a WAL byte rate: a controller sampled pg_stat_wal.wal_bytes once per second and adjusted the per-client commit interval so that the measured byte rate matched the set-point. This is what lets rows per commit (family C) or row size (family D) change while the byte rate stays the same. The achieved rates were recorded from three independent sources: the generator’s own completion counts, the publisher’s pg_stat_database counters and the WAL byte counter. WAL rates are given in MiB/s (2^20 bytes per second) throughout.
Variables and measurements
The independent variables are client count (B), rows per commit (C), row size (D), level duration (E) and subscriber region, expressed as measured RTT (F). The dependent variable is replay lag as reported by pg_stat_replication.replay_lag, which is the time between the publisher flushing recent WAL locally, which is when the walsender can send it, and the publisher receiving the subscriber’s notification that it has been applied7. Figure 1 shows where this interval sits in the pipeline. A monitor on the publisher sampled pg_stat_replication, pg_stat_wal, pg_stat_database and operating-system counters once per second and tagged every sample with the current run, level and phase. A monitor on the subscriber sampled its own counters at the same rate.

I chose the time-based lag rather than the byte-based lag as the primary metric for three reasons. First, time is the quantity that matters in practice, and it is what staleness models are written in12. Second, the byte distance is quantised by the WAL writer. With synchronous_commit = off, WAL becomes visible to the walsender in flushes of up to 1 MiB, so the byte lag jumps between a few kilobytes and about 1 MiB no matter how fast the subscriber applies (see “Time-based and byte-based lag” in the Results). Third, the server computes the time intervals from its own send and receive timestamps, so they do not depend on the two machines’ clocks agreeing, unlike an end-to-end commit-to-visibility measurement11. Byte, write and flush lag were recorded alongside. In every level the median write lag equalled the median replay lag, as expected when the apply worker has applied everything it has received and reports the two positions together; flush lag was larger because the subscriber’s own WAL flush is asynchronous. The metric has one limitation that should be stated: it starts at the publisher’s flush, so the commit-to-flush interval is not included. With synchronous_commit = off that interval is usually short under load, because the WAL writer flushes every 1 MiB, but when the publisher is nearly idle it can reach three times wal_writer_delay, or 600 ms at the default.
Procedure
Each run was executed by an orchestrator. For every level in the randomised order it (i) truncated the table on both machines and waited until the replication backlog had stayed below 1 MiB for ten consecutive one-second polls (the pre-drain), (ii) started the load generator and held the set-point for the level’s duration, (iii) stopped the generator and waited for the backlog to drain again (the post-drain), and (iv) wrote the level’s results to a JSON manifest containing the configuration hash, the generator command line and seed, the achieved rates, the drain records and a capacity flag. The capacity flag marks a level in which the byte backlog grew over the final third of the load window, which would mean that no steady state existed. Family F used the same procedure with the subscriber in another region. Before each region’s runs, a pre-flight script checked the PostgreSQL version and settings, measured the RTT and confirmed that the subscriber could absorb a backlog faster than the offered rate.
For the analysis I discarded the first 60 s of every level as warm-up and summarised the remaining one-second samples (300 per 6-minute level) by their median and 95th percentile. I checked stationarity within the window by comparing the medians of its first and last thirds.
Justification of parameter ranges and durations
I chose the set-points so that every level would sit below saturation, where a steady state exists. Calibration runs gave a publisher ceiling of about 23 MiB/s at one row per commit (roughly 15,800 commits per second), which bounds the byte rate that single-row transactions can reach. Families D and F therefore used 6 MiB/s with single-row commits, and family C used 16 MiB/s so that its 1-row level stayed below the ceiling while its 1,000-row level was still meaningfully batched. Family B used 8 and 30 MiB/s to test concurrency at two byte rates, the higher one close to the highest rate the controller could hold with 10-row commits. Pre-flight catch-up tests showed that each subscriber could absorb a backlog well above the offered rate (above 650 MB/s within the United States; 76 MB/s to Central India; 19–56 MB/s to North Europe across four probes). Row sizes span rows stored in line and rows stored out of line (TOAST), and rows per commit span single-row OLTP to bulk batches. I settled on level durations of 4–6 minutes after family E showed that 2-minute and 30-minute levels differ by less than 2 ms (see “Steady state and level duration” in the Results), and on the 60 s warm-up after finding that the first minute’s median differed from the rest by 0.5 ms in the median level.
Data analysis
Every statistic in this paper was computed by a script, released with the data, from the run-level table in Appendix A. For the ordered factors (families B, C, D and E) I tested for a monotone trend across levels with the Jonckheere–Terpstra statistic32, using Monte-Carlo permutation p-values (200,000 permutations). Because each run contributes every level, I also used Page’s L test for ordered alternatives in randomised blocks, with within-run permutation p-values. The Kruskal–Wallis test used in the earlier round only asks whether the levels differ, not whether they are ordered33, so I did not use it. For RQ1 I tested whether the lowest and highest client counts are equivalent with two one-sided tests (TOST) on the paired run-level differences34,35. The smallest effect of interest was set in advance at ±5 ms, which is about a quarter of the local pipeline latency and small next to the RTT effects of RQ4, and I report the 90 % confidence interval of the difference alongside. For RQ4 I regressed the run-level median lag of the twelve region runs on the measured RTT by ordinary least squares with 95 % confidence intervals, tested the slope against 1, and ran a leave-one-region-out check that refits the line without each region and predicts it. Effect sizes are reported as differences of medians with their replicate ranges. The analysis used Python 3 with pandas and SciPy.
Ethical considerations and availability
The study used synthetic data on my own cloud resources and involved no human participants or personal data. The run manifests, the one-second monitor samples, the run-level table and all scripts are available in the project repository (https://github.com/rithvika1221/Postgres_Research).
Results
Achieved workloads and validity of the levels
All 23 runs completed with no SQL errors, and none of the 88 levels raised the capacity flag. Every level started with a backlog below 1 MiB (maximum 787 kB), and every post-drain finished within 11 s, so no level inherited a backlog from the one before it. The measured WAL rate matched the set-point with a median absolute error of 1.2 %. The largest deviations were at the 30–32 MiB/s set-points, where the controller overshot by up to 18 %, and single levels at the lower set-points overshot by up to 11 % (Appendix A gives every level’s measured rate). The publisher’s counters agreed with the generator’s completion counts to within 1 % for rows at the levels without out-of-line storage (see “RQ3: row size at a constant WAL rate” in the Results). For commits they were higher by about four per second (interquartile range 3–6), which is the monitoring transactions themselves. Table 3 summarises the achieved workload per family. The levels were stationary: the median of the last third of a level differed from the first third by 0.36 ms in the median level and by at most 4.9 ms, and the randomised level order had no association with the residual lag of a level (Spearman ρ between order and residual −0.19, −0.31 and −0.09 for B, C and D; all p > 0.2).
| Family | Set-point (MiB/s) | Measured WAL (MiB/s) | Commits/s | Rows/s | WAL bytes per row | Publisher CPU (%) | Subscriber CPU (%) |
| B, 8 MiB/s | 8 | 7.9–8.9 | 544–562 | 5,397–5,567 | 1,512–1,726 | 1.0–12.0 | 2.0–3.2 |
| B, 30 MiB/s | 30 | 29.8–34.7 | 2,006–2,070 | 19,999–20,640 | 1,516–1,810 | 8.1–19.2 | 6.9–9.9 |
| C | 16 | 16.0–17.7 | 14–10,658 | 10,519–11,156 | 1,511–1,728 | 4.5–25.4 | 3.8–7.4 |
| D | 6 | 6.0–6.6 | 26–9,682 | 23–9,674 | 650–297,765 | 2.5–8.9 | 0.4–5.5 |
| E | 32 | 31.6–37.9 | 2,152–2,226 | 21,469–22,194 | 1,496–1,852 | 12.1–14.6 | 7.6–18.7 |
| F (all regions) | 6 | 6.0–6.1 | 3,974–4,040 | 3,976–4,035 | 1,556–1,604 | 4.4–5.5 | 1.8–2.9 |
Time-based and byte-based lag
Figure 2 shows two minutes of one Central US level. The byte lag sits near 10 kB most of the time and jumps to about 1.05–1.1 MiB for one sample at a time, while the time-based lag stays near 22 ms. The jumps line up with the WAL writer’s flush size. With synchronous_commit = off, WAL is flushed and becomes sendable in chunks of up to wal_writer_flush_after = 1 MiB, so a sample taken just after a flush sees the whole chunk still outstanding. At 6 MiB/s a chunk builds up every 170 ms and is outstanding for about one replay lag, so roughly 22/170 ≈ 13 % of samples should show 1 MiB in Central US, about two thirds in North Europe, where the 113 ms lag is shorter than the 170 ms chunk interval, and nearly all in Central India, where it is longer. The data agree: the median byte lag was 10 kB and 12 kB for the Central US and East US subscribers (lag 22 and 40 ms) but 1,090 kB and 1,109 kB for North Europe and Central India (lag 113 and 225 ms). Below saturation, the byte lag therefore reports the flush size and the sampling instant, not the subscriber’s progress.

RQ1: client concurrency at a constant WAL rate
At 8 MiB/s the run-level median lag was 16.2, 16.1, 16.1, 16.3, 16.4 and 16.7 ms for 1, 4, 8, 16, 32 and 64 clients (Figure 3, left; run-level values in Appendix A). The trend is statistically detectable, because the three runs agree to within 0.3 ms at every level (Jonckheere–Terpstra J = 112 against an expectation of 67.5, permutation p = 0.0005; Page’s L = 264, within-run permutation p = 0.0003), but it is small. The paired difference between 64 and 1 clients was 0.51 ms (90 % CI 0.42–0.60 ms), and both one-sided tests against the ±5 ms margin rejected (TOST p < 0.0001), so the two client counts are equivalent at the margin I set in advance. The 95th percentile rose from 17.2 to 18.3 ms. At 30 MiB/s the medians were 16.1, 17.1, 17.5 and 17.9 ms for 8, 16, 32 and 64 clients (JT p = 0.006; Page p = 0.055 two-sided). The 64-versus-8 difference was 1.79 ms (90 % CI 0.67–2.92 ms; TOST p = 0.007, equivalent at ±5 ms), but the 95th percentile rose from 18.0 to 26.3 ms and was not equivalent at that margin (difference 11.7 ms, 90 % CI −8.4 to 31.9 ms). The cost of concurrency showed up on the publisher rather than in lag: publisher CPU rose from 2.4 % to 12.0 % (8 MiB/s) and from 9.1 % to 17.2 % (30 MiB/s) across the client sweep, while subscriber CPU stayed between 2 and 3 % and between 7 and 10 %.

RQ2: rows per commit at a constant WAL rate
With the measured WAL rate held at 16 MiB/s, rows per second stayed at 10,500–11,200, so raising rows per commit from 1 to 1,000 lowered the commit rate from 10,568 to 11 per second (load-generator counts; the pg_stat_database values in Appendix A include the monitoring transactions). The run-level median lag was 22.4, 16.2, 15.9, 15.7, 9.1 and 20.6 ms at 1, 10, 50, 100, 500 and 1,000 rows per commit (Figure 4). There was no monotone trend in the median (JT J = 45 against an expectation of 67.5, two-sided p = 0.09; Page’s L = 202, two-sided p = 0.19). The difference between 1,000 and 1 row per commit was −2.2 ms (range −4.5 to −0.6 ms across runs). The tail behaved differently. The 95th percentile was 27.3, 18.8, 19.0, 19.9, 33.3 and 57.5 ms and did rise with batch size (JT p = 0.009; Page p = 0.035, two-sided), with the widest spread between replicates at 500 and 1,000 rows per commit (26–55 ms and 46–60 ms). Transactions of 500 and 1,000 rows at 1.6 kB of WAL each take up about 0.8 and 1.5 MiB, which is about the size of the 1 MiB flush chunk or larger, so a confirmation can be held up until a whole transaction has been shipped and applied. The same levels raised publisher CPU from about 5–9 % to about 25 %.

RQ3: row size at a constant WAL rate
At a constant 6 MiB/s with one row per commit, the run-level median lag fell from 48.4 ms at 100-byte rows to 22.1, 7.1 and 4.0 ms at 1 kB, 10 kB and 50 kB, and then levelled off at 2.5 and 3.2 ms at 100 kB and 250 kB (Figure 5; Appendix A). The Jonckheere–Terpstra statistic was close to its minimum (J = 6 against an expectation of 67.5; the only pair reversals are between the two largest row sizes, whose medians differ by under 1 ms; permutation p = 1 × 10⁻⁵; Page p = 1 × 10⁻⁵). The 95th percentile followed the same pattern (54.1 ms falling to 4.5–6.5 ms; JT p = 0.0002). Because the byte rate was fixed, the commit rate fell along with row size, from 9,642 to 23 per second (load-generator counts), and lag correlated positively with commit rate (Spearman ρ = 0.94 over the 18 run-levels) and negatively with row size (ρ = −0.95). WAL bytes per row ranged from 654 bytes for 100-byte rows to about 278 kB for 250 kB rows. So at 100 bytes, more than five sixths of every byte replicated was WAL record and index overhead rather than payload. Rows of 10 kB and above were stored out of line in 2 kB TOAST chunks, which is why the publisher’s tuple counter registered 7 to 127 tuple insertions per row at those levels.

RQ4: real inter-region round-trip time
With an identical 6 MiB/s single-row workload, the run-level median lag was 22.3 ms (range 21.9–22.6) for the Central US subscriber at 0.1 ms RTT, 40.3 ms (40.0–40.4) for East US at 23.2 ms, 113.1 ms (113.0–113.4) for North Europe at 99.5 ms and 225.5 ms (224.6–225.8) for Central India at 207.0 ms (Figure 6; Table 4). Replicates within a region agreed to within 0.4 ms in East US and North Europe, 0.7 ms in Central US and 1.3 ms in Central India, and the 95th percentile was only 1.4–2.7 ms above the median in every region. Ordinary least squares on the twelve run medians gave lag = 18.8 + 0.988 × RTT (intercept 95 % CI 15.9–21.7 ms; slope 95 % CI 0.962–1.013; R² = 0.9987; residual root-mean-square 2.9 ms; largest residual 4.1 ms). The slope did not differ from one (p = 0.30). Refitting without each region in turn predicted the left-out region’s median to within 2.4–6.9 ms for East US, North Europe and Central US, and to within 13.3 ms for Central India, the only case that extrapolates beyond the fitted RTT range. The achieved rates were the same in every region (6.0–6.1 MiB/s; about 4,000 commits per second; 3,970–4,010 rows applied per second), subscriber CPU was 1.8–2.9 % everywhere, and no level raised the capacity flag.

| Region | RTT (ms) | Median lag (ms), run 1 / run 2 / run 3 | Median across runs (ms) | 95th pct. (ms) | Median byte lag (kB) | Measured WAL (MiB/s) | Rows applied/s |
| Central US | 0.1 | 22.59 / 22.29 / 21.92 | 22.3 | 25.0 | 10 | 6.06 | 3,975 |
| East US | 23.2 | 40.37 / 40.26 / 40.05 | 40.3 | 41.6 | 12 | 6.00 | 4,006 |
| North Europe | 99.5 | 113.07 / 113.01 / 113.39 | 113.1 | 114.5 | 1,090 | 6.01 | 3,972 |
| Central India | 207.0 | 225.83 / 224.56 / 225.46 | 225.5 | 227.3 | 1,109 | 6.02 | 3,991 |
Steady state and level duration
Family E ran the same 32 MiB/s, 16-client, 10-row workload for 2, 5, 10, 20 and 30 minutes in two runs. The run-level medians were 16.3/16.9, 16.4/17.0, 16.3/17.0, 15.8/16.0 and 15.5/15.4 ms, a range of 1.6 ms across a fifteenfold change in duration, with a slight downward drift in the longest levels (Page two-sided p = 0.027, two runs; the levels ran in ascending order, so the drift is confounded with order) and no sustained growth of backlog. The 20- and 30-minute levels did show short spikes, two to four per level: the byte backlog reached 184–573 MB and the one-second lag reached about 1 s, but each spike drained within a few seconds and the 95th percentile stayed at 22–35 ms. The spikes were about 220 s apart, which is the spacing of checkpoints triggered by WAL volume at this write rate (max_wal_size = 16 GiB at about 35 MiB/s), so I read them as checkpoint activity rather than the subscriber falling behind. Subscriber CPU rose from 7.7 % to 18.5 % over the 20- and 30-minute levels, which fits background maintenance on a table growing by about 21,600 rows per second, and the median lag was not affected. These results support treating the 4–6 minute level medians of the other families as steady-state values.
Discussion
Interpretation of the four findings
The four families give a consistent picture of the regime below saturation. Replay lag behaves as a pipeline latency with a network part equal to one round trip and a processing part of about 3–50 ms that depends on how the byte stream is composed. The RTT result is the clearest. A slope that cannot be distinguished from one is exactly what the feedback protocol predicts: the measured interval opens when the walsender sends a position and closes when the subscriber’s confirmation arrives, and both legs cross the inter-region path once. The intercept of 18.8 ms (95 % CI 15.9–21.7) is the same-region cost of decoding, applying and confirming a flush of single-row transactions, and it is close to the 22 ms I measured independently at the same composition in family D. The leave-one-region-out check shows that the relation interpolates to within a few milliseconds inside the sampled RTT range and extrapolates to Central India with an error of 13 ms, about 6 % of the observed lag. That is good enough for planning but not for service-level accounting.
For RQ1 the data support H1, with a qualification. Client count had a measurable but practically negligible effect on the median (0.5 ms across 1–64 clients at 8 MiB/s and 1.8 ms across 8–64 clients at 30 MiB/s), and the equivalence tests place the effect inside the ±5 ms margin at both byte rates. The earlier round’s conclusion that concurrency “does not matter” rested on a non-significant difference test in a regime where lag was near zero at every level. The present result is an equivalence established at a stated margin under a constant measured byte rate. It is not unconditional, though. At 30 MiB/s the 95th percentile rose by about 12 ms with client count and was not equivalent at the margin, and the publisher’s CPU cost of concurrency was clear. Here concurrency was first-order for the publisher’s CPU and for the lag tail, but not for the median, which is set by the pipeline rather than by contention on the publisher.
For RQ2 the data support H2, which was about the median, but they also reveal a tail effect that H2 did not anticipate. With the byte rate and the row rate held constant, the batching effect of the earlier round, in which lag rose from near zero to hundreds of megabytes, disappeared. The median was 22 ms at one row per commit and 9–21 ms at 10–1,000 rows per commit, with no monotone trend. The earlier result was a byte-volume effect. What batching does change is how finely the subscriber can confirm progress. A transaction is applied and confirmed as one unit, so once transactions approach or exceed the 1 MiB flush chunk, confirmation has to wait for a whole transaction to be shipped and applied, and that widens the tail (95th percentile 33–58 ms at 500–1,000 rows) without moving the median. The 25 % publisher CPU at those levels suggests extra decoding cost for large transactions, but the design cannot separate decoding cost from apply cost.
RQ3 gave the largest effect in the study, in the direction of H3. At the same 6 MiB/s, lag fell from 48 ms for 100-byte rows to about 3 ms for 100–250 kB rows. Since bytes per second were constant, what changed was the number of rows, and with them transactions, per byte: 9,642 commits per second at 100 bytes against 23 at 250 kB. The apply worker has to begin and commit a transaction, insert a heap tuple and maintain three indexes for every row no matter how big the row is, and the walsender has to decode and frame every row change. Per byte, that work is more than two orders of magnitude greater (about 420-fold) for 100-byte rows. The result therefore associates lag with the per-row and per-transaction work per byte rather than with bytes alone. Because families C and D differ in byte rate as well as in the factor varied, I do not offer a single formula that predicts lag from rows and commits per byte across families. The finding is an association within each design, and it is consistent with the logging literature, which treats record count and byte count as separate costs17.
Relation to previous work
The results agree with the single-threaded-apply literature in kind but not in regime. Hong et al. and Qin et al. saw replica lag grow without bound once the primary’s commit rate exceeded the replica’s serial replay rate13,14. My experiments were designed to stay below that point, and the absence of backlog growth in all 88 levels shows that they did. Within that regime, the lags I observed, 22 ms locally and one RTT plus about 19 ms across regions, are of the same order as the tens of milliseconds Verbitski et al. report for Aurora replicas and the sub-second visibility Bailis et al. derived for well-provisioned quorum systems15,12, and far below the multi-second windows Bermbach and Tai measured for S3 in 201110. The linear dependence on RTT is what Gilbert and Lynch’s t-connected consistency predicts for an asynchronous system without partitions3, and it puts numbers on the region-dependent replica lag that consistency-based SLAs assume when they choose a replica8. Persico et al. and Palumbo et al. report Azure inter-region and user-to-region RTTs from a few milliseconds to a few hundred27,29; the family F relation turns such a table directly into an expected steady-state lag for an unsaturated subscriber.
The methodological choices also follow the literature. The replicated, randomised, run-level design is what Laaber et al. and Kalibera and Jones recommend for noisy platforms25,26, and the agreement between replicates within a region (≤ 1.3 ms in family F) suggests that Azure’s variability, which Leitner and Cito found to be largest for I/O-bound work24, did not affect a latency measurement of this kind. Controlling the measured WAL rate rather than a requested transaction rate follows from the observation that the log path is loaded by bytes17, and it departs from load generators that target a requested throughput. Reporting controlled relations rather than a learned model reflects the finding that white-box models extrapolate where black-box ones do not21 and the recognised transfer failure of learned cost models20. The earlier round’s feature-importance ranking, which was computed on predictors built from one another, was subject to the biases described by Strobl et al.23 and has been withdrawn.
Practical implications
Three cautious implications follow. First, for a subscriber that keeps up, the lag to expect is roughly the RTT plus 3–50 ms. The second term is smallest for wide rows in few transactions and largest for narrow rows committed one at a time, so steady-state staleness can be estimated from an RTT table and the write stream’s row and transaction rates. Second, connection count is not a lever on lag. Reducing clients lowers the publisher’s CPU but does not bring a subscriber closer. Third, monitoring should use the time-based lag columns. Below saturation, the byte distance reports the WAL writer’s flush size and the sampling instant, so a dashboard that shows 1 MiB of “lag” for a healthy subscriber is measuring the configuration, not the replica. All three statements are limited to the insert-only, single-table, single-subscription regime I measured.
Conclusion
Key findings
This study measured PostgreSQL 18.6 logical replication lag in 23 replicated runs in which the measured WAL byte rate was held constant while one factor at a time varied, every level started from a verified zero-backlog state, and subscribers in four Azure regions supplied real round-trip times. Client concurrency changed the median lag by 0.5 ms across 1–64 clients at 8 MiB/s and by 1.8 ms across 8–64 clients at 30 MiB/s, equivalent within ±5 ms at both rates. Rows per commit did not change the median at constant byte and row rates but widened the tail once transactions approached the 1 MiB flush chunk. Row size at a constant byte rate had the largest effect: lag fell from 48 ms to 3 ms as rows grew from 100 bytes to 250 kB and transactions per byte fell with them. Lag rose linearly with RTT, with a slope of 0.99 and an intercept of 19 ms, which explains 99.9 % of the variance across regions.
Implications and connection to the objectives
All four research questions were answered. H1, H3 and H4 were supported, and H2 was supported for the median it concerned, with an additional tail effect that it did not anticipate. Together the findings replace the earlier round’s claim that “bytes per second drive lag” with a more specific statement: below saturation, lag is one round trip plus a processing term set by the number of rows and transactions the subscriber has to execute per byte, and neither concurrency nor byte volume on its own predicts it. The study adds to the staleness-measurement literature the first controlled, run-replicated characterisation of a relational database’s built-in logical replication pipeline using the database’s own instrumentation.
Limitations
The workload was insert-only into one table with three secondary indexes; updates, deletes, triggers, multiple tables and multiple subscriptions would change the processing term. All levels were below saturation, so the backlog-growth regime, which the single-threaded-apply literature shows to be qualitatively different, was not measured, and in particular the concurrency sweep was not repeated at a rate above the apply-capacity knee. The time-based lag starts at the WAL flush and leaves out the commit-to-flush interval described under “Variables and measurements” in the Methodology. Families C and D differ in byte rate, so they cannot be combined into one predictive relation. Three runs per level give tight replicate ranges but little power to estimate run-to-run variance, and the four RTT levels are four regions, so the linear fit rests on four distinct RTT values. The subscribers in family F were of closely related but not identical instance sizes, although their CPU utilisation never went above 3 %. The 30–32 MiB/s set-points were overshot by up to 18 %, and the longest levels of family E contained brief checkpoint spikes in backlog (see “Steady state and level duration” in the Results). All machines ran Windows Server, so absolute latencies may differ on other operating systems.
Recommendations for future work
The saturation regime should be measured next, with the same zero-backlog protocol and the backlog growth rate as the response, to locate the apply-capacity knee. A factorial design that crosses row size with byte rate would allow one relation for the processing term. The tail effect in family C could be tested further by varying wal_writer_flush_after, since the tail appeared once transactions approached the flush chunk (see “Time-based and byte-based lag” and “RQ2: rows per commit at a constant WAL rate” in the Results), and an end-to-end commit-to-visibility measurement with disciplined clocks would fill in the part of the picture that the server’s own lag columns leave out.
Closing thought
Replication lag is often treated as one number that goes up with load. Measured carefully, it is a sum of parts with different owners: the network path, the WAL writer’s flush policy, and the per-row and per-transaction work of a single apply worker. Knowing which part is being measured is the difference between tuning a replica and tuning a dashboard.
Appendix A. Run-level table
| Run | Lvl | WAL | C/s | LC/s | R/s | Med | P95 | Run | Lvl | WAL | C/s | LC/s | R/s | Med | P95 |
| B r1 | B01 | 8.06 | 560 | 556 | 5,562 | 16.2 | 17.2 | C r3 | C03 | 16.93 | 222 | 219 | 10,948 | 16.9 | 21.2 |
| B r1 | B02 | 8.25 | 549 | 546 | 5,464 | 16.3 | 17.1 | C r3 | C04 | 16.02 | 114 | 111 | 11,120 | 15.7 | 19.5 |
| B r1 | B03 | 7.98 | 556 | 553 | 5,525 | 16.4 | 17.7 | C r3 | C05 | 16.09 | 26 | 22 | 11,141 | 9.2 | 55.3 |
| B r1 | B04 | 8.88 | 544 | 540 | 5,397 | 16.5 | 17.6 | C r3 | C06 | 17.06 | 14 | 11 | 10,946 | 17.9 | 46.4 |
| B r1 | B05 | 8.00 | 562 | 552 | 5,525 | 16.3 | 17.9 | D r1 | D01 | 6.01 | 9,682 | 9,674 | 9,674 | 48.4 | 53.4 |
| B r1 | B06 | 7.94 | 553 | 549 | 5,490 | 16.7 | 18.3 | D r1 | D02 | 5.99 | 4,042 | 4,036 | 4,036 | 22.0 | 24.4 |
| B r1 | B07 | 34.69 | 2,012 | 2,010 | 20,098 | 16.1 | 23.6 | D r1 | D03 | 5.99 | 554 | 550 | 550 | 7.1 | 7.7 |
| B r1 | B08 | 29.84 | 2,070 | 2,064 | 20,640 | 17.6 | 23.7 | D r1 | D04 | 5.99 | 119 | 116 | 116 | 4.0 | 5.0 |
| B r1 | B09 | 34.23 | 2,016 | 2,009 | 20,087 | 17.4 | 23.8 | D r1 | D05 | 6.60 | 61 | 57 | 57 | 3.4 | 5.1 |
| B r1 | B10 | 34.05 | 2,036 | 2,028 | 20,283 | 17.2 | 26.3 | D r1 | D06 | 6.02 | 27 | 23 | 23 | 3.2 | 6.4 |
| B r2 | B01 | 8.82 | 544 | 541 | 5,409 | 16.2 | 17.2 | D r2 | D01 | 5.99 | 9,653 | 9,662 | 9,662 | 49.0 | 54.1 |
| B r2 | B02 | 8.00 | 557 | 553 | 5,531 | 16.1 | 16.8 | D r2 | D02 | 6.39 | 3,956 | 3,949 | 3,949 | 22.1 | 24.8 |
| B r2 | B03 | 8.34 | 550 | 546 | 5,462 | 16.1 | 17.1 | D r2 | D03 | 6.00 | 555 | 552 | 552 | 7.3 | 7.9 |
| B r2 | B04 | 7.99 | 558 | 554 | 5,544 | 16.3 | 17.5 | D r2 | D04 | 6.00 | 119 | 116 | 116 | 3.9 | 4.9 |
| B r2 | B05 | 8.00 | 557 | 553 | 5,527 | 16.5 | 17.9 | D r2 | D05 | 6.57 | 61 | 57 | 57 | 2.3 | 4.5 |
| B r2 | B06 | 7.94 | 553 | 549 | 5,490 | 16.8 | 18.1 | D r2 | D06 | 6.55 | 26 | 23 | 23 | 3.1 | 7.4 |
| B r2 | B07 | 33.63 | 2,027 | 2,027 | 20,273 | 16.1 | 18.0 | D r3 | D01 | 6.02 | 9,609 | 9,591 | 9,591 | 48.3 | 57.0 |
| B r2 | B08 | 33.69 | 2,021 | 2,016 | 20,155 | 17.1 | 23.5 | D r3 | D02 | 5.98 | 4,036 | 4,028 | 4,028 | 22.2 | 24.7 |
| B r2 | B09 | 29.85 | 2,062 | 2,060 | 20,602 | 18.8 | 24.6 | D r3 | D03 | 6.00 | 554 | 550 | 550 | 7.1 | 7.6 |
| B r2 | B10 | 33.34 | 2,006 | 2,000 | 19,999 | 17.9 | 25.3 | D r3 | D04 | 6.03 | 118 | 115 | 115 | 4.0 | 5.2 |
| B r3 | B01 | 8.04 | 561 | 557 | 5,567 | 16.2 | 17.1 | D r3 | D05 | 6.01 | 62 | 59 | 59 | 2.5 | 4.3 |
| B r3 | B02 | 8.01 | 557 | 553 | 5,535 | 16.1 | 16.7 | D r3 | D06 | 6.02 | 27 | 24 | 24 | 3.2 | 6.5 |
| B r3 | B03 | 7.98 | 556 | 553 | 5,527 | 16.1 | 17.1 | E r1 | E01 | 31.57 | 2,221 | 2,213 | 22,130 | 16.3 | 22.0 |
| B r3 | B04 | 8.17 | 548 | 545 | 5,453 | 16.2 | 17.5 | E r1 | E02 | 35.12 | 2,179 | 2,168 | 21,679 | 16.4 | 22.5 |
| B r3 | B05 | 8.18 | 550 | 546 | 5,462 | 16.4 | 17.8 | E r1 | E03 | 32.73 | 2,188 | 2,183 | 21,826 | 16.3 | 22.1 |
| B r3 | B06 | 7.93 | 553 | 549 | 5,489 | 16.6 | 18.3 | E r1 | E04 | 35.34 | 2,167 | 2,164 | 21,644 | 15.8 | 22.9 |
| B r3 | B07 | 33.59 | 2,034 | 2,026 | 20,258 | 16.1 | 17.9 | E r1 | E05 | 37.04 | 2,161 | 2,157 | 21,569 | 15.5 | 24.0 |
| B r3 | B08 | 32.15 | 2,033 | 2,028 | 20,283 | 16.5 | 22.8 | E r2 | E01 | 31.71 | 2,226 | 2,219 | 22,194 | 16.9 | 23.0 |
| B r3 | B09 | 33.20 | 2,031 | 2,025 | 20,247 | 17.5 | 23.9 | E r2 | E02 | 32.73 | 2,187 | 2,178 | 21,783 | 17.0 | 25.5 |
| B r3 | B10 | 33.70 | 2,011 | 2,005 | 20,054 | 18.5 | 43.2 | E r2 | E03 | 35.92 | 2,181 | 2,176 | 21,761 | 17.0 | 24.2 |
| C r1 | C01 | 16.21 | 10,658 | 10,648 | 10,648 | 22.8 | 27.3 | E r2 | E04 | 37.91 | 2,152 | 2,147 | 21,469 | 16.0 | 34.7 |
| C r1 | C02 | 16.68 | 1,092 | 1,088 | 10,882 | 16.2 | 18.2 | E r2 | E05 | 33.43 | 2,176 | 2,172 | 21,721 | 15.4 | 23.9 |
| C r1 | C03 | 15.97 | 225 | 221 | 11,064 | 15.6 | 18.8 | FCU r1 | F01 | 6.10 | 3,995 | 3,990 | 3,990 | 22.6 | 25.7 |
| C r1 | C04 | 17.58 | 113 | 109 | 10,924 | 16.6 | 19.9 | FCU r2 | F01 | 6.00 | 4,037 | 4,030 | 4,030 | 22.3 | 25.0 |
| C r1 | C05 | 17.74 | 25 | 22 | 10,935 | 9.1 | 33.3 | FCU r3 | F01 | 6.07 | 3,974 | 3,976 | 3,976 | 21.9 | 24.6 |
| C r1 | C06 | 16.08 | 14 | 11 | 11,156 | 20.6 | 57.5 | FEU r1 | F01 | 5.97 | 4,019 | 4,023 | 4,023 | 40.4 | 41.6 |
| C r2 | C01 | 17.34 | 10,508 | 10,519 | 10,519 | 22.1 | 26.9 | FEU r2 | F01 | 6.06 | 3,983 | 3,977 | 3,977 | 40.3 | 41.9 |
| C r2 | C02 | 16.00 | 1,109 | 1,105 | 11,053 | 16.3 | 18.9 | FEU r3 | F01 | 5.98 | 4,028 | 4,022 | 4,022 | 40.0 | 41.1 |
| C r2 | C03 | 17.36 | 222 | 218 | 10,898 | 15.9 | 19.0 | FNE r1 | F01 | 6.08 | 3,994 | 3,989 | 3,989 | 113.1 | 114.0 |
| C r2 | C04 | 17.59 | 112 | 109 | 10,894 | 15.4 | 21.2 | FNE r2 | F01 | 5.98 | 4,033 | 4,028 | 4,028 | 113.0 | 114.5 |
| C r2 | C05 | 17.09 | 25 | 22 | 11,006 | 9.1 | 26.1 | FNE r3 | F01 | 5.98 | 4,007 | 4,011 | 4,011 | 113.4 | 114.7 |
| C r2 | C06 | 16.79 | 15 | 11 | 10,994 | 21.4 | 60.1 | FCI r1 | F01 | 6.00 | 4,040 | 4,035 | 4,035 | 225.8 | 227.5 |
| C r3 | C01 | 17.34 | 10,545 | 10,536 | 10,536 | 22.4 | 27.5 | FCI r2 | F01 | 6.06 | 3,992 | 3,987 | 3,987 | 224.6 | 226.7 |
| C r3 | C02 | 17.26 | 1,087 | 1,083 | 10,827 | 16.2 | 18.8 | FCI r3 | F01 | 6.00 | 4,034 | 4,027 | 4,027 | 225.5 | 227.3 |
References
- J. Gray, P. Helland, P. O’Neil, D. Shasha. The dangers of replication and a solution. Proceedings of the 1996 ACM SIGMOD International Conference on Management of Data (SIGMOD ’96). pg. 173-182, 1996, https://doi.org/10.1145/233269.233330. [↩] [↩]
- B. Kemme, G. Alonso. Database replication: a tale of research across communities. Proceedings of the VLDB Endowment. Vol. 3, pg. 5-12, 2010, https://doi.org/10.14778/1920841.1920847. [↩] [↩]
- S. Gilbert, N. Lynch. Brewer’s conjecture and the feasibility of consistent, available, partition-tolerant web services. ACM SIGACT News. Vol. 33, pg. 51-59, 2002, https://doi.org/10.1145/564585.564601. [↩] [↩]
- E. Brewer. CAP twelve years later: how the “rules” have changed. Computer. Vol. 45, pg. 23-29, 2012, https://doi.org/10.1109/MC.2012.37. [↩]
- C. Mohan, D. Haderle, B. Lindsay, H. Pirahesh, P. Schwarz. ARIES: a transaction recovery method supporting fine-granularity locking and partial rollbacks using write-ahead logging. ACM Transactions on Database Systems. Vol. 17, pg. 94-162, 1992, https://doi.org/10.1145/128765.128770. [↩]
- PostgreSQL Global Development Group. Chapter 29: Logical replication. PostgreSQL 18 documentation, 2025, https://www.postgresql.org/docs/18/logical-replication.html. [↩]
- PostgreSQL Global Development Group. Section 27.2: The cumulative statistics system, pg_stat_replication. PostgreSQL 18 documentation, 2025, https://www.postgresql.org/docs/18/monitoring-stats.html. [↩] [↩]
- D. B. Terry, V. Prabhakaran, R. Kotla, M. Balakrishnan, M. K. Aguilera, H. Abu-Libdeh. Consistency-based service level agreements for cloud storage. Proceedings of the 24th ACM Symposium on Operating Systems Principles (SOSP 2013). pg. 309-324, 2013, https://doi.org/10.1145/2517349.2522731. [↩] [↩] [↩]
- S. Elnikety, S. Dropsho, F. Pedone. Tashkent: uniting durability with transaction ordering for high-performance scalable database replication. Proceedings of the 1st ACM SIGOPS/EuroSys European Conference on Computer Systems (EuroSys 2006). pg. 117-130, 2006, https://doi.org/10.1145/1217935.1217947. [↩] [↩]
- D. Bermbach, S. Tai. Eventual consistency: how soon is eventual? An evaluation of Amazon S3’s consistency behavior. Proceedings of the 6th Workshop on Middleware for Service Oriented Computing (MW4SOC 2011). pg. 1-6, 2011, https://doi.org/10.1145/2093185.2093186. [↩] [↩]
- D. Bermbach, S. Tai. Benchmarking eventual consistency: lessons learned from long-term experimental studies. 2014 IEEE International Conference on Cloud Engineering (IC2E). pg. 47-56, 2014, https://doi.org/10.1109/IC2E.2014.37. [↩] [↩]
- P. Bailis, S. Venkataraman, M. J. Franklin, J. M. Hellerstein, I. Stoica. Probabilistically bounded staleness for practical partial quorums. Proceedings of the VLDB Endowment. Vol. 5, pg. 776-787, 2012, https://doi.org/10.14778/2212351.2212359. [↩] [↩] [↩] [↩]
- C. Hong, D. Zhou, M. Yang, C. Kuo, L. Zhang, L. Zhou. KuaFu: closing the parallelism gap in database replication. 2013 IEEE 29th International Conference on Data Engineering (ICDE 2013). pg. 1186-1195, 2013, https://doi.org/10.1109/ICDE.2013.6544908. [↩] [↩]
- D. Qin, A. D. Brown, A. Goel. Scalable replay-based replication for fast databases. Proceedings of the VLDB Endowment. Vol. 10, pg. 2025-2036, 2017, https://doi.org/10.14778/3151106.3151107. [↩] [↩]
- A. Verbitski, A. Gupta, D. Saha, M. Brahmadesam, K. Gupta, R. Mittal, S. Krishnamurthy, S. Maurice, T. Kharatishvili, X. Bao. Amazon Aurora: design considerations for high throughput cloud-native relational databases. Proceedings of the 2017 ACM International Conference on Management of Data (SIGMOD 2017). pg. 1041-1052, 2017, https://doi.org/10.1145/3035918.3056101. [↩] [↩]
- R. Taft, I. Sharif, A. Matei, N. VanBenschoten, J. Lewis, T. Grieger, K. Niemi, A. Woods, A. Birzin, R. Poss, P. Bardea, A. Ranade, B. Darnell, B. Gruneir, J. Jaffray, L. Zhang, P. Mattis. CockroachDB: the resilient geo-distributed SQL database. Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data. pg. 1493-1509, 2020, https://doi.org/10.1145/3318464.3386134. [↩]
- R. Johnson, I. Pandis, R. Stoica, M. Athanassoulis, A. Ailamaki. Scalability of write-ahead logging on multicore and multisocket hardware. The VLDB Journal. Vol. 21, pg. 239-263, 2012, https://doi.org/10.1007/s00778-011-0260-8. [↩] [↩] [↩]
- R. Marcus, O. Papaemmanouil. Plan-structured deep neural network models for query performance prediction. Proceedings of the VLDB Endowment. Vol. 12, pg. 1733-1746, 2019, https://doi.org/10.14778/3342263.3342646. [↩]
- X. Zhou, J. Sun, G. Li, J. Feng. Query performance prediction for concurrent queries using graph embedding. Proceedings of the Vldb Endowment. Vol. 13, pg. 1416-1428, 2020, https://doi.org/10.14778/3397230.3397238. [↩]
- B. Hilprecht, C. Binnig. Zero-shot cost models for out-of-the-box learned cost prediction. Proceedings of the VLDB Endowment. Vol. 15, pg. 2361-2374, 2022, https://doi.org/10.14778/3551793.3551799. [↩] [↩]
- B. Mozafari, C. Curino, A. Jindal, S. Madden. Performance and resource modeling in highly-concurrent OLTP workloads. Proceedings of the 2013 ACM SIGMOD International Conference on Management of Data. pg. 301-312, 2013, https://doi.org/10.1145/2463676.2467800. [↩] [↩]
- L. Breiman. Random forests. Machine Learning. Vol. 45, pg. 5-32, 2001, https://doi.org/10.1023/A:1010933404324. [↩]
- C. Strobl, A. L. Boulesteix, T. Kneib, T. Augustin, A. Zeileis. Conditional variable importance for random forests. BMC Bioinformatics. Vol. 9, art. 307, 2008, https://doi.org/10.1186/1471-2105-9-307. [↩] [↩]
- P. Leitner, J. Cito. Patterns in the Chaos—A study of performance variation and predictability in public IaaS clouds. ACM Transactions on Internet Technology. Vol. 16, pg. 1-23, 2016, https://doi.org/10.1145/2885497. [↩] [↩]
- C. Laaber, J. Scheuner, P. Leitner. Software microbenchmarking in the cloud. How bad is it really? Empirical Software Engineering. Vol. 24, pg. 2469-2508, 2019, https://doi.org/10.1007/s10664-019-09681-1. [↩] [↩]
- T. Kalibera, R. Jones. Rigorous benchmarking in reasonable time. Proceedings of the 2013 International Symposium on Memory Management (ISMM 2013). pg. 63-74, 2013, https://doi.org/10.1145/2464157.2464160. [↩] [↩]
- V. Persico, A. Botta, P. Marchetta, A. Montieri, A. Pescapé. On the performance of the wide-area networks interconnecting public-cloud datacenters around the globe. Computer Networks. Vol. 112, pg. 67-83, 2017, https://doi.org/10.1016/j.comnet.2016.10.013. [↩] [↩]
- H. Iqbal, A. Singh, M. Shahzad. Characterizing the availability and latency in AWS network from the perspective of tenants. IEEE/ACM Transactions on Networking. Vol. 30, pg. 1554-1568, 2022, https://doi.org/10.1109/TNET.2022.3148701. [↩]
- F. Palumbo, G. Aceto, A. Botta, D. Ciuonzo, V. Persico, A. Pescapé. Characterization and analysis of cloud-to-user latency: the case of Azure and AWS. Computer Networks. Vol. 184, art. 107693, 2021, https://doi.org/10.1016/j.comnet.2020.107693. [↩] [↩]
- I. P. S. Putra, I. N. G. A. Astawa, L. G. P. Suardani. Performance trade-offs of synchronous and asynchronous replication in Patroni-based PostgreSQL clusters. Jurnal Teknologi Informasi dan Pendidikan. Vol. 19, pg. 1628-1636, 2026, https://doi.org/10.24036/jtip.v19i2.1129. [↩]
- PostgreSQL Global Development Group. Section 19.5: Write ahead log, settings. PostgreSQL 18 documentation, 2025, https://www.postgresql.org/docs/18/runtime-config-wal.html. [↩]
- A. R. Jonckheere. A distribution-free k-sample test against ordered alternatives. Biometrika. Vol. 41, pg. 133-145, 1954, https://doi.org/10.1093/biomet/41.1-2.133. [↩]
- W. H. Kruskal, W. A. Wallis. Use of ranks in one-criterion variance analysis. Journal of the American Statistical Association. Vol. 47, pg. 583-621, 1952, https://doi.org/10.1080/01621459.1952.10483441. [↩]
- D. J. Schuirmann. A comparison of the two one-sided tests procedure and the power approach for assessing the equivalence of average bioavailability. Journal of Pharmacokinetics and Biopharmaceutics. Vol. 15, pg. 657-680, 1987, https://doi.org/10.1007/BF01068419. [↩]
- D. Lakens. Equivalence tests: a practical primer for t tests, correlations, and meta-analyses. Social Psychological and Personality Science. Vol. 8, pg. 355-362, 2017, https://doi.org/10.1177/1948550617697177. [↩]



