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

AI Has Come for Serif Fonts

https://www.wired.com/story/ai-has-come-for-serif-fonts/
1•unprovable•31s ago•0 comments

UK PM Starmer set to ban 'harmful' social media for under-16s

https://www.reuters.com/legal/litigation/uk-pm-starmer-set-ban-harmful-social-media-under-16s-202...
4•geox•17m ago•3 comments

The Cypherpunk Library

https://www.cypherpunkbooks.com
3•yu3zhou4•20m ago•0 comments

LLMs and Performative Productivity

https://joshcollinsworth.com/blog/productivity
1•gregnavis•22m ago•0 comments

Owning Your Dependencies

https://thestoicprogrammer.substack.com/p/owning-your-dependencies
2•birdculture•27m ago•0 comments

In Defense of YAML

https://opensource.posit.co/blog/2026-05-21_in-defense-of-yaml/
1•theanonymousone•31m ago•0 comments

Show HN: Free read-only script to find wasted AWS spend

https://cloudbudgetmaster.com/tools/aws-waste-finder/
1•samarth0211•31m ago•0 comments

The GitHub Copilot Bill Came Due. Here's What Engineering Leaders Should Do

https://blog.kilo.ai/p/the-github-copilot-bill-came-due
1•Aireen5858•36m ago•0 comments

Dao Heart 3.13 a symbolic safety layer for value drift and AI alignment research

https://github.com/Mankirat47/Dao-Heart-3.13
1•Mankirat47•39m ago•0 comments

OneDrive data now has an expiry date

https://ms365news.com/blogs/f/your-onedrive-data-now-has-an-expiry-data
3•taubek•42m ago•0 comments

String theory may be inevitable from basic assumptions about the universe

https://www.science.org/content/article/after-empty-promises-string-theory-finds-new-uses
1•isaacfrond•43m ago•0 comments

GitHub is (partially) down again. Do you look for alternatives?

1•Hypnosis6173•45m ago•1 comments

Bitcoin pump to $63,700 triggers the most short liquidations since late April

https://www.coindesk.com/markets/2026/06/08/bitcoin-pump-to-usd63-700-triggers-the-most-short-liq...
1•Varun-Sakhuja•47m ago•1 comments

Mimo v2.5 is better deal than DeepSeek v4 flash

1•shivang2607•47m ago•0 comments

Show HN: Image-3D: photo to 3D splat that runs in the browser

https://mukba.ng/image-3d/
1•mnorris•50m ago•0 comments

The EU Open Source Strategy

https://digital-strategy.ec.europa.eu/en/policies/open-source-strategy
4•vrganj•53m ago•0 comments

DoomBench – benchmarking data stacks running Doom

https://cedardb.com/blog/doombench/
2•krishadi•54m ago•0 comments

GitHub Is Down

https://www.githubstatus.com/incidents/m7n7sm0sr1pz
39•cosuhi•59m ago•29 comments

Atlantic 'cold blob' likely caused by weakening AMOC near a tipping point

https://phys.org/news/2026-06-atlantic-cold-blob-weakening-ocean.html
2•btilly•1h ago•0 comments

A Languages Visualization Experiment

https://github.com/PEZ/languages-visualizations/
1•tosh•1h ago•0 comments

AI Has a Measurement Problem – And it's everyone's problem

https://luisgardea.substack.com/p/ai-has-a-measurement-problem
2•gallardo147•1h ago•1 comments

A 'Miraculous Transformation': How Kim Jong-Un Fortified North Korea

https://www.nytimes.com/2026/06/08/world/asia/north-korea-kim-jong-un-pandemic-economy.html
1•JumpCrisscross•1h ago•0 comments

Turn your architecture into a queryable knowledge graph (renders to Excalidraw)

https://github.com/BV-Venky/excalidraw-architect-mcp
2•Venky1729•1h ago•0 comments

Age verification tech could put children at greater risk, says think tank

https://www.computerweekly.com/news/366643835/Age-verification-tech-could-put-children-at-greater...
9•robtherobber•1h ago•0 comments

Minimal, Meaningful, Comfortable, Durable Bracelets for Dads

https://glintandluck.com/blogs/news/best-dad-bracelet-ideas-for-father-s-day-meaningful-gift-guide
2•Chris_taka•1h ago•0 comments

Show HN: Pingtrace

https://github.com/skhell/pingtrace
2•skhell•1h ago•0 comments

Gen Z turn to 'dopamine sites' for quick comfort

https://www.koreatimes.co.kr/lifestyle/trends/20260527/gen-z-turn-to-dopamine-sites-for-quick-com...
5•jnakano89•1h ago•2 comments

Show HN: Live Voice Translation Interpreter [video]

https://www.youtube.com/shorts/H1alb-d1fOo
1•julienreszka•1h ago•0 comments

Show HN: AI Boost – an MCP for accessing your everyday patterns

https://www.ai-boost.io/
1•npiano•1h ago•0 comments

NexusOS v2.0 – A zero-dependency pipeline streaming server chaos to Parquet

https://huggingface.co/datasets/Amman-shah/ecommerce-production-incident-postmortems
1•nexus_os•1h ago•0 comments