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•8mo 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•8mo 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•8mo 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•8mo 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•8mo 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•8mo ago
Oh yes I agree with you. It may become a big push to convince my org to do that

Ask HN: How are devtool founders getting their paying users in 2026?

1•yasu_c•1m ago•0 comments

Show HN: Cwt – Sandbox AI coding agents using Git Worktrees

https://github.com/benngarcia/claude-worktree
1•hahahacorn•3m ago•0 comments

Claude Code makes several thousand dollars in 30 minutes, with Patrick McKenzie

https://www.complexsystemspodcast.com/episodes/claude-code/
1•adpreese•3m ago•0 comments

Top worldwide with social-engineering and a cheat that's still undetected

https://www.ud2.rip/blog/vsrg/
1•Karrot_Kream•4m ago•0 comments

AI has never been needed for creativity

https://twitter.com/EZE3D/status/2012588584251904442
1•exvi•4m ago•0 comments

The Helicopter That Caused the Potomac Air Disaster

https://nymag.com/intelligencer/article/inside-the-helicopter-that-caused-the-potomac-air-disaste...
2•xenophon•5m ago•0 comments

Trump, 2 sons, Trump Org sue IRS, Treasury for $10B over tax records leak

https://www.msn.com/en-us/money/companies/trump-sues-irs-and-treasury-for-10-billion-over-leak-of...
4•petethomas•10m ago•0 comments

Show HN: Play Zener Cards

https://zener.cards
1•nirvanist•13m ago•0 comments

Realistic Cave Exploration Game with Custom Renderer Tech

https://www.youtube.com/watch?v=4k1OHSCp_h0
1•hydrolox•15m ago•0 comments

Key to human intelligence lies in how brain networks work together

https://news.nd.edu/news/key-to-human-intelligence-lies-in-how-brain-networks-work-together/
2•hhs•15m ago•0 comments

Resist.mobi, decentralized ICE protest and reporting platform, was breached

https://xcancel.com/justabreach/status/2016449394543890590
2•botacode•16m ago•0 comments

Jury finds exGoogle engineer guilty of stealing AI secrets for Chinese companies

https://www.courthousenews.com/jury-finds-ex-google-engineer-guilty-of-stealing-ai-trade-secrets-...
1•voxadam•16m ago•0 comments

Apple confirms Gemini-powered Siri will use Private Cloud

https://9to5mac.com/2026/01/29/apple-confirms-gemini-powered-siri-will-use-private-cloud-compute/
2•alwillis•18m ago•0 comments

We Should Eradicate the Empty String – Here's Why

https://www.cnpp.dev/blog/practical-type-system/eradicate-empty-string/index.html
1•welfareleech•21m ago•1 comments

ArcaOS is a proprietary operating system based on OS/2

https://en.wikipedia.org/wiki/ArcaOS
1•doener•21m ago•0 comments

A Simple Method for Accelerating Grokking

https://www.lesswrong.com/posts/38RcAQezS2AEcaEGv/a-simple-method-for-accelerating-grokking
1•vuciv•21m ago•0 comments

Voice Censorship

https://www.youtube.com/watch?v=t2hE9wT569E
1•barrister•22m ago•0 comments

Show HN: Vibe Language – A messenger for language learners

https://apps.apple.com/us/app/vibe-language/id6755855488
1•osd2030•23m ago•0 comments

9front OS

https://9front.org/
2•doener•24m ago•0 comments

Turn meeting notes into Beautiful professional docs

https://www.youtube.com/watch?v=BLlSEBSLWV4
1•0nabilbk•24m ago•2 comments

Peter H. Duesberg, 89, Renowned Biologist Turned HIV Denialist, Dies

https://www.nytimes.com/2026/01/27/science/peter-duesberg-dead.html
4•bookofjoe•24m ago•1 comments

HamClock has reached end-of-life

https://clearskyinstitute.com/ham/HamClock/
1•austinallegro•25m ago•0 comments

Pull Request Stacks [Preview]

https://github.com/github/roadmap/issues/1218
1•bewuethr•26m ago•0 comments

KolibriOS is a tiny yet powerful and fast operating system

https://kolibrios.org/en
1•doener•26m ago•0 comments

OpenSSL v3.6.1

https://github.com/openssl/openssl/releases/tag/openssl-3.6.1
1•alasr•27m ago•0 comments

Not all ultra-processed foods are created equal: a review

https://nutrition.bmj.com/content/early/2026/01/05/bmjnph-2025-001358
1•hhs•27m ago•0 comments

Open-Source Alternative to Claude Cowork Desktop App

https://github.com/kuse-ai/kuse_cowork
1•blackcat201•27m ago•0 comments

Multi-agent systems that learn

https://git.new/agno
1•ashpreetagno•28m ago•0 comments

Waymo Approved to Begin Passenger Service at SFO

https://www.flysfo.com/about/media/press-releases/waymo-approved-begin-passenger-service-sfo
2•JaakkoP•29m ago•1 comments

A Paradigm Shift in Microbial Protein Manufacturing

https://www.mdpi.com/2075-1729/16/1/129
1•PaulHoule•32m ago•0 comments