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

CVE-2025-13032: Entering and Breaking the Avast Antivirus Sandbox Part 2

https://www.safateam.com/intelligence-hub/research/technical-articles/cve-2025-13032-entering-and...
1•safateam•1m ago•0 comments

A congressional representative just proposed killing America's border tower pro

https://www.technologyreview.com/2026/09/23/1145002/a-congressional-representative-just-proposed-...
1•joozio•1m ago•0 comments

The Efficiency-Throughput Gap with GitHub Copilot

https://cacm.acm.org/research/beyond-the-hype-the-efficiency-throughput-gap-with-github-copilot/
1•fscaramuzza•2m ago•0 comments

Prism Inference

https://prisminference.com
1•handfuloflight•7m ago•0 comments

How to Draw Anything(2025) [video]

https://www.youtube.com/watch?v=-UBbFNeY38k
2•num42•9m ago•1 comments

Jensen Huang says with AI 'in order to save you, they've got to hurt you first.'

https://www.theverge.com/tech/1000140/jensen-huang-nvidia-ai-energy-climate-change-supervillain
3•pera•12m ago•1 comments

Basic Linear Algebra Subprograms (BLAS)

https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms
1•peter_d_sherman•22m ago•0 comments

CozyToolkit – Free everyday tools for creators

https://cozytoolkit.com/
1•SamuelYMChen•33m ago•0 comments

The moon matters NASA chief: China may deny access to Moon's South Pole

https://arstechnica.com/space/2026/09/nasa-chief-concerned-china-may-deny-access-to-parts-of-sout...
1•worik•34m ago•0 comments

Entrepreneurship and Industry in Europe

https://eudata.vercel.app/
3•duck•35m ago•0 comments

Show HN: Reteach – AI tutor that feels human

https://www.reteach.study/
3•antariksh_verma•38m ago•0 comments

Google plans first test ofAl chips in space under Project Suncatcher

https://blog.google/innovation-and-ai/technology/research/google-project-suncatcher/
2•fork-bomber•43m ago•3 comments

London's schools are running out of children

https://www.ft.com/content/5b019594-5b20-479a-8549-7b564127eb3f
3•2dvisio•43m ago•0 comments

Just how hot and dry was your summer? – UK postcode lookup

https://www.bbc.co.uk/news/articles/cy9zvw47v90o
3•ColinEberhardt•43m ago•0 comments

AMBA – Free and Open Advanced Microcontroller Bus Architecture

https://www.arm.com/architecture/system-architectures/amba
1•peter_d_sherman•45m ago•1 comments

About Those Property Taxes

https://pxlnv.com/linklog/data-centre-property-taxes/
1•danaris•50m ago•0 comments

Show HN: Lift and Coast (Browser based F1 game)

https://lift-and-coast.vercel.app
2•Hussain04•51m ago•0 comments

Recipe for Disaster v1.0

1•stpedgwdgfhgdd•53m ago•1 comments

Show HN: Jevper – an LLM API client constrained to the Jev wire format

https://github.com/zhulinchng/jevper
2•czl_my•54m ago•0 comments

Extracting and Characterizing Hidden Chain-of-Thought in Frontier Models

https://arxiv.org/abs/2609.26637
1•jumploops•55m ago•0 comments

Control-Token Injection Suppresses Chain-of-Thought and Defeats Reasoning-Based

https://arxiv.org/abs/2609.27542
1•sbulaev•57m ago•0 comments

Show HN: A single-use authorization boundary in Rust

3•Founderarcstone•59m ago•0 comments

Peter Thiel slams pope's AI encyclical as gift to Chinese Communist Party

https://www.politico.com/news/2026/09/24/peter-thiel-slams-popes-ai-encyclical-as-gift-to-chinese...
4•vrganj•1h ago•1 comments

Oldest recorded voices, haunted dolls, and more from Tempest Instruments

https://cdm.link/oldest-recorded-voices-haunted-dolls-and-more-from-tempest-instruments/
2•bryanrasmussen•1h ago•0 comments

I stopped letting LLMs do arithmetic

https://medium.com/@jwbobbink/best-search-console-mcp-in-2026-gsc-wizard-7a63f91191ca
6•jwbobbink•1h ago•0 comments

Tell HN: No company scaled revenue as fast as AI companies

2•silexia•1h ago•1 comments

700 MB/s of Kafka throughput, on Postgres

https://rynr.dev/blog/700mbskafgres/
4•theanonymousone•1h ago•0 comments

AI Agents are breaking into Online Retailers for $25 a target

https://gambit.security/blog-posts/autonomous-ai-agents-online-retailers-25-a-company
4•geox•1h ago•0 comments

Taste Bench

https://www.omneky.com/tastebench
7•hsenju•1h ago•1 comments

Show HN: Knowledge Signal – A JEV-powered rubric assessment tool for study notes

https://github.com/sumant1122/knowledge-signal
3•paperplaneflyr•1h ago•0 comments