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

Redfin's 2026 Predictions: Welcome to the Great Housing Reset

https://www.redfin.com/news/housing-market-predictions-2026/
1•toomuchtodo•1m ago•0 comments

St. Nicholas Day: NIS2 Implementation Act Comes into Force in Germany

https://www.heise.de/en/news/On-St-Nicholas-Day-NIS2-Implementation-Act-Comes-into-Force-11104146...
1•doener•3m ago•0 comments

The Hackers Lost. Freezenet Is Back

https://www.freezenet.ca/the-hackers-lost-freezenet-is-back/
1•doener•6m ago•0 comments

Wolfram Compute Services

https://writings.stephenwolfram.com/2025/12/instant-supercompute-launching-wolfram-compute-services/
1•nsoonhui•9m ago•0 comments

Wine 11.0 RC1 – Run Windows Applications on Linux, BSD, Solaris and macOS

https://gitlab.winehq.org/wine/wine/-/releases/wine-11.0-rc1
2•neustradamus•11m ago•0 comments

The largest startup losses in history

https://www.dbresearch.com/PROD/RI-PROD/PROD0000000000611818/The%20largest%20start-up%20losses%20...
1•doener•12m ago•0 comments

Appbundler.jl – Bundle Your Julia Application for Windows, macOS, and Linux

https://github.com/PeaceFounder/AppBundler.jl
1•MrJulia•14m ago•0 comments

Most people in prediction markets aren't trading–they're guessing

1•Miramaps•20m ago•0 comments

A New Anonymous Phone Carrier Lets You Sign Up with Nothing but a Zip Code

https://www.wired.com/story/new-anonymous-phone-carrier-sign-up-with-nothing-but-a-zip-code/
1•pabs3•20m ago•0 comments

The Reverse-Centaur's Guide to Criticizing AI – Cory Doctorow

https://pluralistic.net/2025/12/05/pop-that-bubble/
1•beardyw•21m ago•0 comments

Show HN: Infinite Lofi Generative Music

https://loopmaster.xyz/editor?aidj&prompt=lofi%20gentle%20music,%20dub&swap=60&mix=60&temperature...
1•stagas•25m ago•0 comments

A Very Big Fight over a Very Small Language

https://www.newyorker.com/magazine/2025/12/08/a-very-big-fight-over-a-very-small-language
1•mitchbob•27m ago•1 comments

Thinking in Mirrors for Products

https://fernsology.substack.com/p/thinking-in-mirrors-for-products
1•funmi5•35m ago•0 comments

Debugger MCP Server – AI-Controlled Debugging for All JetBrains IDEs

https://plugins.jetbrains.com/plugin/29233-debugger-mcp-server
1•hechtcarmel•35m ago•1 comments

Show HN: A planner that only shows tasks you can actually do

https://app.nexttask.cc/
1•obezzad•41m ago•0 comments

A pilot turned an old plane into a two-bedroom apartment

https://www.popsci.com/technology/plane-apartment-alaska/
2•1659447091•42m ago•0 comments

'Wicked: For Good' Rebuilt Oz, from Yellow Brick Road to Dorothy's House [video]

https://www.youtube.com/watch?v=QBUnd4VQkLA
1•gmays•43m ago•0 comments

Tide-Predicting Machine

https://en.wikipedia.org/wiki/Tide-predicting_machine
1•thunderbong•48m ago•0 comments

Rich Harris on frameworks, the web, and the edge (2023) [video]

https://www.youtube.com/watch?v=uXCipjbcQfM
1•saltymimir•51m ago•0 comments

England's AI World Cup masterplan: From perfecting penalties to powering players

https://www.bbc.com/sport/football/articles/cj0e7y754zpo
1•1659447091•55m ago•0 comments

Tech for Small vs. Big Firms

https://lexifina.com/blog/technology-for-firms-big-and-small
1•alansaber•1h ago•0 comments

Show HN: Promptv (local first prompt & .env management)

https://github.com/thompson0012/promptv
1•thompson0012•1h ago•0 comments

Show HN: Design Language System (Waitlist)

https://dls.labs21.dev/
1•thompson0012•1h ago•0 comments

Physics Quantum experiment settles a century-old row between Einstein and Bohr

https://www.newscientist.com/article/2506830-quantum-experiment-settles-a-century-old-row-between...
3•ashishgupta2209•1h ago•0 comments

Show HN: StackMark – Docker stack management CLI with auto port allocation

https://stackmark.tech/
2•grazulex•1h ago•0 comments

CVE-2023-20078: Triggering command injection in Cisco IP phones

https://www.ibm.com/think/x-force/cve-2023-20078-technical-analysis
2•jandeboevrie•1h ago•0 comments

Particle Physicists Detect 'Magic' at the Large Hadron Collider

https://www.quantamagazine.org/particle-physicists-detect-magic-at-the-large-hadron-collider-2025...
3•lc0_stein•1h ago•0 comments

Once a Gamble in the Desert, Electric Grid Batteries Are Everywhere

https://www.nytimes.com/2025/12/05/business/energy-environment/battery-prices-electric-grids.html
1•thelastgallon•1h ago•0 comments

The Forge Roblox Calculator

https://theforge-calculator.com/
1•thecrecipe•1h ago•0 comments

$700 for a bed? San Francisco startup plots 'sleeping pod' expansion

https://www.theguardian.com/us-news/2025/dec/03/san-francisco-sleeping-pods-rent
3•mitchbob•1h ago•1 comments