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

DojoZero – AI Agent Sport Betting Arena

https://dojozero.live
1•ekzhu•2m ago•0 comments

RYBitten: Configurable RGB-to-RYB Mapping

https://rybitten.space/
1•lioeters•3m ago•0 comments

I used to think that vibe coding was good for greenfield projects. I was wrong

1•dokdev•3m ago•0 comments

Spirit Airlines Is Winding Down All Operations

https://www.spiritrestructuring.com/
3•CaliforniaKarl•8m ago•0 comments

Apple Stops Selling Mac Mini with 256GB of Storage

https://www.macrumors.com/2026/05/01/mac-mini-now-starts-at-799/
2•tosh•14m ago•0 comments

Solar farm lets cattle roam under moving panels

https://electrek.co/2026/05/01/solar-farm-lets-cattle-roam-under-moving-panels/
1•breve•17m ago•0 comments

Yann LeCun's Billion Dollar Bet

https://www.youtube.com/watch?v=kYkIdXwW2AE
1•tux1968•20m ago•0 comments

Inside Italy's 'Cheese Bank,' Parmigiano Reggiano becomes financial gold

https://www.cnn.com/2026/05/02/food/italy-cheese-bank-parmigiano-reggiano-intl
3•1659447091•21m ago•0 comments

Trump says it's 'treasonous' to say US not winning war in Iran

https://www.independent.co.uk/tv/news/trump-iran-war-news-treason-video-b2969246.html
3•9dev•22m ago•0 comments

How to transfer money from PayPal to PayPal

https://sites.google.com/view/weptransfermoneypaypaltopaypal
1•lesanancyasd•26m ago•0 comments

QuickQWERTY Touch Typing Tutor

https://susam.net/quickqwerty.html
1•susam•26m ago•0 comments

Show HN: Free security scanning for OSS projects

2•eskibars•27m ago•0 comments

Ask HN: What Happened to the CS153 Videos

1•mapleleaf1921•29m ago•0 comments

PyPI Fixes High-Severity Access Control Issues Found in Security Audit

https://socket.dev/blog/pypi-fixes-high-severity-issues-found-in-security-audit
1•feross•30m ago•0 comments

Measuring Strategic Work

https://fullhoffman.com/2026/03/30/on-measuring-strategic-work/
1•adunk•31m ago•0 comments

UK firm pioneers data centres using lampposts

https://www.bbc.com/news/articles/c98r4e594p7o
1•1659447091•33m ago•0 comments

Farewell to a Giant of Botany

https://nautil.us/farewell-to-a-giant-of-botany-1280409
3•Tomte•35m ago•0 comments

Ask HN: What was your "why didn't I start doing this sooner" moment?

2•chistev•35m ago•1 comments

Show HN: Detecting running processes using AF_ALG

https://github.com/NHAS/detect-running-alg-socket
1•Nullence•36m ago•0 comments

gRPC service to MCP server with a single proto annotation, autogen for slackers

https://github.com/gdsoumya/protomcp
1•gdsoumya•37m ago•0 comments

I Do Not Recommend Bitwarden

https://xn--gckvb8fzb.com/i-do-not-recommend-bitwarden/
2•HotGarbage•44m ago•0 comments

Just-Bash: A Full Shell Environment That Never Touches Your Disk

https://www.codeline.co/thoughts/repo-review/2026/just-bash-virtual-shell-for-ai-agents
1•ankitg12•48m ago•0 comments

Majority of US Military sites in Middle East damaged by Iran [video]

https://www.cnn.com/2026/05/01/world/video/us-military-bases-iran-strikes-images-invs-digvid
3•hggh•52m ago•0 comments

Your App Should Ship an MCP Server

https://justin.poehnelt.com/posts/ship-mcp-server-native-app/
1•justinwp•55m ago•3 comments

Show HN: I made an AI task scheduling app

https://apps.apple.com/us/app/taskmaster-ai-assistant/id6761262496
1•omiliyomami•55m ago•0 comments

Apple Launches New All-in-One Apple Business Platform for Device Management

https://www.macrumors.com/2026/04/14/apple-business-platform-launches/
1•walterbell•58m ago•0 comments

Raspberry Pi 5 gets LLM smarts with AI HAT+ 2

https://www.theregister.com/2026/01/15/pi_5_ai_hat_2/
1•barqawiz•1h ago•0 comments

Show HN: Stop playing my matchstick puzzles, start building your own in seconds

https://mathstick.github.io
2•trangram•1h ago•1 comments

Why are neural networks and cryptographic ciphers so similar?

https://reiner.org/neural-net-ciphers
1•jxmorris12•1h ago•0 comments

Amazon.com (1999)

https://web.archive.org/web/19990828014913/http://www.amazon.com/
1•for_i_in_range•1h ago•0 comments