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

Pentagon might ask contractors to certify they don't use Anthropic's Claude

https://www.wsj.com/politics/national-security/woke-ai-spat-escalates-between-pentagon-and-anthro...
1•fortran77•39s ago•1 comments

RageDetector – detects aggressive typing and forces me to calm down

https://github.com/AI-Architechs/RageDetector
2•karan_dev•6m ago•1 comments

Lentando Private Habit Tracker

https://frankforce.com/lentando-%f0%9f%90%a2-private-habit-and-substance-tracker/
1•memalign•11m ago•0 comments

Why Europe doesn't have a Tesla

https://worksinprogress.co/issue/why-europe-doesnt-have-a-tesla/
1•trojanalert•11m ago•1 comments

SnkvDB – Single-header ACID KV store using SQLite's B-Tree engine

https://github.com/hash-anu/snkv
1•usefulcat•11m ago•0 comments

Software Engineering in 2026

https://twitter.com/Adityapandeydev/status/2023620303126229276
1•keepamovin•11m ago•1 comments

Ask HN: Is the definition of AI that it can fool people?

2•WhatsTheBigIdea•13m ago•0 comments

Choose Your Fictions Well (2010)

http://henryjenkins.org/blog/2010/04/choose_your_ficitons_well.html
1•1970-01-01•14m ago•0 comments

Tell HN: Google Allegedly Sent NSFW "Grok" Notification to People

1•surprisetalk•14m ago•0 comments

If AI Agents Do the Work, Who Pays for the Seat?

https://www.linkedin.com/pulse/ai-agents-do-work-who-pays-seat-c-max-magee-eygwe
2•wawayanda•25m ago•0 comments

Agent Skills Hub – Security first directory for AI agent skills and MCP

https://agentskillshub.dev/
1•cana2026•26m ago•0 comments

Show HN: TerminalRant – Mastodon for developers who live in the terminal

https://github.com/CrestNiraj12/TerminalRant
1•crestniraj•31m ago•0 comments

Show HN: QuickStaging – AI virtual staging tool built by a 19yo student

https://getquickstaging.com
1•kadiran•33m ago•1 comments

From Claude Code to Figma

https://www.figma.com/blog/introducing-claude-code-to-figma/
1•msolujic•38m ago•0 comments

Wi-Fi 7's Best Feature Doesn't Work (Yet) [video]

https://www.youtube.com/watch?v=-5o_Qu3XToQ
1•pss314•40m ago•0 comments

Show HN: StatusPing – Uptime monitoring for $9/mo

https://statusping.dev
1•pdtech_apps•42m ago•1 comments

Pidgin Plugins

https://pidgin.im/plugins/
1•xnx•43m ago•0 comments

How the Olympics Are Mixed Live 4k Miles Away [video]

https://www.youtube.com/watch?v=ZAJSaN8Z3Ik
1•geerlingguy•51m ago•0 comments

Meshcore IRC Bridge

https://github.com/daniel-j-h/meshcore-irc-bridge
1•rickcarlino•51m ago•0 comments

Copper-rs the deterministic OS for robotics gets full observability

https://www.copper-robotics.com/whats-new/unlock-full-observability-with-copper-rs-v013
2•gbin•53m ago•0 comments

Show HN: Verified 16.7M Mac chip architecture on $60 Android phone

2•jltackett•55m ago•0 comments

Multi-Language MCP Server Performance Benchmark

https://www.tmdevlab.com/mcp-server-performance-benchmark.html
1•oshanz•58m ago•1 comments

Stop building generic AI chatbots: 45% of support leaders are ahead

https://ideatolaunch.co/blog/why-the-world-doesn-t-need-another-generic-ai-chatbot-and-how-to-bui...
2•DonAj•1h ago•0 comments

A Local-Algebraic Route to Emergent Gravity (100 Pages)

1•berndtzl•1h ago•1 comments

Cultivating Praxia

https://tasshin.com/blog/cultivating-praxia/
2•tasshin•1h ago•0 comments

Managing Docker Composes via GitOps

1•anuragxd•1h ago•0 comments

An update on upki

https://discourse.ubuntu.com/t/an-update-on-upki/77063
3•pabs3•1h ago•0 comments

Google trying to recover footage from other Guthrie home cameras

https://www.youtube.com/watch?v=658FsUNHZ0Q
1•busymom0•1h ago•2 comments

Way to Understand the Irish Economy

https://stephenkinsella.substack.com/p/the-best-way-to-understand-the-irish
2•paulpauper•1h ago•0 comments

Mature Cultural Desire

https://www.overcomingbias.com/p/mature-cultural-desire
2•paulpauper•1h ago•0 comments