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

Adventures with Chimera Linux

https://blog.xiaket.org/2025/chimera.html
1•todsacerdoti•7m ago•0 comments

Show HN: New VSCode extension: Objectify Params

https://marketplace.visualstudio.com/items?itemName=eridien.objectify-params
1•mchahn•7m ago•0 comments

Popping-and-Locking-Zed-Theme

https://github.com/randoneering/popping-and-locking-zed-theme
1•todsacerdoti•10m ago•0 comments

Understanding copy-on-write: why Redis needs memory overcommit

https://frn.sh/posts/cow/
1•shellpipe•13m ago•0 comments

Careless Whisper: Silently Monitoring Users on Mobile Instant Messengers

https://arxiv.org/abs/2411.11194
1•wakawaka28•16m ago•1 comments

An ancient foot reveals a hidden human cousin

https://www.sciencedaily.com/releases/2025/11/251128050512.htm
1•ashishgupta2209•17m ago•0 comments

Surely You're Joking, Mr. Feynman

https://en.wikipedia.org/wiki/Surely_You%27re_Joking,_Mr._Feynman!
1•nomilk•24m ago•0 comments

Tim Cook says he uses an iMac G4 as a monitor

https://www.theverge.com/2024/10/22/24276142/tim-cook-wsj-interview-every-apple-product-every-day
1•uneven9434•32m ago•1 comments

I made a free AUD/USD economic announcements dashboard for FOREX trading

https://fxmacrodata.com/dashboard/AUD_USD
1•roberttidball•36m ago•1 comments

Wine 10.20 – Run Windows Applications on Linux, BSD, Solaris and macOS

https://gitlab.winehq.org/wine/wine/-/releases/wine-10.20
1•neustradamus•40m ago•0 comments

Why I'm Shutting Down Lorelight (and What It Taught Me About Geo)

https://growwithless.com/shutting-down-lorelight/
1•anshulbhide•42m ago•1 comments

New record: Over 350k students in Japan miss school

https://www3.nhk.or.jp/nhkworld/en/news/20251029_15/
1•rguiscard•46m ago•0 comments

Tobacco Imagery in Movies Surged in 2024

https://truthinitiative.org/press/press-release/tobacco-imagery-movies-surged-2024-exposing-milli...
2•cyrusradfar•48m ago•0 comments

Ask HN: How do you inspect Avro/Protobuf records during debugging?

1•conqueso•48m ago•0 comments

Uncertainty Quantification for Auto Formalization [NeurIPS 2025]

https://github.com/DebarghaG/grammars-formal-uncertainty
1•barthelomew•54m ago•0 comments

Tokyo Tower of Babel

https://simple.wikipedia.org/wiki/Tokyo_Tower_of_Babel
2•xqcgrek2•55m ago•0 comments

Show HN: Free Z-Image – A Fast, High-Quality AI Image Generator for Creators

https://aiocmaker.com/z-image
2•qianjin1979•56m ago•0 comments

Shrinking Elephants: Managing large projects with Gradle

https://engineering.block.xyz/blog/shrinking-elephants
1•rileymichael•59m ago•0 comments

LLMs write code without compilers, could they do philosophy without logic?

https://lywald.github.io/blog_by_claude/turtles.html
1•ycosynot•1h ago•0 comments

AniFlow – Yet another AI anime image generator

https://animify.app
1•ashing•1h ago•1 comments

Show HN: HitCommit – Pay Devs to Solve Your GitHub Issues

https://hitcommit.com
1•nerdzoid•1h ago•0 comments

Lecture Summarization by Extracting Content from Whiteboards (2018)

https://github.com/bhargavaurala/accessmath-icfhr2018
1•downboots•1h ago•0 comments

DPRKDetector – Find North Korea-Affiliated Followers on X

https://dprkdetector.app
1•michael-bey•1h ago•0 comments

Fixing a Radare2 Bug from the Windows Cmd

https://trufae.github.io/aiblog/WinCdbNull-en.html
1•ibobev•1h ago•0 comments

Show HN: Pgm-extra-rs – High-performance learned index structures for Rust

https://github.com/itsfoxstudio/pgm-extra-rs
1•rpunkfu•1h ago•0 comments

GameShell: A game to learn how to use standard commands in a Unix shell

https://github.com/phyver/GameShell
3•ibobev•1h ago•0 comments

System 7 natively boots on the Mac mini G4

https://macos9lives.com/smforum/index.php?topic=7711.0
67•ibobev•1h ago•5 comments

Neato vacuum robots to stop working

https://support.neatorobotics.com/support/solutions/articles/204000073686-announcement-6th-oct-2025
3•simonlondon•1h ago•3 comments

Amazon unveils Starlink rival capable of up to 1 Gbps satellite internet

https://www.tomshardware.com/networking/amazon-leo-ultra-enterprise-grade-terminal-targets-up-to-...
4•thelastgallon•1h ago•1 comments

Restoring Ability Through Engineering

https://www.patreon.com/posts/143860573
1•sloped•1h ago•0 comments