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

Modern Developer Time Tracker

https://github.com/v1truv1us/rune
1•ankitg12•1m ago•0 comments

The Story of Mel (1983)

http://catb.org/jargon/html/story-of-mel.html
1•tosh•2m ago•0 comments

Brockman says OAI's compute cost for this year is $50B

https://twitter.com/GerritD/status/2051725302137770067
1•deanylev•4m ago•0 comments

Show HN: ContextWizard – AI context manager with undo and drag-drop

https://chromewebstore.google.com/
1•hacker2builder•7m ago•0 comments

Not your Weights, Not your Brain

https://mercurialsolo.github.io/posts/not-your-weights-not-your-brain/
1•blenderob•7m ago•0 comments

Building a DSL compiler on top of OpenAPI for UI generation

https://uigen-docs.vercel.app/blog/uigen-compiler-architecture
1•ombedzi•9m ago•0 comments

AI as a Mirror of Cognition: Compression, Prediction, and Semantic Drift [pdf]

https://github.com/therealitydrift/cognitive-drift-institute/blob/main/03_Research_and_Papers/03_...
1•realitydrift•10m ago•0 comments

Japan using game development engines for urban planning and disaster management

https://www.tomshardware.com/virtual-reality/japan-using-game-development-engines-for-urban-plann...
1•giuliomagnifico•11m ago•0 comments

The complexity of vibe coded apps (and why the dismissal is lazy)

https://www.getspectro.app/
1•ddtcx•13m ago•0 comments

Show HN: Readplace Read-It-Later Chrome Extension – Free the for First 100

https://chromewebstore.google.com/detail/readplace-—-save-articles/klblengmhlfnmjoagchagfcdbpbo...
1•fagnerbrack•14m ago•0 comments

Picture-in-Picture for any macOS window - Pipiri

https://lowtechguys.com/pipiri/
2•DerCommodore•14m ago•0 comments

Europe Without America

https://www.theatlantic.com/national-security/2026/05/europe-trump-iran-war-nato/687051/
2•vrganj•15m ago•0 comments

Show HN: Free OSS Contact Form Forwarder

https://www.simplecontactform.org
1•maxibenner•16m ago•0 comments

Negative events in psychotherapy: A narrative review

https://pmc.ncbi.nlm.nih.gov/articles/PMC12923238/
1•wslh•17m ago•0 comments

A man who blew up a nuclear power station and disappeared

https://www.theguardian.com/world/2026/may/05/the-man-who-blew-up-a-nuclear-power-station-koeberg...
1•Tomte•17m ago•0 comments

Apple keeps challenging its interoperability obligations under the DMA

https://fsfe.org/news/2026/news-20260420-01.en.html
2•Tomte•19m ago•0 comments

Ask HN: Is writing code by hand still a necessary skill for developers?

2•nerptastic•21m ago•0 comments

We once talked about fake news – now reality itself feels fake

https://www.theguardian.com/media/ng-interactive/2026/may/06/how-to-survive-the-information-crisi...
1•BaudouinVH•21m ago•0 comments

Show HN: I built an app to learn anything I want during my school breaks

https://www.sophros.me
1•macraft•21m ago•0 comments

F-117s Had an Air-to-Air Capability for Anti Soviet Awacs Role (2020)

https://theaviationist.com/2020/06/03/f-117s-had-an-air-to-air-capability-with-secondary-mission-...
1•mpweiher•23m ago•0 comments

GPU-accelerated terminal environment in Zig

https://github.com/semos-labs/attyx
1•begoon•23m ago•0 comments

The Fragmentation Tax

https://abhishekiaex.substack.com/p/the-fragmentation-tax
1•abhishek2580•25m ago•0 comments

Exploring Ruby Algorithms for Fibonacci Numbers

https://www.rorvswild.com/blog/2025/fibonacci-ruby-algorithms
1•thunderbong•26m ago•0 comments

Podman rootless containers and the Copy Fail exploit

https://garrido.io/notes/podman-rootless-containers-copy-fail/
2•birdculture•31m ago•0 comments

Apple Will Pay $250M to Settle Lawsuit over Siri's AI Features

https://www.wired.com/story/apple-will-pay-dollar250-million-to-settle-lawsuit-over-siris-ai-feat...
1•joozio•35m ago•0 comments

Are you addicted to your AI chatbot?

https://science.ubc.ca/news/2026-04/are-you-addicted-your-ai-chatbot-it-might-be-design
3•mikelgan•39m ago•3 comments

Designing Data-Intensive Applications: The Cloud and Doing the Right Thing

https://newsletter.pragmaticengineer.com/p/designing-data-intensive-applications-book-excerpt
2•onel•41m ago•0 comments

Setting up a Sun Ray server on OpenIndiana Hipster 2025.10

https://catstret.ch/202605/srss-hipster202510/
2•jandeboevrie•43m ago•0 comments

Composing Claude Code Skills

https://gist.github.com/sriprasanna/ef10fe43ac2de1cd97e638c5c65b430d
1•spk_•46m ago•0 comments

The Android Platform Security Model (2023)

https://arxiv.org/abs/1904.05572
1•surajrmal•47m ago•0 comments