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

Strait of Hormuz Update: Is It Open? [video][25 Mins]

https://www.youtube.com/watch?v=MgfuFo7jaEE
1•Bender•19s ago•0 comments

Humans Still Beat AI in the Long Horizon

https://joyemang33.github.io/blog/2026/humans-dont-just-sample/
1•mxwsn•3m ago•0 comments

Anthropic's latest feud with the admin may help it, sales data suggests

https://techcrunch.com/2026/06/16/anthropics-latest-feud-with-the-trump-admin-may-actually-help-i...
1•pseudolus•4m ago•0 comments

2026-06-16 Robinhood Layoff Translation

https://layoff-translator.pages.dev/layoffs/2026-06-16-robinhood
3•ronbenton•10m ago•0 comments

Even if u "delete" it – u still need to crawl it;D

https://rogmash.neocities.org/
1•rogmash•14m ago•0 comments

Hex1bThe .NET Terminal Application Stack

https://hex1b.dev/
1•joshka•21m ago•0 comments

What If Everyone Saw Your Whole Digital Life?

https://nymag.com/intelligencer/article/your-digital-self-is-vulnerable.html
1•gaws•21m ago•0 comments

Ask HN: Would you want to know when and how you die?

3•JohnDSDev•23m ago•2 comments

The Technical Realities of Email Privacy

https://www.ivpn.net/privacy-guides/email-and-privacy/
3•jethronethro•23m ago•0 comments

Something Is Very Wrong in San Francisco

https://www.simplermachines.com/something-is-very-wrong-in-san-francisco/
3•danorama•24m ago•0 comments

Hubble tension, dark energy, and α from one number, zero free parameters

https://zenodo.org/records/19230547
1•yukky•26m ago•0 comments

All Gists Discussed on HN

https://news.ycombinator.com/from?site=gist.github.com&kind=comment
1•sillysaurusx•27m ago•2 comments

Discussion of GitHub repos on HN

https://news.ycombinator.com/from?site=github.com&kind=comment
1•sillysaurusx•27m ago•0 comments

"polarization" might, in part, be a proximity issue

https://justinjackson.ca/communication
2•YounesDz•28m ago•1 comments

France to ditch Palantir's AI data tools in favour of domestic provider

https://www.theguardian.com/world/2026/jun/16/france-ai-data-tools-palantir-chapsvision
6•devonnull•31m ago•0 comments

Property Graph Support in PostgreSQL 19

https://www.postgresql.org/docs/19/ddl-property-graphs.html
2•tharakam•31m ago•0 comments

How to Deploy Hermes AI Agent with Docker and HTTPS

https://devopness.com/blog/deploy-hermes-ai-agent-devopness/
1•Diegiwg•33m ago•0 comments

US moves to offer Iran sanctions relief

https://www.timesofisrael.com/liveblog_entry/us-to-allow-iran-to-begin-selling-oil-and-fuel-immed...
1•GreenSalem•33m ago•0 comments

Skill Fablize for Hermes

https://github.com/teixeirazeus/fablize-for-hermes
1•teixeirazeus•34m ago•0 comments

OBS Agentic Control Interface

https://github.com/DeepBlueDynamics/obsagent
1•kordlessagain•39m ago•0 comments

Trump admin tries to block Clean Air Act lawsuit over xAI's gas turbines

https://arstechnica.com/tech-policy/2026/06/trump-admin-helps-xai-fight-pollution-lawsuit-says-mi...
5•staplung•45m ago•1 comments

The Limits of Altruism

https://asindu.xyz/blog/the-limits-of-altruism/
1•asxndu•45m ago•0 comments

Web Search API for Agents 70x Cheaper Than Exa

https://www.searchspace.io/
2•carsonpoole•47m ago•0 comments

OpenAI spending hit $34B last year ahead of planned IPO, $21B losses

https://www.ft.com/content/e15b0d7e-ff6b-4f16-ba7a-4068feddb828
3•1vuio0pswjnm7•48m ago•0 comments

Building Production AI Apps on Claude Code and Cloudflare [video]

https://www.youtube.com/watch?v=rwkAksbNsTg
2•presengage•49m ago•0 comments

How HN: Nova BRAIN – STIG scanning and POA&M automation dashboard

https://dawitone.gumroad.com/l/fgwfzl
1•Butulove•51m ago•0 comments

GoJS – Interactive diagramming for every industry

https://gojs.net/latest/
1•simonsarris•51m ago•0 comments

How to make small models punch way above their weight with DeepClause

https://deepclause.substack.com/p/how-to-make-small-models-punch-way
1•schmuhblaster•51m ago•0 comments

Gravitational-wave detections double with new catalog

https://news.northwestern.edu/stories/2026/03/gravitational-wave-detections-double-with-new-catalog
1•wglb•52m ago•0 comments

Framer 3.0

https://www.framer.com/updates/framer-3
1•SpyCoder77•53m ago•0 comments