← Back to home
Comparison · DevOps

pgBackRest vs withr

A side-by-side editorial comparison of pgBackRest and withr — release velocity, themes, recent moves, and the top alternatives to consider.

pgBackRest vs withr: at a glance

FeaturepgBackRestwithr
SectorDevOpsDevOps
Velocity score5.00.0
Sparks · 30d00
Top themespostgresql, backup, object storage, least privilegestate-management, testing, performance, base-r
Last editorial update1d ago5d ago
WebsiteVisit →Visit →

What is pgBackRest?

pgBackRest tracks PostgreSQL 19 beta by beta, patching the hangs it finds along the way.

pgBackRest is in the tail of the 2.59 cycle, which brought PostgreSQL 19 support and restricted every command except restore from running as root. The 2.59.1 patch keeps step with PostgreSQL 19beta3 and clears three defects, including a hang that occurred whenever the chunk buffer was smaller than the input buffer. Release cadence remains a few feature releases a year with patches slotted between them.

Read the full pgBackRest trajectory →

What is withr?

withr rebuilt defer() on base R's own on.exit(), and got much faster for it

withr provides the with_ and local_ functions that temporarily change global state and restore it on exit - the cleanup primitive under most of the tidyverse test suites. Version 3.0.0 reimplemented defer() as a thin wrapper over base::on.exit(), which the maintainers made possible by contributing the required arguments to R 3.5 itself. Everything since has been small correctness work.

Read the full withr trajectory →

pgBackRest vs withr: editorial side-by-side

P5.0

pgBackRest tracks PostgreSQL 19 beta by beta, patching the hangs it finds along the way.

◆ Current state

pgBackRest is in the tail of the 2.59 cycle, which brought PostgreSQL 19 support and restricted every command except restore from running as root. The 2.59.1 patch keeps step with PostgreSQL 19beta3 and clears three defects, including a hang that occurred whenever the chunk buffer was smaller than the input buffer. Release cadence remains a few feature releases a year with patches slotted between them.

◆ Where it's heading

Two currents continue. Support for the next PostgreSQL major arrives experimentally a full release before it is needed — 18 in 2.55.0, 19 in 2.59.0, and now tracking 19's betas point by point — so the backup tool is ready before the database ships. The second is a move away from ambient privilege and toward cloud-native identity: managed identities and pod identity in place of stored keys, and the root restriction narrowing what a compromised invocation can reach. The 2.59.1 fixes are the ordinary cost of that pace, including a packaging fault in the GitHub source archives.

◆ Prediction

Expect the beta-tracking patches to continue through PostgreSQL 19's release cycle, with the next feature release arriving after 19 goes final rather than before it.

W
withr
DEVOPS
0.0

withr rebuilt defer() on base R's own on.exit(), and got much faster for it

◆ Current state

withr provides the with_ and local_ functions that temporarily change global state and restore it on exit - the cleanup primitive under most of the tidyverse test suites. Version 3.0.0 reimplemented defer() as a thin wrapper over base::on.exit(), which the maintainers made possible by contributing the required arguments to R 3.5 itself. Everything since has been small correctness work.

◆ Where it's heading

The arc here is a package pushing its own machinery down into base R and then living off the result. Once defer() became on.exit(), the remaining work is about where cleanup is allowed to happen - knitr documents, source() calls, the global environment, session end - and about restoring state correctly when an expression exits early. Releases are now infrequent and CRAN-driven.

◆ Prediction

Expect continued low-volume releases fixing edge cases in where deferred handlers run; with the core delegated to base R, there is little left that would prompt a larger change.

Alternatives to pgBackRest and withr

Other DevOps products tracked by Sparkpulse, ranked by recent ship velocity. Each card links to a full editorial trajectory and lets you pivot into a head-to-head comparison with either pgBackRest or withr.

See all pgBackRest alternatives → · See all withr alternatives →

Recent activity from pgBackRest and withr

Latest ship moves from both products, interleaved chronologically. ⚡ = editorial spark.

  1. 2d agopgBackRestv2.59.1: PostgreSQL 19beta3 Support
  2. 1mo agopgBackRestv2.59.0: PostgreSQL 19 Support
  3. 1mo agowithrlocal_seed() actually preserves the seed now
  4. 7mo agopgBackRestv2.58.0: Object Storage Improvements
  5. 10mo agopgBackRestv2.57.0: Suppress Repository Symlinks
  6. 1y agopgBackRestv2.55.1: Bug Fixes
  7. 1y agopgBackRestv2.56.0: Progress Info Improvements
  8. 1y agowithrlocal_language() no longer warns when set to C
  9. 2y agowithrdefer() becomes a thin wrapper over base::on.exit()
  10. 4y agowithrCleanup works inside Rmd and source(); with_() gains a getter
  11. 4y agowithrNew maintainer; handlers run at session end
  12. 5y agowithrlocal_options() can set NULL; with_seed() controls RNG kind

Frequently asked questions

What is the difference between pgBackRest and withr?

They serve adjacent needs but don't currently overlap on shipped themes. pgBackRest is currently shipping more aggressively (velocity 5.0 vs 0.0), with 0 editorial sparks in the last 30 days against 0. See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is pgBackRest better than withr?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. pgBackRest is currently shipping more aggressively (velocity 5.0 vs 0.0), with 0 editorial sparks in the last 30 days against 0. For your specific use case, the alternatives sections above list other DevOps products to evaluate alongside.

What are the best alternatives to pgBackRest?

Top pgBackRest alternatives in DevOps are ranked by recent ship velocity. Browse the "pgBackRest alternatives" section above for the current picks, or visit /alternatives/pgbackrest for the full list with editorial commentary on each.

What are the best alternatives to withr?

Top withr alternatives in DevOps are ranked by recent ship velocity. Browse the "withr alternatives" section above for the current picks, or visit /alternatives/withr for the full list with editorial commentary on each.