Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

pg_logical_emit_message() is how I recommend users on Postgres to implement the outbox pattern [1]. No table overhead as you say, no need for housekeeping, etc. It has some other cool applications, e.g. providing application-specific metadata for CDC streams or transactional logging, wrote about it at [2] a while ago. Another one is making sure replication slots can advance also if there's no traffic in the database they monitor [3].

[1] https://speakerdeck.com/gunnarmorling/ins-and-outs-of-the-ou...

[2] https://www.infoq.com/articles/wonders-of-postgres-logical-d...

[3] https://www.morling.dev/blog/mastering-postgres-replication-...



Ha, your [2] is how I learnt about it! Thanks :)


You know, this would be a great talk at the 2026 Carolina Code Conference...


Ha, that's interesting :) Do you have any more details to that one?


Traveling now, but I’ll connect when I get back


I don't see any contact info in your profile, but we typically open the call for speakers from early January - end of March.

https://carolina.codes




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: