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

NASA topples towers used to test Saturn rockets, space shuttle

https://arstechnica.com/space/2026/01/nasa-topples-towers-used-to-test-saturn-rockets-space-shuttle/
1•bookofjoe•30s ago•0 comments

How to find remote dev jobs with no country restrictions

https://relocateme.substack.com/p/how-to-find-remote-from-anywhere
1•andrewstetsenko•1m ago•0 comments

Show HN: Swiftward – on-prem policy engine for LLM guardrails and UGC moderation

https://github.com/disciplinedware/swiftward
1•joker3d•2m ago•2 comments

Mysterious YouTube video that's '140 years long' has everyone confused

https://www.dexerto.com/youtube/mysterious-youtube-video-thats-140-years-long-has-everyone-confus...
1•croes•2m ago•0 comments

The New Compiler Stack: A Survey on the Synergy of LLMs and Compilers

https://hgpu.org/?p=30502
1•mpweiher•3m ago•0 comments

Proton Lumo 1.3: Introducing Projects, a better way to organize and create

https://proton.me/blog/lumo-1-3
2•teekert•4m ago•0 comments

Intent Realization Fidelity: Verifying That Systems Do What They Claim

https://zenodo.org/records/18166827
1•takko_the_boss•6m ago•0 comments

Signal creator Moxie Marlinspike wants to do for AI what he did for messaging

https://arstechnica.com/security/2026/01/signal-creator-moxie-marlinspike-wants-to-do-for-ai-what...
2•fleahunter•7m ago•0 comments

CP/M-86's delay handed Microsoft the keys to the kingdom

https://www.theregister.com/2026/01/12/why_cpm86_was_late/
3•rbanffy•8m ago•0 comments

Show HN: Img2img.net – Effortless AI Image Style Transfer Online

https://img-2-img.net
2•bozhou•10m ago•0 comments

Code Is Cheap. Coherence Is the New Bottleneck

2•moshael•10m ago•1 comments

KristelTech/Doomscrolling_Blocker A program that detects when on your phone

https://github.com/kristelTech/Doomscrolling_Blocker
2•rbanffy•11m ago•0 comments

The oceans just keep getting hotter

https://arstechnica.com/science/2026/01/the-oceans-just-keep-getting-hotter/
1•hakkikonu•11m ago•0 comments

Show HN: Xweather Live – real-time global weather maps rendered with WebGL

https://live.xweather.com/
1•unstyledcontent•14m ago•0 comments

Diffray – Open-source multi-agent code review CLI

https://github.com/diffray/diffray
1•i_strelov•17m ago•1 comments

Three LLMs in a Trenchcoat

https://buildsharerepeat.substack.com/p/three-llms-in-a-trenchcoat
2•benmann•17m ago•1 comments

The collapse of "Human Signal" on the web

https://agoranet.substack.com/p/the-collapse-of-human-signal
2•kisamoto•18m ago•2 comments

Show HN: Native app to scaffold and build Cursor-ready Next.js projects

https://vibecodingstarterkit.io
1•dpitkevics•19m ago•1 comments

Show HN: Aurora – open-source cross-platform music player (lossless)

https://github.com/bbbneo333/aurora/releases/tag/v1.0.0
1•bbbneo333•19m ago•0 comments

Making AI helpful for everyone, including the planet

https://sustainability.google
1•frizlab•19m ago•0 comments

Show HN: RAGGuard – Permission-aware retrieval for RAG applications

2•maximus242•19m ago•0 comments

Ask HN: Browser Use, Skyvern or Other for Automating Directory Submission

1•onescales•23m ago•0 comments

Leaving the Matrix

https://raccoonland.us/posts/leaving-the-matrix/
2•edent•25m ago•0 comments

Show HN: Haraltd – A cross-platform Bluetooth daemon with a JSON-based RPC

https://github.com/bluetuith-org/haraltd
3•darkhz•26m ago•0 comments

Show HN: Talkolia – An AI chatbot that understands your website

https://www.talkolia.co/
1•kokau•27m ago•0 comments

The J Incunabulum

https://tony-zorman.com/posts/j-incunabulum.html
1•fanf2•28m ago•0 comments

Ask HN: How do you use AI tools when learning unfamiliar code?

1•Rperry2174•28m ago•1 comments

The UK is shaping a future of Precrime and dissent management

https://freedomnews.org.uk/2025/04/11/how-the-uk-is-shaping-a-future-of-precrime-and-dissent-mana...
4•robtherobber•31m ago•0 comments

Fundamental skills and knowledge you must have in 2026 for SWE

https://www.youtube.com/watch?v=Jr2auYrBDA4
1•ghuntley•34m ago•0 comments

The novelists who predicted our present

https://www.theguardian.com/books/2026/jan/10/mass-surveillance-the-metaverse-making-america-grea...
2•bookofjoe•34m ago•0 comments