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

Exploring Advanced Video Editing Techniques

1•lapsdoor•34s ago•0 comments

Video Editing Tips

https://videoediting.tips/en
1•lapsdoor•40s ago•0 comments

Code quality: a concern for businesses, bottom lines, and empathetic programmers

https://stackoverflow.blog/2021/10/18/code-quality-a-concern-for-businesses-bottom-lines-and-empa...
1•perpetua•40s ago•0 comments

Show HN: Wan 2.7 – AI Video Generator for Cinematic Content

https://wan27.co
1•danielmateo773•1m ago•0 comments

Brazil, India and Russia hold large reserves of rare earth but don't mine them

https://ourworldindata.org/data-insights/brazil-india-vietnam-and-russia-hold-large-reserves-of-r...
1•alphabetatango•2m ago•0 comments

Voxtype – Push-to-Talk Voice-to-Text for Linux and macOS

https://voxtype.io/
1•ticoombs•5m ago•1 comments

Show HN: Swarmed.DEV – The Autonomous AI Development Swarm

https://www.swarmed.dev
1•freezabb•7m ago•0 comments

Claude Is Not Your Architect. Stop Letting It Pretend

https://www.hollandtech.net/claude-is-not-your-architect/
1•gpi•9m ago•0 comments

Attention Residuals

https://arxiv.org/abs/2603.15031
1•djhemath•9m ago•1 comments

Agentic AI and Occupational Displacement: Multi-Regional Task Exposure Analysis

https://arxiv.org/abs/2604.00186
1•raviishgupta•13m ago•0 comments

Show HN: Coding Planets – turn GitHub contributions into sound and space

https://joaonetto.me/projects/music/
1•jnettome•17m ago•0 comments

MLX-Serve a Native LLM Runtime for Apple Silicon

https://ddalcu.github.io/mlx-serve/
2•ddalcu•19m ago•1 comments

Why We're Removing Our Programmatic Ads

https://prospect.org/2026/04/06/why-were-removing-our-programmatic-ads/
2•colinprince•25m ago•0 comments

Show HN: Portable offline LLM knowledge system that runs in browser

1•muthuishere•27m ago•0 comments

China Orders Bitchat Pulled from Apple App Store

https://decrypt.co/363367/china-orders-jack-dorseys-bitchat-pulled-from-apple-app-store
2•giuliomagnifico•28m ago•0 comments

DevTerm – Portable Terminal

https://www.clockworkpi.com/home-devterm
2•kristianpaul•31m ago•1 comments

Clockworkpi

https://www.clockworkpi.com
3•kristianpaul•33m ago•1 comments

Why the majority of vibe coded projects fail

https://www.reddit.com/r/ClaudeAI/s/Vkkzi4lUW0
8•juniormpakou•38m ago•1 comments

One Softie's View of the Evolution of Windows APIs

https://twitter.com/stevesi/status/2036921223150440542
3•jnord•39m ago•0 comments

Free Early Learning Content for Kids – Feedback Welcome

https://www.youtube.com/channel/UCuC2pezENaY3BTsDnACzY-w
1•fatbrother•42m ago•0 comments

My Real-Life Account as a Federally Cleared US Government Whistleblower

https://drive.proton.me/urls/TVQBZBVQK0#g50TCYlBdeeb
2•kernel_haathi•42m ago•1 comments

I'm building a local-first CLI "knowledge foundry" for LLM workflows

https://twitter.com/theopuslabs/status/2041316189515723028
2•opuslabs•45m ago•0 comments

Lab Gloves May Be Skewing Microplastics Data

https://hackaday.com/2026/04/06/lab-gloves-may-be-skewing-microplastics-data/
2•lxm•52m ago•1 comments

Robots Eat Cars

https://telemetry.endeff.com/p/robots-eat-cars
1•JMill•53m ago•0 comments

A.I. Is on Its Way to Upending Cybersecurity

https://www.nytimes.com/2026/04/06/technology/ai-cybersecurity-hackers.html
2•lxm•56m ago•0 comments

Anthropic's refusal to drop AI safeguards for The Pentagon

https://claude.ai/public/artifacts/f1c3dd80-a3eb-49eb-9d92-867705526437
2•skmadd•57m ago•0 comments

We Don't Know: A Case for Mars

https://dave.autonoma.ca/blog/2026/04/06/case-for-mars/
1•thangalin•58m ago•1 comments

"Do you think AI will ever be able to write a good song?"

https://www.theredhandfiles.com/considering-human-imagination-the-last-piece-of-wilderness-do-you...
1•Nition•1h ago•1 comments

Badclaude – whip Claude to make it go faster

https://github.com/GitFrog1111/badclaude
1•beatthatflight•1h ago•2 comments

What Next for the Compute Crunch?

https://martinalderson.com/posts/what-next-for-the-compute-crunch/
2•jnord•1h ago•0 comments