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

Supabase-JS: An isomorphic JavaScript client for Supabase

https://github.com/supabase/supabase-js
1•doener•32s ago•0 comments

How Fast Could Robot Production Scale Up?

https://epoch.ai/blog/how-fast-could-robot-production-scale-up
1•JumpCrisscross•2m ago•0 comments

U.S. Considering Foreign Designs, Shipyards for New Navy Frigate, Destroyer Work

https://news.usni.org/2026/04/24/u-s-considering-foreign-designs-shipyards-for-new-navy-frigate-d...
1•JumpCrisscross•4m ago•0 comments

Steve Hilton: British former Fox News host be California's next governor?

https://www.theguardian.com/us-news/2026/may/02/steve-hilton-california-governor-race
1•andsoitis•5m ago•0 comments

I'm building a pool logging and AI app. What would make this genuinely useful?

https://poolquant.com
1•geoffreycross01•7m ago•0 comments

MicroKanren in J (2020) [pdf]

https://minikanren.org/workshop/2020/minikanren-2020-paper3.pdf
1•tosh•8m ago•0 comments

When generative AI makes mistakes, are they the same as human errors?

https://link.springer.com/article/10.1007/s13347-026-01056-x
1•camilochs•9m ago•0 comments

System design reviewer – Need feedback

http://design-reviewer.s3-website-us-east-1.amazonaws.com
1•julivparikh•10m ago•1 comments

Started using Linux terminal on Android. Now I can do things no app store allows

https://www.makeuseof.com/linux-terminal-android-can-do-things-no-app-store-allows/
1•thunderbong•14m ago•0 comments

Open Design: Use Your Coding Agent as a Design Engine

https://github.com/nexu-io/open-design
3•steveharing1•15m ago•0 comments

GameStop is looking to buy eBay, report says. Both stocks are soaring

https://www.msn.com/en-us/money/economy/gamestop-is-looking-to-buy-ebay-report-says-both-stocks-a...
2•OrvalWintermute•15m ago•0 comments

LA's levitating amoeba: a new kind of museum

https://www.economist.com/culture/2026/04/30/las-levitating-amoeba-a-radically-new-kind-of-museum
1•andsoitis•16m ago•0 comments

Apple Raises Mac Mini's Starting Price to $799 After AI Frenzy Drains Supply

https://www.bloomberg.com/news/articles/2026-05-01/apple-raises-mac-mini-s-starting-price-to-799-...
1•helsinkiandrew•17m ago•0 comments

The Century-Long Pause in Fundamental Physics

https://danieltan.weblog.lol/2026/05/the-century-long-pause-in-fundamental-physics
1•danieltanfh95•18m ago•0 comments

Herbert Simon in 1979: on AI and robotics [video]

https://www.youtube.com/watch?v=p5c9ns0oeZg
1•clickglue•21m ago•0 comments

Craig Venter of Human Genome Project Dies at 79

https://www.economist.com/obituary/2026/05/01/craig-venter-raced-to-decode-the-human-genome
3•bookofjoe•22m ago•0 comments

Earning the Right to Have an Opinion on AI in the SDLC

https://sashankav.substack.com/p/earning-the-right-to-have-an-opinion
1•ColinEberhardt•22m ago•0 comments

Spirit Airlines shutting down after rescue talks collapse

https://www.bbc.com/news/articles/cqxlnrqjvzyo
2•berkeleyjunk•23m ago•0 comments

Quantization for Modern AI Systems (70-page free eBook)

https://pawankjha.substack.com/p/my-new-ebook-free-download-quantization
1•pawanjha25•25m ago•0 comments

What do you think is missing in most expense tracking apps?

https://play.google.com/store/apps/details?id=com.lowkeynova.fino&hl=en_US
1•enjoyingtime•29m ago•0 comments

Show HN: 3x Enemies Aggro Mod – Elden Ring Multiplayer Scaled Up to the Max

1•alansaber•31m ago•0 comments

Spirit Airlines canceled all flights and is going out of business

https://www.cnn.com/2026/05/02/business/spirit-to-halt-all-flights
2•teleforce•34m ago•1 comments

Multiple Hetzner Issues

https://status.hetzner.com/
1•teekert•35m ago•0 comments

Minnesota passes ban on fake AI nudes; app makers risk $500K fines

https://arstechnica.com/tech-policy/2026/05/minnesota-set-to-be-first-state-to-ban-nudification-a...
3•ndsipa_pomu•36m ago•1 comments

Dokkimi: Test every part of your app without code changes

https://www.dokkimi.com/
1•pugio•36m ago•0 comments

A New Mental Model for Work in the AI Age

https://dalehurley.com/posts/newmentalmodelforworkintheaiage/
1•dalemhurley•38m ago•2 comments

Heavy metal predators: diverse elemental enrichment across weapons of scorpions

https://royalsocietypublishing.org/rsif/article/23/237/20250523/481493/Heavy-metal-predators-dive...
1•bookofjoe•38m ago•0 comments

From CVS to Git, thirty years of source control

https://evilgeniuslabs.ca/blog/from-cvs-to-git-thirty-years-of-source-control
1•andsoitis•39m ago•0 comments

Show HN: Toggles – open-source feature flags for everyone

https://toggles.tinytown.studio/
1•aliezsid•41m ago•0 comments

Show HN: Droast – A Dockerfile linter that roasts you for your bad practices

https://github.com/immanuwell/dockerfile-roast
1•immanuwell•42m ago•0 comments