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

The HydroGym reinforcement learning platform for fluid dynamics

https://www.nature.com/articles/s41586-026-10917-6
1•loiseaujc•2m ago•0 comments

Build a Reasoning Model, Scratch 2: Base, Text Gen, KV Caching [Seb Raschka][YT]

https://www.youtube.com/watch?v=BJua0yjO5dk
1•mdp2021•2m ago•0 comments

Jeff Bezos and the Age of Amazon (2014)

https://medium.com/galleys/the-everything-store-6ce05e08ed08
1•tosh•5m ago•0 comments

India Eradicated Polio

https://altermag.com/articles/how-india-eradicated-polio
1•trojanalert•9m ago•0 comments

Neural Canvas: a fruit fly connectome demo in the browser

https://huggingface.co/spaces/Xenova/fruit-fly-simulation
1•codelion•10m ago•0 comments

The binary I ship is the binary I want to test

https://blog.maxgio.me/posts/the-binary-i-ship-is-the-binary-i-want-to-test/
1•maxgio92•11m ago•1 comments

England's teens outperform peers in most countries in maths, reading and science

https://www.theguardian.com/education/2026/sep/08/england-teenagers-outperform-peers-in-most-coun...
2•defrost•13m ago•0 comments

Logitech launches MX Keypad for developers

https://news.logitech.com/press-releases/news-details/2026/Logitech-Unveils-MX-Keypad-for-Develop...
1•fourfire•14m ago•0 comments

Is the UK government the new training ground for AI execs?

https://www.theguardian.com/technology/2026/sep/07/architect-uk-ai-policy-quits-anthropic-conflic...
1•nixlaz•15m ago•0 comments

CERN LHCb upgrade under threat after UK pulls funds

https://www.researchprofessionalnews.com/rr-news-europe-infrastructure-2026-8-lhcb-upgrade-still-...
1•g6pdh•18m ago•0 comments

Atoonk/packetio: high-performance packet I/O library for Go

https://github.com/atoonk/packetio
1•pjf•18m ago•0 comments

Please consider running a NTP server in the NTP Pool

https://dreamstation.systems/personal/ntppool.html
4•robinpie•18m ago•0 comments

Show HN: EdgePad – tool for configuring edge touchpad gestures on Linux laptops

https://github.com/assembledev/edgepad
2•dev-e•18m ago•0 comments

Isthmus: History as an Answer Key in Cross-Field Retrieval [pdf]

https://darksigma.com/cross-field-retrieval-benchmark-isthmus.pdf
1•LumiTharMan•19m ago•0 comments

The firms turning recruitment into X Factor-style competitions

https://www.bbc.co.uk/news/articles/cgk43mn42g7o
2•baloki•20m ago•0 comments

Two children died from gene therapies in China: where the field goes next

https://www.nature.com/articles/d41586-026-02497-2
3•sbulaev•26m ago•1 comments

Python Turtle Graphics

https://docs.python.org/3/library/turtle.html
2•gebt•26m ago•0 comments

DeepSeek v4.1 Flash is now available for internal beta testing

3•dares2573•28m ago•0 comments

Machine learning of artistic fingerprints in jazz

https://www.nature.com/articles/s42256-026-01279-9
1•tobr•31m ago•0 comments

"Hammock Driven Development" (2010)

https://www.youtube.com/watch?v=f84n5oFoZBc
1•birdculture•35m ago•0 comments

A Unified Benchmark for Egocentric Human-to-Robot Dexterous Hand Image Editing

https://github.com/HandEdit/HandEdit
1•kaonashi-tyc-01•37m ago•0 comments

Refine Cycle: self-improvement plugin for Hermes Agent

https://github.com/Bergschloss/Refine-Cycle-for-Hermes-Agent
1•1134taras•38m ago•0 comments

Show HN: Use Strava's official MCP with other chatbots

https://github.com/leecjohnny/strava-mcp-gateway
1•leecmjohnny•39m ago•0 comments

I talked to deep buddy about AI solving Navier Stokes rumors

https://www.echohive.ai/deep-talk-buddy/navier-stokes
1•echohive42•43m ago•0 comments

How AI based programming could work (2016)

https://bjenik.com/AIBasedProgramming/
1•andsoitis•46m ago•1 comments

A Zero-Dark-Matter Mechanical Model of Cosmology

https://github.com/IoannisKousoulakos/THE-KOUSOULAKOS-MODEL-OF-COSMOLOGY-WIP/tree/main
1•ppkuio•49m ago•0 comments

US attacks UK plans to boost traditional media on social platforms

https://www.theguardian.com/us-news/2026/sep/07/trump-administration-attacks-uk-social-media-plans
5•beardyw•52m ago•2 comments

Why Taiwan's Silicon Shield Is Failing

https://nationalinterest.org/blog/techland/why-taiwans-silicon-shield-is-failing
2•baud147258•55m ago•1 comments

Show HN: Hybrid Nav2 and PPO RL for indoor Lidar-only robot navigation

https://github.com/Sourav29-2/ppo-lidar-navigation-
1•Ros_Sourav•59m ago•0 comments

Stable Singularity of the Euler Equations on R^3 without forcing – Anima on AI

https://anima-ai.org/2026/09/07/stable-singularity-of-the-euler-equations-on-r3-without-forcing/
1•bjenik•59m ago•0 comments