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

Ask HN: Is Apple taking AI seriously?

1•circuitfable•10s ago•0 comments

1M node reactive graph, 2.687ms updates, stealth privacy, 303 tests passing

https://neurons-me.github.io/.me/
1•suiGn•1m ago•0 comments

Hong Kong Surpasses Switzerland as the Largest Cross-Border Wealth Hub

https://www.bcg.com/press/27may2026-hong-kong-surpasses-switzerland-largest-cross-border-wealth-hub
1•LopRabbit•8m ago•0 comments

A simple product for small businesses to collect private feedback

https://telltheowner.com
1•vijayst•8m ago•0 comments

PivCo-Huffman: a novel approach to Huffman decoding

https://marcinzukowski.github.io/pivco-huffman/
1•felixhandte•8m ago•0 comments

The IsUpMap lets you check the status of over 100 major sites at once

https://isupmap.com/
1•mikelgan•13m ago•0 comments

Reusable Brick Walls for the Construction Industry

https://www.tugraz.at/en/news/article/reusable-brick-walls
1•geox•13m ago•0 comments

Show HN: Sencho – a self hosted Docker Compose UI with multi-node fleet support

https://github.com/Studio-Saelix/sencho
1•ansocode•14m ago•0 comments

The Pentagon is running an AI propaganda mill targeting Latin America

https://theintercept.com/2026/06/02/la-tilde-propaganda-latin-america-pentagon/
3•Fricken•19m ago•0 comments

Science with military applications is cited more than civilian-only research

https://www.nature.com/articles/d41586-026-01770-8
1•ilreb•19m ago•0 comments

Nouri – AI nutrition that adjusts your workouts

https://nouriwellness.app/
1•iconmarketing•20m ago•1 comments

C++: The Documentary Released Today

https://herbsutter.com/2026/06/04/c-the-documentary-released-today/
2•ingve•20m ago•0 comments

JITDomain: Instruction-level JIT code isolation

https://www.sciencedirect.com/science/article/pii/S0141933126000426
2•matt_d•21m ago•0 comments

Show HN: Lessons learned from running Claude Code swarms at scale

3•sermakarevich•23m ago•0 comments

Criticome: The Critical Period in Human Development

https://genomicpress.kglmeridian.com/view/journals/brainhealth/aop/article-10.61373-bh026i.0021/a...
2•rramadass•25m ago•1 comments

Cursus Publicus

https://en.wikipedia.org/wiki/Cursus_publicus
2•thebigship•36m ago•0 comments

RobotValues: Evaluating Household Robots When Human Values Conflict

https://arxiv.org/abs/2606.03312
2•berlianta•40m ago•0 comments

Bot web traffic has overtaken human web traffic, data shows

https://www.nbcnews.com/tech/tech-news/bot-web-traffic-overtaken-human-web-traffic-data-shows-rcn...
3•psychanarch•40m ago•0 comments

Mark Rober's $60M Science Experiment [video]

https://www.youtube.com/watch?v=RDFGkBE2O50
2•migueloller•40m ago•0 comments

Ask HN: How do you track FIRE progress?

2•Tesnix•44m ago•2 comments

Magenta RealTime 2: Open and Local Live Music Models

https://magenta.withgoogle.com/magenta-realtime-2
3•selvan•47m ago•1 comments

BrowseComp-Plus: A More Fair and Transparent Benchmark of Deep-Research Agent

https://github.com/texttron/BrowseComp-Plus
2•colonCapitalDee•48m ago•0 comments

Meta Silently Added Face-Recognition for Its Smart Glasses to Phones

https://www.wired.com/story/meta-smart-glasses-face-recognition-nametag-connections/
4•thm•48m ago•0 comments

Building AI Neuroscience: From Atoms to Bits

https://blog.amaranth.foundation/p/building-ai-neuroscience-from-atoms
2•pminimax•48m ago•0 comments

DB Nerds – Try this out

https://kesseldb.com/
3•haz00•49m ago•1 comments

Flesh-eating screwworm returns to U.S. after 60 years, threatening cattle herd

https://www.nbcnews.com/news/us-news/new-world-screwworm-case-detected-texas-calf-cattle-food-sup...
3•Pxtl•49m ago•1 comments

The year of IPv6-only desktop

https://ripe92.ripe.net/programme/meeting-plan/sessions/94/PBHCLK/
3•ivlad•51m ago•0 comments

SpaceX: Flying High on Impunity

https://georgiebc.wordpress.com/2026/06/01/flying-high-on-impunity/
4•ortr•58m ago•0 comments

Charges dismissed for dad who shot daughter's rapist

https://www.cnn.com/2026/06/04/us/aaron-spencer-murder-charges-dismissed
4•nacho-daddy•59m ago•0 comments

Built a runtime layer so automation scripts and AI systems don't forget state

https://stateflow-dev.github.io/stateflowlabs/
2•StateflowsLabs•1h ago•0 comments