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

Atlassian's Pragmatic Drag and Drop

https://github.com/atlassian/pragmatic-drag-and-drop
1•h4ch1•6m ago•0 comments

More than half of the U.S. says AI is likely to harm them

https://www.latimes.com/business/story/2026-03-31/more-than-half-of-u-s-says-ai-is-likely-to-harm...
2•1vuio0pswjnm7•7m ago•0 comments

Angry parents: 'Phones should be illegal for kids until they're 18 '

https://nypost.com/2026/03/30/lifestyle/parents-push-for-legislative-action-after-meta-court-ruli...
5•1vuio0pswjnm7•8m ago•0 comments

AI Agent virtual cards with Privacy

https://agents.privacy.com
2•Johnie•8m ago•1 comments

Gaim 3 Exists

https://gaim.imfreedom.org
2•rw_grim•8m ago•0 comments

Codemaxxed: 68M+ lines of code a day and growing

https://github.com/jshchnz/codemaxxed
2•jshchnz•9m ago•0 comments

Shor's algorithm is possible with as few as 10k reconfigurable atomic qubits

https://arxiv.org/abs/2603.28627
1•handfuloflight•9m ago•0 comments

Claude Code's Leak: Every Hardcoded Vendor and Tool

https://amplifying.ai/research/claude-code-hardcoded-vendors
5•edwin•9m ago•0 comments

Show HN: SoloAI – AI-powered Business OS for founders

3•vinaychaudhary•10m ago•0 comments

Starlink satellite breaks apart into "objects"; SpaceX confirms "anomaly"

https://arstechnica.com/tech-policy/2026/03/starlink-satellite-breaks-apart-into-tens-of-objects-...
2•SilverElfin•10m ago•1 comments

RFC Esolang – RFCs as executable programs

https://esolangs.org/wiki/RFCEsolang
2•beefburger•12m ago•1 comments

Austria Blocks Chinese JD.com's Acquisition of MediaMarkt

https://www.vindobona.org/article/austria-blocks-chinese-jd-com-rsquo-s-acquisition-of-mediamarkt...
1•doener•12m ago•0 comments

Chemical Endurance: The Pharmacology of Russian Military Stimulant Programs

https://www.ade.pt/chemical-endurance-the-pharmacology-of-russian-military-stimulant-programs/
1•A_D_E_P_T•13m ago•0 comments

Show HN: Memdir – local, file-based memory for AI agents

https://github.com/artiebits/memdir
1•artiebits•13m ago•0 comments

Keploy – Traffic-Based Automated API Test Generator

https://github.com/keploy/keploy
2•keploy•13m ago•1 comments

What's new in Swift: March 2026 Edition

https://swift.org/blog/whats-new-in-swift-march-2026/
1•frizlab•15m ago•0 comments

Meraki MX Security: How Cloud-Managed Firewalls Protect Multi-Site Networks

https://meraki.deal/blogs/news/meraki-mx-security-cloud-managed-firewalls-multi-site-networks
1•novbox•18m ago•0 comments

Show HN: Browserbeam – a browser API built for AI agents

https://browserbeam.com/
2•nyku•23m ago•0 comments

KPMG Faces Allegations of Blown Audit in Private Credit Collapse

https://www.bloomberg.com/news/articles/2026-03-31/kpmg-faces-audit-failure-allegations-over-brid...
3•toomuchtodo•23m ago•1 comments

1-bit LLMs are here

https://twitter.com/PrismML/status/2039049400190939426
3•mathewpregasen•23m ago•0 comments

Unhealthiest Foods on the Planet, According to Science

https://techfixated.com/100-unhealthiest-foods-on-the-planet-according-to-science/
2•benlarweh•23m ago•1 comments

Show HN: Postgres data cluster by meaning (semantic search and visualization)

https://github.com/varmabudharaju/pgsemantic
1•varmabudharaju•24m ago•0 comments

Game Pirates Beat Denuvo with Hypervisor Bypasses

https://torrentfreak.com/game-pirates-beat-denuvo-with-hypervisor-bypasses-irdeto-promises-counte...
1•ls612•26m ago•0 comments

NASA plans to send a nuclear-powered spacecraft to Mars in 2028

https://www.science.org/content/article/nasa-plans-send-nuclear-powered-spacecraft-mars-2028
1•mpweiher•30m ago•1 comments

Why Some Criticisms Matter More Than Others

https://gnupg.org/blog/20260320-some-criticism-matter.html
1•upofadown•30m ago•0 comments

Karakuri Mechanical Art

https://karakurist.jp/
2•marukodo•33m ago•0 comments

Show HN: Tama96 – A virtual pet for your desktop, terminal, or AI agent

https://www.tama96.com/
4•siegers•33m ago•0 comments

Clawbernetes. Infra to deploy agents fast with enterprise grade features

https://clawbernetes.org
1•augustinczw•34m ago•1 comments

Dial9: A Flight Recorder for Tokio

https://tokio.rs/blog/2026-03-18-dial9
1•lukastyrychtr•36m ago•0 comments

French Senate votes to block social media access for under-15s

https://www.lbc.co.uk/article/france-social-media-ban-vote-5HjdX8R_2/
3•austinallegro•37m ago•1 comments