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

A Number with a Shadow

https://campedersen.com/tang
1•davedx•28s ago•0 comments

Ask HN: Alternatives to GH Actions?

1•BhavdeepSethi•1m ago•0 comments

Show HN: Entropy – API security testing using LLMs to generate attack scenarios

https://github.com/arjinexe/entropy-chaos
1•arjinexe•2m ago•0 comments

Engineering over Enforcement

https://www.contraption.co/engineering-over-enforcement/
1•philip1209•4m ago•0 comments

Show HN: Tune on a real Boss TU-3

https://realtuner.online/
1•smith-kyle•4m ago•0 comments

Can coding agents relicense open source through a "clean room" implementation?

https://simonwillison.net/2026/Mar/5/chardet/
2•MindGods•4m ago•1 comments

B.C.'s daylight-time decision: 'Scientifically a bad idea,' says key researcher

https://www.cbc.ca/news/canada/bc-daylight-saving-health-concerns-9.7114947
1•LostMyLogin•6m ago•2 comments

Canon's rumored retro camera could be its own X Half

https://m.dpreview.com/articles/1229448777/canon-analog-concept-camera-cpplus-x-half
1•PaulHoule•7m ago•0 comments

Malicious NPM "Sandworm" packages targeting AI toolchains and DevSecOps

https://phoenix.security/sandworm-mode-npm-supply-chain-worm/
1•nuzzl•8m ago•1 comments

Show HN: I built an AI tool that analyzes your Discogs vinyl collection

https://recordsv.lt
1•herrstagl•8m ago•0 comments

Spectre I prevents smart devices and AI recorders from picking up your voice

https://www.deveillance.com/
2•world2vec•8m ago•0 comments

Google isn't waiting – the 30 percent Android app store fee is dead

https://www.theverge.com/policy/889252/google-app-store-fee-reduction-20-percent-epic-v-google
2•agent86•9m ago•1 comments

Cameras built to police Iranians became the regime's Achilles' heel

https://royapakzad.substack.com/p/youre-welcome-mr-supreme-leader
2•benbreen•10m ago•0 comments

Infinite Jest belongs in the techno-optimist canon

https://danco.substack.com/p/infinite-jest-belongs-in-the-techno
1•surprisetalk•11m ago•0 comments

I made my whole-home humidifier slightly less terrifying [video]

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

Archival Selves

https://contraptions.venkateshrao.com/p/archival-selves
1•surprisetalk•11m ago•0 comments

GitHub Copilot is now #3 in VS Code installs behind Claude/OpenAI

https://twitter.com/AznWeng/status/2029575624591913132
1•AznHisoka•11m ago•0 comments

Comprehensive check and Productivity tool for vibecoders. Has a team mode too

https://github.com/akshan-main/vibe-check/blob/main/README.md
1•frutigeraerosol•11m ago•1 comments

Research shows 41 US states are getting warmer, all in slightly different ways

https://phys.org/news/2026-02-states-warmer-slightly-ways.html
1•bikenaga•11m ago•0 comments

Show HN: Selva – Amazon for AI Agents

https://www.useselva.com/
1•jpbonch•12m ago•0 comments

Galileo's handwritten notes found in ancient astronomy text

https://www.science.org/content/article/galileo-s-handwritten-notes-found-ancient-astronomy-text
1•tzury•12m ago•0 comments

So what project management tool you use to orchestrate your agent team?

1•autojunjie•13m ago•1 comments

Minimizing user research fraud in the age of agentic AI

https://www.buttonevents.com/blog/minimizing-user-research-fraud-in-the-age-of-agentic-ai
1•verdverm•14m ago•0 comments

My Git-worktree setup using worktrunk and caddy

https://xata.io/blog/my-git-worktree-setup-using-worktrunk-and-caddy
1•gk1•15m ago•0 comments

Pair Programming Is Having a Renaissance

https://twitter.com/dabit3/status/2029595180882698740
1•dabit3•15m ago•0 comments

The Great Transition

https://danielmiessler.com/blog/the-great-transition
1•gmays•17m ago•0 comments

Reverse-Engineering O2Jam Network

https://dev.cxo2.me/reversing-o2jam-network/
1•speps•17m ago•0 comments

Show HN: Ouroboros – Post-quantum P2P messenger with zero servers

https://github.com/OmarPrampolini/Ouroboros
1•OmarPrampolini•18m ago•0 comments

How can a MacBook Neo cost the same as an iPhone 17e?

https://www.reddit.com/r/hardware/s/TKr7XxexBU
2•nixass•18m ago•0 comments

Ask HN: Android tablet, iPad or e-ink tablet, which device for reading?

1•Bridged7756•19m ago•0 comments