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

Signal – Deleted, but Not Forgotten

https://sintonen.fi/advisories/signal-deleted-but-not-forgotten.txt
1•HotGarbage•2m ago•0 comments

The AI Elephant in the Room

https://www.joshwcomeau.com/email/wham-launch-005-elephant-2-p/
1•moebrowne•4m ago•0 comments

Bitcoin Pizza Day is crypto's longest-running joke

https://muddy.jprs.me/posts/2026-05-22-why-bitcoin-pizza-day-is-crypto-s-longest-running-joke/
1•jprs•6m ago•0 comments

Pub Quiz Flashcards

https://maxhalford.github.io/pub-quiz-flashcards/
1•Lemaxoxo•7m ago•0 comments

Alberta to hold referendum on whether to remain in Canada

https://www.bbc.com/news/articles/cvgze8n5dxko
2•JumpCrisscross•8m ago•0 comments

Swoin.io – Community-driven roadmaps backed by real money

https://www.swoin.io/
1•DenisManig•9m ago•0 comments

Prize-winning story published in Granta was (likely) written by AI

https://lithub.com/a-prize-winning-story-published-in-granta-was-very-likely-written-by-ai/
1•vintagedave•10m ago•0 comments

Largest North American Bitcoin ATM operator, Bitcoin Depot, files for bankruptcy

https://www.web3isgoinggreat.com/single/bitcoin-depot-bankruptcy
1•t-3•11m ago•0 comments

Why I built wrkflw to validate and run GitHub Actions locally

https://blog.gokuls.in/posts/why-i-built-wrkflw.html
2•bahdotshxx•12m ago•0 comments

Housing squeeze in Swiss boom region fuels support for population cap

https://www.reuters.com/world/europe/housing-squeeze-swiss-boom-region-fuels-support-population-c...
1•JumpCrisscross•14m ago•0 comments

Show HN: LocalPanel – Manage any SSH server from Mac/Windows, no server agents

1•nesdzoltd•15m ago•0 comments

Advanced adenomas among young endurance runners: A prospective prevalence study

https://www.sciencedirect.com/science/article/pii/S1877782126001037
2•bookofjoe•16m ago•1 comments

The 8-Bit Guy made an even faster "Random Maze " [video]

https://www.youtube.com/watch?v=cPZdKogq63k
1•Unai•18m ago•0 comments

Fun: macOS Upgrade Notice

https://mastodon.social/@meysam81/116618247498810037
3•meysamazad•19m ago•0 comments

Sam Altman Won in Court Against Elon Musk. But, We All Lost

https://www.newyorker.com/news/letter-from-silicon-valley/sam-altman-won-in-court-against-elon-mu...
6•littlexsparkee•20m ago•0 comments

Is Capability a Liability? More Capable Language Models Make Worse Forecasts

https://arxiv.org/abs/2605.22672
1•sbulaev•20m ago•0 comments

Three Ways to See Distance – Camera in Robotics

https://atomsfrontier.substack.com/p/three-ways-to-see-distance
1•jpatel3•21m ago•0 comments

ExtendDB – open-source DynamoDB-compatible API adapter with pluggable storage

https://github.com/ExtendDB/extenddb
2•akajla•21m ago•0 comments

AutoViz: The last project by Leland Wilkinson

https://github.com/h2oai/autoviz
2•johnygomez•22m ago•1 comments

Beyond Deterministic Surfaces: Uncertainty-Aware Geometry Processing

https://blog.siggraph.org/2026/05/beyond-deterministic-surfaces-uncertainty-aware-geometry-proces...
1•rbanffy•22m ago•0 comments

Crypto industry braces for quantum computing threat

https://www.ft.com/content/99c1c1e7-1a1c-479c-9fc8-e21aea5c3f0e
1•JumpCrisscross•22m ago•0 comments

Department of War Publishes Second Release of UFO Files

https://twitter.com/DeptofWar/status/2057799788003737844
2•keepamovin•23m ago•0 comments

Redframes

https://github.com/maxhumber/redframes
1•tosh•24m ago•0 comments

Large language models pass a standard three-party Turing test

https://www.pnas.org/doi/10.1073/pnas.2524472123
2•geox•28m ago•0 comments

AI Edits a Classical Chinese Paper: Multi-Model Stress Test

https://zenodo.org/records/20343571
1•AICHEN•29m ago•0 comments

UK scientists developing new Ebola vaccine that could be ready in months

https://www.bbc.co.uk/news/articles/cy82gkr7xzlo
3•asplake•29m ago•0 comments

China's AI optimism isn't what it seems

https://www.chinatalk.media/p/chinas-ai-optimism-isnt-what-it-seems
2•speckx•30m ago•0 comments

Department of War Publishes Second Release of UAP Files

https://www.war.gov/UFO/?releaseDate=Release+02#records
1•keepamovin•31m ago•1 comments

Quadball Europe Announces European Quadball Cup 2026

https://www.quidditcheurope.org/post/quadball-europe-announces-european-quadball-cup-2026
1•throw_await•31m ago•0 comments

Ask HN: How much AI is in your writing?

2•js98•31m ago•6 comments