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

Wine 11.0-Rc3 Released with Another Week of Bug Fixing

https://www.phoronix.com/news/Wine-11.0-rc3-Released
1•Bender•38s ago•0 comments

LG TVs' unremovable Copilot shortcut is the least of smart TVs' AI problems

https://arstechnica.com/gadgets/2025/12/lg-tvs-unremovable-copilot-shortcut-is-the-least-of-smart...
1•Bender•2m ago•0 comments

'War and Power' review: Off the battlefield, another fight

https://www.wsj.com/arts-culture/books/war-and-power-review-off-the-battlefield-another-fight-82e...
1•hhs•4m ago•0 comments

I'm a Full Professor. I Don't Code for a Living. I Shipped Prod Software Anyway

1•socreins•5m ago•0 comments

Google Engineer on His Sentient AI Claim (2022) [video]

https://www.youtube.com/watch?v=kgCUn4fQTsc
2•kevin061•6m ago•0 comments

Who's Afraid of Black Love?

https://dengalove.com/posts-do-blog/quem-tem-medo-do-amor-preto/
2•filldorns•9m ago•1 comments

Prototaxites

https://astrobiology.com/2025/03/ancient-prototaxites-dont-belong-to-any-living-lineage-possibly-...
2•andsoitis•10m ago•0 comments

Olo (Imaginary Color)

https://en.wikipedia.org/wiki/Olo_(color)
1•aleda145•12m ago•0 comments

Poor Man's Productivity Trick

https://idiallo.com/blog/poormans-productivity-trick
1•shaunpud•13m ago•0 comments

Wood wide web – the underground network of microbes that connects trees

https://www.science.org/content/article/wood-wide-web-underground-network-microbes-connects-trees...
1•andsoitis•13m ago•0 comments

Why Current AI Won't Displace Lawyers

https://deepsub.substack.com/p/six-reasons-why-current-ai-wont-displace
1•dsubburam•15m ago•0 comments

Build Your Own React

https://pomb.us/build-your-own-react/
1•howToTestFE•17m ago•0 comments

Cloudflare's Resilience plan following recent outages (Code Orange)

https://blog.cloudflare.com/fail-small-resilience-plan/
2•sdko•18m ago•0 comments

Humongous Fungus — the largest single living organism on Earth

https://www.oregonencyclopedia.org/articles/humongous-fungus-armillaria-ostoyae/
1•andsoitis•19m ago•0 comments

End of Year Pay Report 2025

https://www.levels.fyi/2025/
1•cebert•19m ago•0 comments

Ask HN: Acceleration of a Drop Falling Through Mist?

2•AnimalMuppet•23m ago•1 comments

How has public history changed since 1951?

https://www.historytoday.com/archive/head-head/how-has-public-history-changed-1951
1•hhs•25m ago•0 comments

Kew: Simple Static Site Generator

https://github.com/uint23/kew
1•uint23•27m ago•0 comments

The Great Re-Aggregation: Vertical AI and the Battle for the Control Point

https://medium.com/@gp2030/the-great-re-aggregation-vertical-ai-service-as-software-and-the-battl...
1•light_triad•32m ago•1 comments

Ask HN: What app/website do you think should exist? (non-AI)

1•DinakarS•32m ago•2 comments

PBS News Hour West to go dark after ASU discontinues contract

https://www.statepress.com/article/2025/12/politics-pbs-newshour-west-closure
2•heavyset_go•33m ago•0 comments

Ask HN: Has your iPhone Safari been hijacked by ChatGPT?

1•dalemhurley•34m ago•2 comments

Evolution by Natural Induction

https://royalsocietypublishing.org/rsfs/article/15/6/20250025/366156/Evolution-by-natural-induction
1•Anon84•36m ago•0 comments

Computational prediction of human genetic variants in the mouse genome

https://www.nature.com/articles/s41587-025-02925-0
1•bookofjoe•36m ago•0 comments

The Most Dangerous Spot on Caltrain

https://valuetowndotjson.substack.com/p/the-most-dangerous-spot-on-caltrain
1•panic•36m ago•0 comments

The Present and Future of HPC Networking with Cornelis Networks CEO Lisa Spelman

https://chipsandcheese.com/p/sc25-the-present-and-future-of-hpc
1•rbanffy•39m ago•0 comments

The Model T of Agentic AI was Introduced in 2025

https://backnotprop.substack.com/p/the-model-t-of-agentic-ai-was-introduced
1•ramoz•47m ago•0 comments

Controversial Dakota Pipeline Gets a Big, Belated Government Boost

https://www.nytimes.com/2025/12/19/climate/dakota-access-pipeline-greenpeace-energy-transfer-army...
1•geox•48m ago•0 comments

What building a Package Manager taught me

1•xerrs•50m ago•0 comments

Humanoid Robots for War and Work: Startup Plans to Build 50K by End of 2027

https://www.forbes.com/sites/johnkoetsier/2025/12/16/humanoid-robots-for-war-and-work-startup-pla...
1•rmason•51m ago•0 comments