frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: pgwire-replication - pure rust client for Postgres CDC

https://github.com/vnvo/pgwire-replication
14•sacs0ni•5d ago

Comments

sacs0ni•5d ago
I built this to have a dedicated wire-protocol client for postgres logical replication. General-purpose SQL clients either don't implement the replication protocol at all, or bury it behind abstractions designed for other use cases. Replication has a bit different mechanics - it's a stateful binary stream requiring LSN tracking, standby heartbeats, and feedback to prevent WAL bloat. Bolting that onto a query-focused client has its own challenges.

This is just the transport - raw XLogData frames and LSNs. Use pg_replicate, as an example, if you need "replicate to BigQuery." Use this if you're building replication infrastructure.

What it does:

- Explicit LSN control - start/stop at specific WAL positions for deterministic recovery

- Automatic standby feedback - no more forgotten heartbeats filling your disk with WAL

- Bounded channels - backpressure propagates to Postgres naturally

- Pure Rust, no libpq

What it doesn't do: pgoutput decoding (intentionally). That belongs in a higher layer. Simplest way of using this:

while let Some(event) = client.recv().await? { match event { ReplicationEvent::XLogData { wal_end, data, .. } => { process(&data); client.update_applied_lsn(wal_end); } _ => {} } }

malodyets•2d ago
I learned about this tonight when Claude Code picked up your library for my application that uses logical replication. Looking forward to putting it through its paces.
sacs0ni•2d ago
nice! would appreciate any feedback.
nkmnz•38m ago
> Use pg_replicate, as an example, if you need "replicate to BigQuery." Use this if you're building replication infrastructure.

Would I use this if I host my own postgres and want to use replication for „real time backups“ into a hot standby?

radimm•22m ago
Not OP - but definitely no. In such a case use just physical or - if you have special use case - logical replication that’s built in.
sacs0ni•5m ago
I agree. pgwire-replication is useful when you need to build a customized and closely controlled pipeline. In fact, it will give you the first part of handling the data (reading from the source), you still need to implement the rest yourself.

Just the Browser

https://justthebrowser.com/
105•cl3misch•1h ago•24 comments

OpenBSD-current now runs as guest under Apple Hypervisor

https://www.undeadly.org/cgi?action=article;sid=20260115203619
309•gpi•10h ago•32 comments

List of individual trees

https://en.wikipedia.org/wiki/List_of_individual_trees
196•wilson090•13h ago•67 comments

The spectrum of isolation: From bare metal to WebAssembly

https://buildsoftwaresystems.com/post/guide-to-execution-environments/
50•ThierryBuilds•4h ago•18 comments

Show HN: I built a text-based business simulator to replace video courses

https://www.core-mba.pro/
6•Core_Dev•11h ago•0 comments

Interactive eBPF

https://ebpf.party/
65•samuel246•5h ago•5 comments

Cue Does It All, but Can It Literate?

https://xlii.space/cue/cue-does-it-all-but-can-it-literate/
33•xlii•3d ago•9 comments

Apple is fighting for TSMC capacity as Nvidia takes center stage

https://www.culpium.com/p/exclusiveapple-is-fighting-for-tsmc
715•speckx•22h ago•433 comments

Pocket TTS: A high quality TTS that gives your CPU a voice

https://kyutai.org/blog/2026-01-13-pocket-tts
494•pain_perdu•1d ago•115 comments

Briar keeps Iran connected via Bluetooth and Wi-Fi when the internet goes dark

https://briarproject.org/manual/fa/
424•us321•17h ago•246 comments

pf: Make af-to less magical

https://undeadly.org/cgi?action=article;sid=20260116085115
28•defrost•4h ago•1 comments

Inside The Internet Archive's Infrastructure

https://hackernoon.com/the-long-now-of-the-web-inside-the-internet-archives-fight-against-forgetting
373•dvrp•2d ago•93 comments

Bringing the Predators to Life in MAME

https://lysiwyg.mataroa.blog/blog/bringing-the-predators-to-life-in-mame/
37•msephton•2d ago•6 comments

Show HN: pgwire-replication - pure rust client for Postgres CDC

https://github.com/vnvo/pgwire-replication
14•sacs0ni•5d ago•6 comments

Linux boxes via SSH: suspended when disconected

https://shellbox.dev/
239•messh•17h ago•133 comments

Altaid 8800 (2024)

https://sunrise-ev.com/8080.htm
12•exvi•4d ago•2 comments

Ask HN: How can we solve the loneliness epidemic?

631•publicdebates•20h ago•990 comments

Signal creator Moxie Marlinspike wants to do for AI what he did for messaging

https://arstechnica.com/security/2026/01/signal-creator-moxie-marlinspike-wants-to-do-for-ai-what...
24•aarghh•1h ago•6 comments

Training my smartwatch to track intelligence

https://dmvaldman.github.io/rooklift/
14•dmvaldman•1d ago•10 comments

My Gripes with Prolog

https://buttondown.com/hillelwayne/archive/my-gripes-with-prolog/
115•azhenley•13h ago•62 comments

Claude is good at assembling blocks, but still falls apart at creating them

https://www.approachwithalacrity.com/claude-ne/
272•bblcla•1d ago•198 comments

Prime chains

https://www.johndcook.com/blog/2026/01/10/prime-chains/
23•ibobev•4d ago•7 comments

Show HN: Hc: an agentless, multi-tenant shell history sink

https://github.com/alessandrocarminati/hc
8•acarminati•5h ago•1 comments

Data is the only moat

https://frontierai.substack.com/p/data-is-your-only-moat
171•cgwu•18h ago•37 comments

JuiceFS is a distributed POSIX file system built on top of Redis and S3

https://github.com/juicedata/juicefs
165•tosh•18h ago•94 comments

Show HN: OpenWork – An open-source alternative to Claude Cowork

https://github.com/different-ai/openwork
201•ben_talent•2d ago•42 comments

I Built a 1 Petabyte Server from Scratch [video]

https://www.youtube.com/watch?v=vVI7atoAeoo
104•zdw•5d ago•33 comments

Go-legacy-winxp: Compile Golang 1.24 code for Windows XP

https://github.com/syncguy/go-legacy-winxp/tree/winxp-compat
119•Oxodao•4d ago•60 comments

First impressions of Claude Cowork

https://simonw.substack.com/p/first-impressions-of-claude-cowork
211•stosssik•2d ago•120 comments

Show HN: BGP Scout – BGP Network Browser

https://bgpscout.io/
21•hivedc•12h ago•8 comments