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

Claude Opus 4.6-Level Performance Will Cost as Much as Haiku 3.5 in 12 Months

https://ziva.sh/blogs/llm-pricing-decline-analysis
1•OsrsNeedsf2P•1m ago•0 comments

Microsoft AI chief confirms plan to ditch OpenAI

https://www.windowscentral.com/artificial-intelligence/microsoft-confirms-plan-to-ditch-openai-as...
1•maxloh•8m ago•0 comments

MicroGPT: train & inference in 243 lines of code

https://gist.github.com/karpathy/8627fe009c40f57531cb18360106ce95
1•RyanShook•8m ago•0 comments

Three year data center moratorium considered in New York State

https://www.datacenterdynamics.com/en/news/three-year-data-center-moratorium-considered-in-new-yo...
1•geox•9m ago•0 comments

Magnus Carlsen Wins the Freestyle (Chess960) World Championship

https://www.fide.com/magnus-carlsen-wins-2026-fide-freestyle-world-championship/
1•prophylaxis•11m ago•0 comments

Programmer's Pyramid: A roadmap to learn programming foundamentals

https://programmerspyramid.com/
1•Muhammad523•14m ago•0 comments

The Airport Lounge Wars

https://www.newyorker.com/magazine/2025/12/01/the-airport-lounge-wars
1•simonebrunozzi•14m ago•0 comments

The great computer science exodus (and where students are going instead)

https://techcrunch.com/2026/02/15/the-great-computer-science-exodus-and-where-students-are-going-...
1•mikhael•16m ago•0 comments

Encyclopedia of people, places, and events from the Epstein

https://jmail.world/wiki
2•doener•17m ago•0 comments

How to get an AI to check your schematic

1•oldguy101•17m ago•0 comments

How Ant Genomes Repeatedly Reinvent Venom

https://www.biorxiv.org/content/10.64898/2026.02.12.705515v1
1•Anon84•17m ago•0 comments

20-Year Impact of Cognitive Training on Dementia: The Active Study

https://alz-journals.onlinelibrary.wiley.com/doi/10.1002/trc2.70197
1•gnabgib•17m ago•0 comments

I Was a Director at Amex When They Started Replacing Us with $30K Workers [video]

https://www.youtube.com/watch?v=t5fXrPMGM5E
4•thunderbong•19m ago•0 comments

Attempt to Hike Afghanistan

https://mautz.blog/2026/02/14/attempt-to-hike-afghanistan/
1•wawayanda•23m ago•0 comments

Show HN: Uncloned Math – A catalog of original mathematical game mechanics

1•UnclonedMath•26m ago•0 comments

The Turing Lectures

https://www.turing.ac.uk/events/the-turing-lectures
1•barishnamazov•26m ago•0 comments

2025's Biggest Breakthroughs in Computer Science

https://www.youtube.com/watch?v=DFwppvrL_pE
1•vismit2000•29m ago•0 comments

Trump would support Israeli strikes on Iran's ballistic missile program

https://www.cbsnews.com/news/trump-netanyahu-israeli-strikes-iran-ballistic-missiles/
1•mhb•29m ago•0 comments

The Economics of a Super Bowl Ad

https://ro.co/perspectives/super-bowl-economics/
3•nnmg•30m ago•1 comments

5G and 6G networks could help devices run AI without needing powerful chips

https://pratt.duke.edu/news/using-the-physics-of-radio-waves-to-empower-smarter-edge-devices/
1•loh•32m ago•0 comments

I’m joining OpenAI

https://steipete.me/posts/2026/openclaw
113•mfiguiere•34m ago•56 comments

"Natural" is a general natural language facility for Node.js

https://naturalnode.github.io/natural/
1•ncb9094•36m ago•0 comments

They said the files would be released. They weren't. Now it's a browser game

https://unredactthefiles.com/
1•vlad1m1r•37m ago•0 comments

Show HN: Webmcp-kit – type-safe toolkit for Chrome's new WebMCP API

https://github.com/victorhuangwq/webmcp-kit
3•xtrkil•37m ago•0 comments

OpenAI Acquires OpenClaw

https://twitter.com/gdb/status/2023151862967632010
5•ryanvogel•38m ago•0 comments

The interesting AI debate isn't capability – it's ownership [video]

https://www.youtube.com/watch?v=aA7oQ5A3KQc
1•vitlyoshin•41m ago•1 comments

Can the shingles vaccine slow ageing? The evidence is surprisingly strong

https://www.economist.com/science-and-technology/2026/02/13/can-the-shingles-vaccine-slow-ageing
2•daegloe•42m ago•2 comments

From 3 Minutes to 7.8 Seconds: Improving on RocksDB performance

https://blog.serenedb.com/building-faster-ingestion
3•janemanos•43m ago•0 comments

Simple CUDA-checkpoint wrapper to freeze and restore GPU processes quickly

https://github.com/shayonj/gpusched
3•shayonj•43m ago•0 comments

OpenClaw (ClawdBot) joins OpenAI

https://twitter.com/sama/status/2023150230905159801
24•iSloth•44m ago•6 comments