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•8mo 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

Astronauts will soon take an unprecedented path to the moon

https://www.cnn.com/2026/01/17/science/nasa-artemis-ii-moon-mission
1•01-_-•1m ago•0 comments

Orgasm-related laughing, crying, nosebleeds and more are normal, albeit rare

https://news.northwestern.edu/stories/2026/01/orgasm-related-laughing-crying-nosebleeds-and-more-...
1•gnabgib•2m ago•0 comments

Redis Compatibility

https://docs.getswytch.com/latest/redis/
1•withinboredom•4m ago•0 comments

Time in C++: Creating Your Own Clocks with <Chrono>

https://www.sandordargo.com/blog/2026/01/14/clocks-part-7-custom-clocks
1•jandeboevrie•5m ago•0 comments

Whenwords: An Open Source Library Without Code

https://github.com/dbreunig/whenwords
2•howToTestFE•6m ago•1 comments

Iro-CUDA-FFI – Rust orchestrates nvcc‑compiled CUDA C++ kernels

https://github.com/tribe-iro/iro-cuda-ffi
1•tribe-iro•6m ago•1 comments

Dada Manifesto (1918)

https://391.org/manifestos/1918-dada-manifesto-tristan-tzara/
1•jruohonen•7m ago•0 comments

YC-backed Bucket Robotics survived its first CES

https://techcrunch.com/2026/01/18/how-yc-backed-bucket-robotics-survived-its-first-ces/
3•lasermatts•7m ago•0 comments

I Made Some Puzzles

https://dailybaffle.com
1•windowshopping•12m ago•1 comments

Memdeklaro – The humanitarian open source alternative to government ID

https://memdeklaro.computersforpeace.net
1•anonymous123•12m ago•0 comments

Ask HN: What is the best voice input mechanism on Linux (2026)?

1•orsenthil•13m ago•0 comments

LLM Pareto Frontier

https://michaelshi.me/pareto/
1•mikeshi42•14m ago•0 comments

Show HN: Free crypto liquidation tracker I built with AI

https://www.liquidationhunterpro.io/
1•Maxicatimus•15m ago•0 comments

America's $3T Nuclear Bet (HALEU) [video]

https://www.youtube.com/watch?v=O2JLbNDhoO4
1•gregbot•16m ago•0 comments

Grookey Community Day and a January That Matters in Pokémon Go

https://comuniq.xyz/post?t=725
1•01-_-•17m ago•0 comments

Sino-Soviet Split

https://en.wikipedia.org/wiki/Sino-Soviet_split
2•JumpCrisscross•21m ago•1 comments

I Learned to Love Lifting Heavy

https://www.nytimes.com/2026/01/17/well/move/weight-lifting-aging.html
1•mooreds•22m ago•0 comments

RFC 7519: JWTs

https://ciamweekly.substack.com/p/rfc-7519-jwts
1•mooreds•22m ago•0 comments

They are now putting composite armor on spacecraft to shield from orbital debris

https://spacenews.com/portal-space-selects-space-armor-debris-shield-for-2026-mission/
2•ck2•22m ago•1 comments

Healthcare RCM market map – January 2026

https://www.stedi.com/blog/healthcare-rcm-market-map-january-2026
1•mooreds•22m ago•0 comments

Iran's state broadcaster IRIB was hacked to air a message from Reza Pahlavi

https://twitter.com/MarioNawfal/status/2012972763783258389
1•seymon•22m ago•0 comments

Spec Driven Development: When Architecture Becomes Executable

https://www.infoq.com/articles/spec-driven-development/
2•msolujic•24m ago•0 comments

Our problems are too vast, our distance from them too great

https://longreads.com/2026/01/13/scale-climate-doomsday-clock/
1•treadump•24m ago•0 comments

Ralph Wiggum as a Degenerate Evolutionary Search

https://ianreppel.org/ralph-wiggum-as-a-degenerate-evolutionary-search/
1•i7l•24m ago•0 comments

Microslop: A Web Browser Extension

https://github.com/4O4-wasd/Microslop
2•Nales•25m ago•0 comments

What we get wrong about dopamine

https://www.bbc.com/future/article/20260116-what-we-get-wrong-about-dopamine
1•oxag3n•27m ago•0 comments

MacPacker: Preview archives on macOS without extracting. Extract single files

https://github.com/sarensw/MacPacker
1•avra•28m ago•0 comments

X1.95 solar flare

https://www.swpc.noaa.gov/news/x-class-flare-activity-observed-18-january-2026
2•sva_•29m ago•0 comments

Land Acknowledgement

https://en.wikipedia.org/wiki/Land_acknowledgement
1•vinnyglennon•30m ago•0 comments

The Gnome Village

https://happihacking.com/blog/posts/2025/the-gnome-village/
1•birdculture•31m ago•0 comments