frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

3•polishdude20•7mo ago
Just joined a new company and they run a multi tenant database in postgres where each tenant is distinguished by their account ID. I'd like to be able to dump the data of a single account to my local instance to assist in debugging.

Problem is, many of the entities do not include an account ID. For example, a user can have an account ID but a user post will not but it will be tied to a user ID.

Also foreign keys aren't really implemented fully.

Are there any tools or techniques that could help make this process easier to do?

Comments

tudorg•7mo ago
You can try with data subsetting tools, a few that I know are: greenmask, jailer, tonic condenser, and I think there are more. They are not exactly for your use case, but might help you a bit. The problem is most of these tools can walk foreign keys, but only in one directions.

Also, since you said FK are not fully implemented, then there just won't be enough information for them to work with. So you can either work on fixing the foreign keys or have more complex scripts.

polishdude20•7mo ago
Thanks for the suggestions!

Yeah due to the unavailability of FK's, I'd have to somehow map certain ID columns to the tables they're for, accounting for slight naming convention differences.

woyten•7mo ago
In case you don’t have FKs you could specify virtual foreign keys in Greenmask.

Check out docs for details

https://docs.greenmask.io/latest/database_subset/#virtual-re...

abhisek•7mo ago
This is poor design. Multi-tenant data model design must have a tenant or segment ID for every tenant segmented tables. While it may not be a problem initially but as the business grows, you may need to move tenant data to separate DBs or even different regions based on compliance requirements. IMHO it is a good idea to run DB migrations and have a tenant ID populated in all tenant segmented tables
polishdude20•7mo ago
Oh yes I agree with you. It may become a big push to convince my org to do that

Open Badges

https://openbadges.org/
1•Lwrless•31s ago•0 comments

Tesla Plaid Pickleball Paddle

https://www.yankodesign.com/2025/12/27/teslas-350-pickleball-paddle-is-peak-design-absurdity/
1•bookofjoe•1m ago•0 comments

Show HN: I built a zero-log PII redaction API – no AI, just regex and checksums

https://pii-firewall-edge-web.vercel.app
1•Raviteja_•4m ago•1 comments

Pushpad has released a new Go library for Web Push

https://newsletter.page/pushpad/2862-introducing-pushpad-go-v1-0-0-full-api-support-is-here
1•collimarco•5m ago•0 comments

Win32 is the stable Linux ABI

https://loss32.org/
4•krautburglar•10m ago•0 comments

Renewable energy project approvals hit record high in GB in 2025, data shows

https://www.theguardian.com/business/2025/dec/30/renewable-energy-projects-battery-storage-wind-s...
1•zeristor•10m ago•0 comments

no strpy either

https://daniel.haxx.se/blog/2025/12/29/no-strcpy-either/
4•firesteelrain•10m ago•0 comments

The Discovery of Lin Yutang's MingKwai Chinese Typewriter

https://typewriterrevolution.com/the-discovery-of-lin-yutangs-mingkwai-chinese-typewriter/
1•superjan•13m ago•1 comments

Show HN: Imesde – A tiny, ephemeral vector engine for streaming data (Rust)

https://github.com/imesde/imesde
1•alessiopel•13m ago•1 comments

The British Empire's Resilient Subsea Telegraph Network

https://subseacables.blogspot.com/2025/12/the-british-empires-resilient-subsea.html
1•giuliomagnifico•14m ago•0 comments

Show HN: Spraff – Voice and text AI chat, self-hostable, no data retention

https://github.com/martinpllu/spraff
1•pllu•16m ago•0 comments

Far-right online dating site leaked

https://okstupid.lol/
3•_tk_•17m ago•0 comments

SMTMSMT: Gluing Together CVC5 and Z3 Nelson Oppen Style

https://www.philipzucker.com/glue-cvc5-z3/
1•matt_d•22m ago•0 comments

Fucking Approachable Swift Concurrency

https://fuckingapproachableswiftconcurrency.com/en/
2•wrxd•23m ago•0 comments

The state of AI – December 2025

https://www.ashprabaker.com/state-of-play
2•_ash_•24m ago•1 comments

Jan Łukasiewicz

https://plato.stanford.edu/entries/lukasiewicz/
1•danielam•27m ago•0 comments

MongoDB CVE CVE-2025-14847 – what K8s users should know?

https://www.armosec.io/blog/cve-2025-14847-mongobleed-memory-disclosure/
1•jkaftzan•28m ago•1 comments

Calibri Wasn't Fit for the State Department; Neither Is Times New Roman

https://hsu.cy/2025/12/times-new-american/
7•firexcy•29m ago•2 comments

Simple Made Easy – Rich Hickey

https://www.infoq.com/presentations/Simple-Made-Easy/
3•thunderbong•29m ago•0 comments

Nano Banana Pro: The End of Photographic Evidence, Again

https://julienposture.substack.com/p/the-end-of-photographic-evidence
2•julienposture•31m ago•1 comments

When robot taxis get stuck, a secret army of humans comes to the rescue

https://www.washingtonpost.com/technology/2025/12/25/waymo-robots-human-work/
1•1vuio0pswjnm7•34m ago•2 comments

Top US law firms hand associates $300k-plus bonuses

https://www.ft.com/content/d1db1264-27b1-48db-9576-16c0ca118df6
1•1vuio0pswjnm7•35m ago•0 comments

Groq investor sounds alarm on data centers

https://www.axios.com/2025/12/29/groq-alex-davis-data-center-concerns
1•giuliomagnifico•37m ago•1 comments

Show HN: I built a CLI to dump all JavaScript/CSS/assets from any webpage

https://github.com/timf34/pagesource
1•timf34•38m ago•0 comments

Singapore Study Links Heavy Infant Screen Time to Teen Anxiety

https://www.bloomberg.com/news/articles/2025-12-30/singapore-study-links-heavy-infant-screen-time...
3•1vuio0pswjnm7•38m ago•0 comments

Code-based music creation and performance tool

https://sonic-pi.net/
1•saikatsg•41m ago•0 comments

Apache Spark Isn't "Fast" by Default; It's Fast When You Use It Correctly

https://www.netcomlearning.com/blog/apache-spark
1•birdculture•42m ago•0 comments

Raytracing in One Weekend

https://raytracing.github.io/
2•fanf2•43m ago•0 comments

Mojo Vision

https://docs.modular.com/mojo/vision/
1•tosh•44m ago•0 comments

Free eBook –> Website Monitoring Trends in 2026

https://alertsleep.com/free-ebook
1•thepatrykooo•45m ago•0 comments