logoalt Hacker News

WAL-RUS: a Rust Rewrite of WAL-G for PostgreSQL Backups

125 pointsby saisrirampuryesterday at 11:32 PM15 commentsview on HN

Comments

nasretdinovtoday at 7:05 AM

I must say I'm quite pleased to see how well Go version works. It does only use 1.5x the CPU and (predictably) much more RAM/VRAM, but not a crazy amount either (the expected increase is 2x).

Of course you can write a more optimal version in C / C++ / Zig / Rust, but at the same time Go is much easier to write and you don't pay for the convenience with an absurd performance loss like in Python or PHP

TOMDMtoday at 9:35 AM

PostgreSQL WAL-RUS, no relation to PostgreSQL WALRUS https://github.com/supabase/walrus

whitepoplartoday at 3:27 PM

As someone who only has a cursory knowledge of Postgres backup systems, how does this compare to something like pgBackRest? When would someone reach for one over the other?

caffeinated_metoday at 4:07 AM

Do you have any benchmarks with a mix of long open transactions and short ones? I've struggled a lot with WAL-E in the past there, and am curious if that changes here.

show 1 reply
dioniantoday at 3:47 PM

Great name

westurnertoday at 3:24 PM

How to Design an index layer for postgres WAL-G backups to make a paging VFS like sqlite-http-vfs for pglite in WASM?

cipherselftoday at 5:25 PM

[dead]

valentynkittoday at 8:27 AM

Quick one on the benchmark: was the 2.8GB peak virtual or resident? Go reserves a large virtual arena it mostly never faults in, so RSS tends to be a fraction of the virtual peak, and if Postgres headroom was getting squeezed off the virtual number you were sizing against memory the kernel never actually charges for.

show 1 reply