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•6mo 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

Phytomining

https://en.wikipedia.org/wiki/Phytomining
1•cainxinth•2m ago•0 comments

Circuit Sparsity

https://huggingface.co/openai/circuit-sparsity
1•ray__•6m ago•0 comments

Linux System Calls

https://www.matheusmoreira.com/articles/linux-system-calls
1•enz•6m ago•0 comments

Arizona city rejects data center after AI lobbying push

https://www.politico.com/news/2025/12/12/arizona-city-rejects-data-center-after-ai-lobbying-push-...
4•ohjeez•17m ago•1 comments

From profiling to kernel patch: the journey to an eBPF performance fix

https://rovarma.com/articles/from-profiling-to-kernel-patch-the-journey-to-an-ebpf-performance-fix/
2•todsacerdoti•17m ago•0 comments

Ask HN: Are You Considering Leaving Tech All Together?

3•karakoram•20m ago•5 comments

Compare compensation and rating for different companies when looking for a job

https://compchart.fyi/
1•jacks4jokers•20m ago•0 comments

Skills vs. Dynamic MCP Loadouts

https://lucumr.pocoo.org/2025/12/13/skills-vs-mcp/
1•ingve•22m ago•0 comments

Is spec-driven development the end of Agile software development?

https://www.sicpers.info/2025/12/is-spec-driven-development-the-end-of-agile-software-development/
1•ingve•23m ago•0 comments

SpaceX IPO at $1.5T Valuation Would Be 10x Larger Than Biggest VC-Backed Listing

https://news.crunchbase.com/public/spacex-ipo-1-5t-valuation-would-break-record/
2•geox•23m ago•1 comments

Some surprising things about DuckDuckGo you probably don't know

https://gabrielweinberg.com/p/some-surprising-things-about-duckduckgo
4•ArmageddonIt•24m ago•1 comments

HyperCard on the Macintosh

https://stonetools.ghost.io/hypercard-mac/
1•tonyedgecombe•26m ago•0 comments

Why We Loved Sierra Games (2015) [video]

https://www.youtube.com/watch?v=wua96SI6SBE&list=PLPAVYgFfeddJzax1X4VUj69Z1Vs4PqGlA&index=1
1•ewmailing•27m ago•0 comments

Firefox ResistFingerprinting

https://support.mozilla.org/en-US/kb/resist-fingerprinting
2•dtj1123•28m ago•0 comments

Google plans to power a data center with fossil fuels with almost no emissions

https://theconversation.com/google-plans-to-power-a-new-data-center-with-fossil-fuels-yet-release...
4•PaulHoule•37m ago•1 comments

A plain-language proposal to enforce fiscal accountability in Congress

https://add28th.org
1•concerneddude•37m ago•1 comments

Show HN: Open-Source Project Discovery and Analytics

https://gitdb.net
1•alvinunreal•38m ago•0 comments

21 Lessons from 14 Years at Google

https://addyo.substack.com/p/21-lessons-from-14-years-at-google
2•rmason•38m ago•0 comments

Now witness the power of this operational Fediverse – Terence Eden's Blog

https://shkspr.mobi/blog/2025/11/now-witness-the-power-of-this-fully-operational-fediverse/
3•janandonly•39m ago•0 comments

Prohibition tossed a wet blanket on America's inventors

https://www.atlasobscura.com/articles/things-invented-in-bars
1•fanf2•40m ago•0 comments

Spaw – AI music platform for making banging beats with text

https://drive.google.com/file/d/1SUk7x7xSMMjne9jwDVy4w0wiOuAHGdu9/view?usp=sharing
1•ade_code•40m ago•1 comments

Does my key fob have more computing power than the Lunar lander?

https://www.buzzsprout.com/2469780/episodes/18340142-17-does-my-key-fob-have-more-computing-power...
1•jammcq•40m ago•2 comments

China has invented a whole new way to do innovation

https://www.noahpinion.blog/p/china-has-invented-a-whole-new-way
3•bookofjoe•40m ago•0 comments

Show HN: I built a "Headless CMS" for my resume (Next.js and Puppeteer)

1•lpipe•41m ago•0 comments

Velocity Coding

https://0thernet.substack.com/p/velocity-coding
2•handfuloflight•43m ago•0 comments

Show HN: Free API for REVE EEG Foundation Model

https://web-production-73111.up.railway.app/docs
1•briandaley26•44m ago•0 comments

Show HN: I built a small tool to track receipts and warranty dates

https://www.retreat-app.tech/
1•temidaradev•48m ago•0 comments

How to Avoid IaC Drift

https://newsletter.masterpoint.io/p/how-to-avoid-iac-drift
1•mooreds•51m ago•0 comments

Show HN: A Grafana you can share with anyone

https://github.com/towlabs/dashfrog
1•mehdig10•52m ago•0 comments

GitHub in 2025

https://redmonk.com/sogrady/2025/11/07/github-2025/
1•mooreds•52m ago•0 comments