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

Watching LLMs Think

https://www.atomic14.com/2026/02/19/watching-llms-think
1•iamflimflam1•57s ago•0 comments

Platforms hide ads and manipulation in their DOM – FB was the toughest

https://github.com/agentkites/attentionguard-extension/wiki/Platform-Comparison
2•aadivar•1m ago•0 comments

Honey bees navigate more precisely than previously thought

https://phys.org/news/2026-02-honey-bees-precisely-previously-thought.html
1•mhb•1m ago•0 comments

Omacon Comes to New York

https://world.hey.com/dhh/omacon-comes-to-new-york-e6ee93cb
1•linhns•2m ago•0 comments

I tested Claude Code and Codex for supply chain attacks. Both failed

https://vett.sh/blog/ai-agent-skills-supply-chain-attack
1•nikon•2m ago•0 comments

The $2k Laptop That Replaced My $200/Month AI Subscription

2•Raywob•3m ago•0 comments

Site is now webmention-aware

https://kevinboone.me/webmention.html
1•thomasjb•3m ago•0 comments

As memory shortage persists, vendor price quotes are not long remembered

https://www.theregister.com/2026/02/18/memory_shortage_persists_vendor_change_terms/
1•geekinchief•4m ago•0 comments

The 80% Power Lie

https://statmodeling.stat.columbia.edu/2026/02/19/the-80-power-lie/
1•Tomte•4m ago•0 comments

Learning KeyBee

https://entropicthoughts.com/learning-keybee
1•surprisetalk•5m ago•0 comments

Keybee: A Keyboard Designed for Smartphones

https://keybeekeyboard.com/
1•surprisetalk•5m ago•0 comments

Untapped Way to Learn a Codebase: Build a Visualizer

https://jimmyhmiller.com/learn-codebase-visualizer
1•surprisetalk•5m ago•0 comments

Cringeworthy in the Future

https://kevinkelly.substack.com/p/cringeworthy-in-the-future
1•surprisetalk•5m ago•0 comments

Testing Linux memory limits is a bit of a pain

https://utcc.utoronto.ca/~cks/space/blog/linux/MemoryLimitTestingPain
2•speckx•5m ago•0 comments

Accenture 'links staff promotions to use of AI tools'

https://www.theguardian.com/accenture/2026/feb/19/accenture-links-staff-promotions-to-use-of-ai-t...
1•akyuu•5m ago•0 comments

NSA and IETF, Part 5

https://blog.cr.yp.to/20260219-obaa.html
2•Tomte•6m ago•0 comments

International box-sizing Awareness Day

https://css-tricks.com/international-box-sizing-awareness-day/
1•hisamafahri•7m ago•0 comments

You Are NOT getting replaced [video]

https://www.youtube.com/watch?v=DjMrPqwLaiw
1•znpy•7m ago•0 comments

Show HN: AI agent audited its platform, got 80% wrong, rewrote its methodology

https://openseed.dev/blog/escape-hatch/
1•rsdza•8m ago•3 comments

Astronomers detect a solar system they say should not be possible

https://www.cnn.com/2026/02/12/science/solar-system-inside-out-planets
1•Brajeshwar•9m ago•0 comments

Show HN: Oura Ring 4, Thoughts?

https://kirkstechtips.com/oura-ring-4-review-the-smart-ring-finally-worth-the-hype/
2•daveshappy•9m ago•1 comments

Baby microbiomes in the West differ from those everywhere else

https://www.newscientist.com/article/2516131-how-baby-microbiomes-in-the-west-differ-from-those-e...
1•Brajeshwar•9m ago•0 comments

Taste for Makers (2002)

https://paulgraham.com/taste.html
1•Brajeshwar•9m ago•0 comments

Host Leadership

https://martinfowler.com/bliki/HostLeadership.html
1•donutshop•10m ago•0 comments

Show HN: CMV – Virtual memory for Claude Code sessions

https://github.com/CosmoNaught/claude-code-cmv
1•CosmoSantoni•10m ago•0 comments

Show HN: HyprVim – System-wide Vim modes in Hyprland with which-key HUD

https://github.com/uhs-robert/hyprvim
1•uhs-robert•13m ago•1 comments

US admin official threatens NY Fed economists – Krugman [video]

https://www.youtube.com/watch?v=lzZdxmSmBaM
2•burnt-resistor•15m ago•0 comments

Google Banning AI Ultra subscribers for using OpenCode while still charging them

https://old.reddit.com/r/google_antigravity/comments/1r2hnn8/ultra_user_get_banned/
3•smashah•16m ago•0 comments

Meta CEO Knew Kids Were Being Hurt and He Covered It Up

https://dispatch.techoversight.org/email/23724686-b700-489a-9677-327799e75e5e/
4•speckx•16m ago•0 comments

56% of PyPI malware runs at install, so I sandboxed pip with eBPF

11•otsmane_ahmed•17m ago•0 comments