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: Mnheme Evolves – Personality and Free Will Enter the System

https://medium.com/@aatel.license/mnheme-evolves-personality-and-free-will-enter-the-system-66258...
1•aatel-license•2m ago•0 comments

Rise of the Blood Populist

https://www.theatlantic.com/ideas/2026/04/blood-populists-political-violence-ideology/686995/
1•JumpCrisscross•3m ago•0 comments

TypeScript framework for building non-blocking AI agents

https://github.com/jigjoy-ai/mozaik
1•mijura•4m ago•0 comments

Stop letting AI generate broken SVG spaghetti

https://github.com/stellarshenson/claude-code-plugins
1•stellars•4m ago•0 comments

No action taken against PimEyes: noyb lawsuit against Hamburg DPA

https://noyb.eu/en/no-action-taken-against-pimeyes-noyb-lawsuit-against-hamburg-dpa
2•hacka22•7m ago•0 comments

Show HN: I built a zero-tracking news hub to escape doomscrolling at (AGE 17y)

3•blazeeofsun•10m ago•0 comments

How Much LLMs is too much LLMs?

https://www.sammystraus.com/#how-much-llms-is-too-much-llms
2•sammy0910•17m ago•0 comments

Response: Sandboxes Won't Save You from OpenClaw

https://endojs.org/review-sandboxes-wont-save-you-from-openclaw/
1•bobdcf•17m ago•0 comments

Oil markets are still in La-La land

https://economist.com/leaders/2026/04/30/oil-markets-are-still-in-la-la-land
1•burntcaramel•20m ago•0 comments

Basic Fantasy Role-Playing Game

https://www.basicfantasy.org/
2•debo_•22m ago•1 comments

How much "Brain Damage" can an LLM Tolerate? (2024)

https://hawaii.ziti.uni-heidelberg.de/blog/llm-brain-damage/
1•Andr2Andr•22m ago•0 comments

Using LLMs to find Python C-extension bugs

https://lwn.net/Articles/1067234/
1•lumpa•23m ago•0 comments

You can beat the binary search

https://lemire.me/blog/2026/04/27/you-can-beat-the-binary-search/
2•signa11•23m ago•0 comments

White House Opposes Anthropic's Plan to Expand Access to Mythos Model

https://www.wsj.com/tech/ai/white-house-opposes-anthropics-plan-to-expand-access-to-mythos-model-...
1•JumpCrisscross•24m ago•0 comments

Schooling Has a Meaning Crisis. Paradoxically, AI Can Help

https://blog.comini.in/p/schooling-has-a-meaning-crisis-paradoxically
1•ChaitanyaSai•26m ago•0 comments

Met Police's Palantir deployment has its own officers watching their backs

https://www.theregister.com/2026/04/30/met_police_palantir_deployment_cop_probe/
2•jjgreen•28m ago•0 comments

Scale invariance and the beauty of computer simulations [video]

https://www.youtube.com/watch?v=fIWleJeep0U
1•demute•29m ago•0 comments

Copy-fail-destroyer: K8s remediation for CVE-2026-31431

https://github.com/NorskHelsenett/copy-fail-destroyer
1•evenh•30m ago•0 comments

J. Craig Venter, Scientist Who Decoded the Human Genome, Dies at 79

https://www.nytimes.com/2026/04/30/science/j-craig-venter-dead.html
2•Anon84•31m ago•0 comments

Approaching Zero Bugs?

https://daniel.haxx.se/blog/2026/04/30/approaching-zero-bugs/
2•sohkamyung•33m ago•0 comments

Amazon Q1 revenue tops estimates as AWS hits 15-quarter growth high

https://finance.yahoo.com/sectors/technology/article/amazon-q1-revenue-tops-estimates-as-aws-hits...
4•01-_-•34m ago•0 comments

Reddit Is the Most Dangerous Social Media Platform for Human Creativity-Opinion

https://mirz.ai/post/reddit-is-the-most-dangerous-social-media-platform-for-human-creativity-opinion
1•zahirbmirza•35m ago•0 comments

GM Adds Google Gemini for Drivers to Rev Up with AI Assistant

https://www.cnet.com/tech/services-and-software/gm-brings-google-gemini-to-millions-of-vehicles-o...
1•01-_-•36m ago•0 comments

Estimating Black-Box LLM Parameter Counts via Factual Capacity

https://arxiv.org/abs/2604.24827
1•RockstarSprain•41m ago•0 comments

Paperclip Maximizer Bench

https://d.erenrich.net/paperclip-bench/index.html
1•themaxdavitt•47m ago•0 comments

Table Oriented Programming (2002)

https://www.oocities.org/tablizer/top.htm
1•downbad_•47m ago•1 comments

The Agentic Software Development Life Cycle Framework

https://asdlc.io/
1•futurecat•48m ago•0 comments

Remembering the Computer Literacy Project (1992) [video]

https://www.youtube.com/watch?v=JZjNHnYFqOA
3•peterkelly•49m ago•1 comments

Show HN: Bin collection calendars for the entire UK

https://ukbinday.co.uk/
3•chartreuseai•50m ago•0 comments

I Built SpecDD Because AI Kept Forgetting What We Were Building

https://specdd.ai/articles/i-built-specdd-because-ai-kept-forgetting-what-we-were-building/
2•addvilz•51m ago•0 comments