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

Show HN: Saunas lower nighttime heart rate more than exercise (n=59,000)

https://tryterra.co/research/sauna-effect-on-heart-rate
1•kyriakosel•34s ago•0 comments

Can AI Develop a Nose for News?

https://www.unite.ai/can-ai-develop-a-nose-for-news/
1•50kIters•1m ago•0 comments

Things to say when you're losing a technical argument

https://sciops.net/information/technology/losing_arguments
1•speckx•2m ago•0 comments

SiIicon Valley's AI agent hiccups: Wasted tokens and 'chaotic' systems

https://www.cnbc.com/2026/04/19/siiicon-valley-ai-agent-openclaw-problems.html
1•1vuio0pswjnm7•2m ago•0 comments

AI chatbots could be making you stupider

https://www.bbc.com/future/article/20260417-ai-chatbots-could-be-making-you-stupider
2•1vuio0pswjnm7•4m ago•1 comments

Orchestrating AI Code Review at Scale

https://blog.cloudflare.com/ai-code-review/
1•ryanskidmore•6m ago•0 comments

Fathom Acquires Gauges

https://usefathom.com/blog/fathom-acquires-gauges
2•JackWritesCode•6m ago•0 comments

Genetic clues tell the story of Neanderthals' decline

https://www.newscientist.com/article/2520319-genetic-clues-tell-the-story-of-neanderthals-decline/
1•thinkingemote•6m ago•0 comments

The asymmetry at the heart of AI security

https://fortuna.security/praxis/ai-security
1•philangist•8m ago•0 comments

I gave up on TDD years ago. AI coding agents made me a believer

https://ipirozhenko.com/I-gave-up-on-TDD-years-ago.-AI-coding-agents-made-me-a-believer_AraZUld3P...
1•sochix•8m ago•0 comments

Vibe physics: The AI grad student

https://www.anthropic.com/research/vibe-physics
1•ggraphilia•9m ago•0 comments

Show HN: DashPane v2, a macOS app switcher and launcher

https://www.dashpane.pro
1•jbetala7•9m ago•1 comments

Hatter: Native Haskell Mobile Apps

https://jappie.me/hatter-native-haskell-mobile-apps.html
1•zeepthee•9m ago•0 comments

Show HN: Composable AI in the Unix command line

https://linuxtoaster.com/
1•dirk94018•9m ago•0 comments

Towards Ultra-High-Rate Quantum Error Correction with Reconfigurable Atom Arrays

https://arxiv.org/abs/2604.16209
1•gmays•10m ago•0 comments

AI fuels wireless talent shortage

https://www.networkworld.com/article/4159230/ai-fuels-wireless-talent-shortage.html
1•giuliomagnifico•12m ago•0 comments

U.S. banks may soon collect citizenship data from customers

https://www.cnbc.com/2026/04/15/banks-citizenship-data-collection-customer-accounts.html
2•clumsysmurf•13m ago•0 comments

Snowflake Adaptive Warehouses are in public preview –> My take on them

https://seemoredata.io/blog/snowflake-adaptive-compute-warehouse-optimization/
1•yanivleven•15m ago•1 comments

Hands On, CTF-Style AI Pentesting Labs

https://www.wraith.sh/academy
1•WizardX_0x•16m ago•0 comments

Decision Graphs

https://maxdemarzi.com/2026/04/20/decision-graphs/
3•maxdemarzi•17m ago•1 comments

Elaine Ingham, Who Taught That Soil Is Alive, Dies at 73

https://www.nytimes.com/2026/04/19/science/earth/elaine-ingham-dead.html
2•Brajeshwar•17m ago•0 comments

I Built a 22k-Line App with Zero Coding Experience. Or, how to control agents

2•JasonGravy•18m ago•0 comments

Images cost 3x more in Opus 4.7

https://www.claudecodecamp.com/p/images-cost-3x-more-tokens-in-claude-opus-4-7
2•aray07•19m ago•0 comments

Humanoid robot beats the human half-marathon world record by 6.5 minutes

https://apnews.com/article/humanoid-robots-half-marathon-beijing-302d0c4781bab20100d6a0bb4e77b629
2•jrflo•20m ago•0 comments

The Concentration Problem: Why Your Portfolio Has a Single Point of Failure

https://helmterminal.dev/blog/portfolio-concentration-problem
1•helmterminal•21m ago•0 comments

The data of 20M French people potentially compromised

https://entrevue.fr/en/police-justice/cyberattaque-contre-lants-les-donnees-de-20-millions-de-fra...
1•LelouBil•22m ago•1 comments

Apple Cloudflare Remote App – Manage Cloudflare, Anywhere

https://apps.apple.com/us/app/cloudflare-remote/id6743181258
2•cloudflareapp•23m ago•1 comments

Ask HN: What's your favorite K8s tool in 2026?

1•hugolelievre•23m ago•0 comments

Show HN: Libredesk – self-hosted, single binary Intercom/Zendesk alternative

https://libredesk.io
2•avr5500•24m ago•2 comments

Why do output tokens cost 5x more than input tokens?

https://www.anirudhsathiya.com/blog/transformer
3•ani17•25m ago•1 comments