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

Repair vs. Replace

https://kaverennedy.substack.com/p/repair-vs-replace
1•surprisetalk•2m ago•0 comments

Show HN: MarketStory – what 1,750 X and YouTube investors say about each stock

https://marketstory.com
1•jhow15•4m ago•0 comments

My LLM sessions were confusing me, so I built with-my-dashboards

https://www.pangglow.com/files/blog/run-my-desktop.html?from=hn
1•murrrrrph•4m ago•0 comments

Tech giants agree to 10 rules for AI development after meeting with the King

https://www.bbc.co.uk/news/articles/cq4gnw481y3mo
1•nothing_is_real•7m ago•0 comments

Making BM25 OR queries fast for agents, inside and across Parquet files

https://infino.ai/blog/or-queries/
2•tatvamasi•7m ago•0 comments

Ukraine's robot missions and Russian war casualties both reach record highs

https://arstechnica.com/gadgets/2026/12/ukraines-robot-missions-and-russian-war-casualties-both-r...
1•shantara•7m ago•1 comments

Far Behind in the Space Race, Europe Just Boosted Its Rocket Production

https://www.wsj.com/tech/far-behind-in-the-space-race-europe-just-boosted-its-rocket-production-2...
1•ishikawa•8m ago•0 comments

Show HN: Poxture App checks 8 desk habits, No image, no account, no subscription

https://poxture.com/
1•ssv445•9m ago•0 comments

Ask HN: What non-AI products are you working on?

16•simonkk•10m ago•9 comments

Reading MAME 0.280's SNES PPU Window and Color-Math Path

https://danielcosenza.com/posts/rg-mame-snes-ppu-window-color-math-path/
1•frostbyte7•11m ago•0 comments

Build vs. Buy in IIoT: How Senior Engineers Evaluate Platforms vs. Custom Code

https://iiotjob.com/blog/build-vs-buy-in-iiot-how-senior-engineers-evaluate-platforms-vs-custom-code
1•ishikawa•11m ago•0 comments

For the First Time, Physicists Have Observed Light Reflecting Backward in Time

https://www.sciencealert.com/for-the-first-time-physicists-have-observed-light-reflecting-backwar...
1•tapper•11m ago•1 comments

Wood becomes strong, flexible and transparent with a new chemical method

https://phys.org/news/2026-12-wood-strong-flexible-transparent-chemical.html
1•bookofjoe•12m ago•1 comments

AWS research: AI systems are the fastest-growing target for threat actors

https://www.aboutamazon.com/news/aws/aws-madpot-ai-threat-intelligence
3•ersinesen•12m ago•0 comments

On Migration to Quantum-Safe Cryptography (PhD Thesis) [pdf]

https://orbilu.uni.lu/bitstream/10993/68937/1/thesis_final.pdf
1•honzaik•12m ago•1 comments

Airband: Keep AirPods in 48 kHz Stereo HFP while the microphone is active

https://tangled.org/kaeden.codes/airband
1•nerdypepper•15m ago•0 comments

Show HN: Venture News – HN for funding rounds

1•FailMore•15m ago•0 comments

Decoding, Prompting, and Agents

https://stochastic.blog/decoding-prompting-and-agents/
1•Anon84•18m ago•0 comments

Raku AI-Agent Skill

https://raku-advent.blog/2026/12/04/day-4-raku-ai-agent-skills/
2•antononcube•19m ago•0 comments

Show HN: Python script to help local agents connect Colab/pod easier with E2EE

https://github.com/chaosprint/podwire
1•chaosprint•20m ago•0 comments

The journey of a fast accessible web app: 25 years of traintimes.org.uk

https://www.youtube.com/watch?v=4S0RLnOtqN4
1•fanf2•20m ago•0 comments

Show HN: Asoapi – App Store intelligence API, remote MCP, and free ASO tools

https://asoapi.dev/
1•ghuuuif•20m ago•0 comments

Self-hosted runner security and the problem with persistent runners

https://bitrise.io/blog/post/github-actions-self-hosted-runner-security
1•toddgergey•21m ago•0 comments

Abundance and equality without teaching AI human values. 12 pages

https://github.com/WhitePhoenixDev/Least-Wrong-AI
1•NiklasHenkel•21m ago•0 comments

A Simple Compiler Tutorial [video]

https://www.youtube.com/watch?v=oeqokW6xVG8
1•surprisetalk•22m ago•0 comments

Two-State OpenTofu Drift Supervision on Proxmox

https://blog.auroraweb.com.au/posts/opentofu-two-state-drift-supervision/
1•jacobyz•24m ago•0 comments

US banks are sharing Social Security numbers with advertising giants Reddit, X

https://www.melurna.com/research/psa-online-forms-can-collect-your-data-even-if-you-never-hit-sub...
4•DeepLogin•24m ago•1 comments

Palmer Luckey's Slab, Explained: A 1k-Year Seastead Built for American Indust

https://iiotjob.com/blog/palmer-luckey-slab-seastead-explained
3•ishikawa•25m ago•0 comments

New Qwen4-35B-A3B model knew it didn't know the book. Then it made up three more

https://huggingface.co/unsloth/Qwen4-35B-A3B-GGUF/discussions/10
1•Halbstein•25m ago•0 comments

Canadian streamer detained by ICE days after ride down L.A. River during storm

https://www.latimes.com/california/story/2026-12-03/canadian-streamer-detained-by-ice-days-after-...
1•PaulHoule•28m ago•1 comments