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

1•eibrahim•9s ago

Onion Futures Act

https://en.wikipedia.org/wiki/Onion_Futures_Act
1•r0f1•1m ago•0 comments

How to Make a Damn Website

https://lmnt.me/blog/how-to-make-a-damn-website.html
1•todsacerdoti•2m ago•0 comments

Ask HN: Job seekers, what's working / not working?

1•Jabbs•3m ago•0 comments

Smart Glasses Would Adjust Focus on the Fly Based on Your Eye Movements

https://www.cnet.com/health/personal-care/ixi-eyewear-smart-glasses-autofocus-lenses/
1•smurda•4m ago•0 comments

Show HN: I built Lexica, a bot that texts you a Word-of-the-Day every morning

https://lexica.io
1•sestarkman•6m ago•0 comments

Claude Shannon's randomness-guessing machine

https://www.loper-os.org/bad-at-entropy/manmach.html
1•Kotlopou•6m ago•0 comments

The news media blew it again: iOS 26 adoption measured only third-party browsers

https://lapcatsoftware.com/articles/2026/1/3.html
1•frizlab•7m ago•0 comments

Traditional NLP is not dead

https://alex-jacobs.com/posts/beatingbert/
1•tacoooooooo•7m ago•0 comments

Progressive Disclosure of Agent Tools from the Perspective of CLI Tool Style

https://github.com/musistudio/claude-code-router/blob/main/blog/en/progressive-disclosure-of-agen...
1•musistudio•8m ago•1 comments

Show HN: I got tired of "Reliability Spaghetti," so I monkeypatched PydanticAI

1•steer_dev•10m ago•0 comments

Cue Does It All, but Can It Literate?

https://xlii.space/cue/cue-does-it-all-but-can-it-literate/
2•xlii•10m ago•0 comments

The Chinese Company Taking on the Memory-Chip Giants

https://www.wsj.com/tech/the-chinese-company-taking-on-the-worlds-memory-chip-giants-78dfea55
1•fortran77•10m ago•1 comments

Digital detox isn't enough: how technology addiction changes your brain

https://medium.com/@6thMind/digital-detox-isnt-enough-how-technology-addiction-changes-your-brain...
2•smanuel•10m ago•0 comments

Zorgdomein Integration: A Guide to Secure .NET and Azure Architecture

https://plakhlani.in/healthcare/bidirectional-patient-data-exchange-with-zorgdomein/
1•prashantl•11m ago•0 comments

Reproducing DeepSeek's MHC: When Residual Connections Explode

https://taylorkolasinski.com/notes/mhc-reproduction/
3•taykolasinski•12m ago•1 comments

Dina Powell McCormick Joins Meta as President and Vice Chairman

https://about.fb.com/news/2026/01/dina-powell-mccormick-joins-meta-as-president-and-vice-chairman/
2•iamben•15m ago•0 comments

Yt-Dlp Online – Simple and Free YouTube Video Downloader

https://yt-dlp.online/
1•blackomw•15m ago•0 comments

Why 3D doesn't work and never will (2011)

https://www.rogerebert.com/roger-ebert/why-3d-doesnt-work-and-never-will-case-closed
2•Antibabelic•15m ago•0 comments

Explore eCommerce statistics and KPI benchmarks to see how you stack up

https://marketing.dynamicyield.com/benchmarks/
1•mooreds•17m ago•0 comments

Show HN: VL-JEPA(Joint Embedding Predictive Architecture for Vision-Language) [video]

https://www.youtube.com/shorts/aHkfDrOB9Lg
2•JosefAlbers•17m ago•0 comments

Create a Desktop Using Windows 3.10 from Windows 95 Installer

https://tech.lgbt/@nina_kali_nina/115871854239918291
1•birdculture•17m ago•0 comments

Foley (Sound Design)

https://en.wikipedia.org/wiki/Foley_(sound_design)
1•hypertexthero•17m ago•0 comments

A polyfill for the HTML switch element

https://blog.tomayac.com/2026/01/12/a-polyfill-for-the-html-switch-element/
1•tomayac•20m ago•0 comments

The brief rise and retreat of Generation Z in Mexico

https://english.elpais.com/international/2025-12-27/the-brief-rise-and-retreat-of-generation-z-in...
1•PaulHoule•20m ago•0 comments

Show HN: Wirey – Socket testing client with JavaScript scripting

https://github.com/yunjywork/wirey
1•yunjywork•21m ago•0 comments

Bringing uv-like performance leaps to Python HTTP

https://jawah.github.io/tech/
1•mesahm•23m ago•0 comments

20-year-olds walk up 60 floors of Osaka high-rise to celebrate adulthood

https://www3.nhk.or.jp/nhkworld/en/news/20260112_11/
2•kyleblarson•24m ago•0 comments

Lock-Picking Robot

https://github.com/etinaude/Lock-Picking-Robot
1•p44v9n•27m ago•0 comments

Show HN: DogEar – A tool for book retention via environmental priming

https://getdogear.com/
1•illhangon•27m ago•1 comments