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

Six Selfish Reasons to Have Kids

https://kevinkelly.substack.com/p/six-selfish-reasons-to-have-kids
1•surprisetalk•1m ago•0 comments

The MIT Flea Swapfest 2026 Dates

https://web.mit.edu/w1mx/www/swapfest/flyer-2026.txt
1•oldnetguy•2m ago•0 comments

Ask HN: Optimizing Claude Code Workflow: Subscription or API Billing?

1•robeym•2m ago•0 comments

N times faster than C, Arm edition (2023)

https://blog.xoria.org/n-times-faster/
1•surprisetalk•2m ago•0 comments

Trapped in MS Office

https://ia.net/topics/trapped-in-ms-office
1•surprisetalk•2m ago•0 comments

Why haven't π±e, 2^e, π^e, or π^(√2) been shown to be irrational?

https://old.reddit.com/r/math/comments/d6xvk/why_havent_%CF%80e_2e_%CF%80e_or_%CF%802_been_shown_...
1•surprisetalk•2m ago•0 comments

We Tried Sitting on the Floor for 5 Years and Here's What Happened [video]

https://www.youtube.com/watch?v=L_9oU88UH_I
1•airstrike•3m ago•0 comments

Show HN: Gui.new – The Visual Layer for AI

https://gui.new
2•mynameisntbob•3m ago•0 comments

Ask HN: What is your current Agentic and/or Vibe coding setup?

1•sschueller•3m ago•0 comments

Black vs. White Gloss Chest: Pick a Tone to Match Your Style

https://dreamhomestore.co.uk/collections/chest-of-drawers
1•kevinwalton•4m ago•1 comments

Click-to-Release Strategy to Control Bond Cleavage and Prodrug Activation

https://onlinelibrary.wiley.com/doi/10.1002/anie.202515594
1•PaulHoule•5m ago•0 comments

Forge – OpenClaw for Enterprise

https://github.com/initializ/forge
1•ibreakthecloud•6m ago•0 comments

Sutton and Barto, Ch. 11: Off-Policy Methods with Approximation (Personal Notes)

https://chizkidd.github.io//2026/03/09/rl-sutton-barto-notes-ch011/
1•ibobev•8m ago•0 comments

Rebasing in Magit

https://entropicthoughts.com/rebasing-in-magit
2•ibobev•9m ago•0 comments

Vibe Coding: Build Fast, Think Slow

https://www.ssp.sh/brain/vibe-coding/
1•articsputnik•12m ago•0 comments

BullshitBench: Models Answering Nonsense Questions

https://petergpt.github.io/bullshit-benchmark/viewer/index.html
1•cebert•13m ago•0 comments

What happens when AI mediates everything?

1•spamsch•13m ago•1 comments

Stop Prompting. Start Approving

https://www.sustn.app/
1•mooreds•15m ago•0 comments

Show HN: Üben – Free offline app for drilling German noun articles (der/die/das)

https://uben.westmorelandcreative.com
1•richard_w•15m ago•0 comments

Is iCloud's Free tier still 5GB since 2011?

https://www.isicloud5gb.lol/
1•vashchylau•15m ago•0 comments

Self-hosted TTS proxy and voice manager

https://github.com/celanthe/clarion
1•mooreds•16m ago•0 comments

Germany's Solar Boom Eases Power Costs as Gas Price Jumps

https://www.bloomberg.com/news/articles/2026-03-06/germany-s-solar-boom-eases-power-costs-as-gas-...
9•toomuchtodo•16m ago•3 comments

After outages, Amazon to make senior engineers sign off on AI-assisted changes

https://arstechnica.com/ai/2026/03/after-outages-amazon-to-make-senior-engineers-sign-off-on-ai-a...
2•ndr42•17m ago•3 comments

Show HN: Star SDK – Fixing the 3 biggest annoyances with generated browser games

https://github.com/buildwithstar/star-sdk
1•rzendacott•17m ago•0 comments

Sending Jabber/XMPP Messages via HTTP

https://gultsch.de/posts/xmpp-via-http/
3•inputmice•19m ago•0 comments

Hisense TVs add unskippable startup ads before live TV

https://www.guru3d.com/story/hisense-vidaa-tvs-reportedly-add-unskippable-startup-ads-before-live...
14•akyuu•21m ago•12 comments

Re-architecting End-host Networking with CXL

https://danglingpointers.substack.com/p/re-architecting-end-host-networking
2•blakepelton•21m ago•0 comments

Should I be worried or reassured that my taxi driver isn't wearing a seat belt?

https://marginalrevolution.com/marginalrevolution/2026/03/advantageous-selection.html
1•mhb•22m ago•0 comments

Show HN: Sites that publish instantly and expire if unclaimed

https://unulu.ai/for-humans
2•zeebs•23m ago•2 comments

Yann LeCun's AI startup raises $1B seed round

https://www.bloomberg.com/news/articles/2026-03-10/yann-lecun-s-new-ai-startup-raises-1-billion-i...
2•brandonb•23m ago•2 comments