frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

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

Incident Report for GitHub – Latency issues across a number of services

https://www.githubstatus.com/incidents/zq3c1jst2vkq
2•1f97•6m ago•0 comments

Show HN: OpenCode Session Tracker

https://github.com/ykocaman/opencode-session-tracker/tree/main
1•ykocaman•7m ago•1 comments

The Indie Hacker in the Age of AI: Renaissance, Reckoning, or Both?

https://thinkapedia.com/t/tk_dHo0EZsbg46G/document
2•chancedurham•8m ago•0 comments

Richard Sutton leaves Keen Technologies to Start Oak Lab

https://twitter.com/RichardSSutton/status/2076663628301058329
1•neuroticnews25•9m ago•0 comments

Does code quality still matter?

https://blog.ploeh.dk/2026/07/23/does-code-quality-still-matter/
3•vinhnx•12m ago•0 comments

Wall Street's Bots Are Cashing in on Trump's Truth Social Posts

https://www.wsj.com/finance/stocks/how-wall-streets-bots-are-cashing-in-on-trumps-truth-social-po...
1•doener•14m ago•0 comments

AI Slop: Why Philosophy Journals Should Reject AI-Written Prose

http://schwitzsplinters.blogspot.com/2026/07/ai-slop-and-evidence-about-evidence-why.html
2•Alien1Being•15m ago•0 comments

Deep Dive into SeaTunnel Engine: How FlushSignal Drives Architecture Evolution

https://meeting.tencent.com/dm/4bzAAZGmA84b
1•SeaTunnel•16m ago•0 comments

Stop Killing the Internet (European Citizens' Initiative)

https://citizens-initiative.europa.eu/initiatives/details/2026/000011_en
1•rzk•19m ago•0 comments

Show HN: OpenFDE – Can Running Native Android Apps and Android Studio on Linux

https://github.com/openfde/openfde/blob/main/README.en.md
1•aaaa5455555a•19m ago•0 comments

Founders OS – open-source MCP server that gives AI your business context

https://www.foundersmcp.com
1•ourthinktank•20m ago•0 comments

AI Agents Don't Respect Font Licenses

https://www.mixfont.com/blog/ai-agents-dont-respect-font-licenses
2•justswim•22m ago•0 comments

Microsoft Teams will be blocked in China from July 28th 2026

https://support.microsoft.com/en-us/teams/free/settings/teams-free-availability-china
3•Markoff•26m ago•1 comments

Private mission launches to extend life of out-of-gas communication satellites

https://phys.org/news/2026-07-private-mission-life-gas-communication.html
1•jnord•27m ago•0 comments

BrainStem: Open‑source bio‑inspired AI with 12 neuromodulators for learning

https://github.com/unikum-sol/brainstem
1•Unikum-Sol•30m ago•0 comments

Why a Broken Russia Is Bad for the World

https://www.economist.com/by-invitation/2026/07/09/why-a-broken-russia-is-bad-for-the-world
1•Animats•33m ago•1 comments

Generative AI and the German Far Right: Narratives, Tactics, Digital Strategies [pdf]

https://www.isdglobal.org/wp-content/uploads/2025/02/The-use-of-generative-AI-by-the-German-Far-R...
2•vrganj•33m ago•0 comments

Claude for Teachers

https://www.anthropic.com/news/claude-for-teachers
3•the-mitr•37m ago•0 comments

Why the US is losing Chinese AI stars

https://www.ft.com/content/0c773366-61a2-4d33-894e-6b3ddfcfd9b3
1•chewz•41m ago•0 comments

Show HN: Modern Serial Console for macOS based on libghostty written in Swift

https://github.com/HeyMeco/MecoSerial
1•HeyMeco•45m ago•1 comments

AI Firewall – Security Gateway and Reverse Proxy for LLM Traffic

https://github.com/bossandboss/Ai-Firewall
1•bossandboss•46m ago•0 comments

Bay Aryan Resistance

https://www.jimgoad.net/bayaryan.html
2•MrBuddyCasino•46m ago•0 comments

Lovelace – project management that lives in your repo

https://lovelace.co/
2•LambrosPhotios•49m ago•0 comments

Show HN: Blurit – anonymous, text-only public posting board, no accounts

https://www.blurit.org/
3•opentestudox•50m ago•0 comments

Plan Prométhée – a plan for France to build 12GW of compute

https://planpromethee.com/en/
2•aubanel•50m ago•0 comments

Ask HN: What's the most secure way to run a local model?

2•smithcoin•52m ago•1 comments

From a Raspberry Pi to a DGX Spark: the state of local models in 2026

https://hoja-solutions.github.io/blog/state-of-local-models/
2•pebeto•53m ago•0 comments

Comhad: A ranger-style terminal file browser for S3

https://github.com/Eoin-McMahon/comhad/tree/master
1•emcmahon478•53m ago•0 comments

Onipin nuevo protocolo un chat Para la AI inscribe la tuya

https://onnivers.store/
1•davis1224•54m ago•0 comments

Modern Computer Architecture and Organization (3rd Edition)

https://github.com/PacktPublishing/Modern-Computer-Architecture-and-Organization-Third-Edition
2•teleforce•54m ago•0 comments