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

Show HN: Crovia – offline-verifiable AI royalty evidence (CEP.v1)

https://github.com/croviatrust/crovia-core-engine
1•crovia•40s ago•0 comments

Why Does A.I. Write Like … That?

https://www.nytimes.com/2025/12/03/magazine/chatbot-writing-style.html
1•jbegley•57s ago•0 comments

Want This Hearing Aid? Well, Who Do You Know?

https://www.wired.com/story/hearing-aid-startup-ai-fortell/
1•jbegley•1m ago•0 comments

Dartmouth Announces AI Partnership with Anthropic and AWS

https://home.dartmouth.edu/news/2025/12/dartmouth-announces-ai-partnership-anthropic-and-aws
1•ownlife•2m ago•0 comments

Show HN: Writing App for Everything

https://kraa.io/about
1•levmiseri•2m ago•1 comments

Show HN: Crovia – offline-verifiable AI royalty evidence (CEP.v1)

https://github.com/croviatrust/crovia-core
1•crovia•9m ago•0 comments

How AI is transforming work at Anthropic

https://www.anthropic.com/research/how-ai-is-transforming-work-at-anthropic
1•achow•11m ago•0 comments

Volt a Terminal-native HTTP client that's also an insanely fast load tester

https://github.com/owenHochwald/Volt
2•owenHochwald•15m ago•1 comments

Super-Flat ASTs

https://jhwlr.io/super-flat-ast/
2•todsacerdoti•15m ago•0 comments

Finding "Just Fine"

https://joeblu.com/blog/2025_12_finding-just-fine/
2•joeblubaugh•24m ago•0 comments

Grow Slowly, Stay Small

https://herman.bearblog.dev/grow-slowly-stay-small/
3•HermanMartinus•25m ago•1 comments

Ask HN: What do luxurious things that should have in prison/Detention Center?

1•triilman•36m ago•2 comments

Ask HN: Will you like to join a community for bikers who like classic motorcycle

1•sahil423•38m ago•0 comments

We Launched Zo Computer

https://0thernet.substack.com/p/we-launched-zo-computer-my-thoughts
2•benzguo•38m ago•1 comments

Show HN: Wan 2.6 – Professional AI Video Generation with Reference Consistency

https://www.wan2-6.com/?i=d1d5k
2•lu794377•42m ago•0 comments

Hostile states may target Ireland during EU presidency

https://www.irishexaminer.com/news/arid-41753130.html
3•austinallegro•43m ago•0 comments

Multics Relational Data Store (MRDS)

https://www.mcjones.org/System_R/mrds.html
2•kristianp•44m ago•0 comments

BookWyrm, a Federated Goodreads Alternative

https://bookwyrm.social/
2•coolcoder613•45m ago•0 comments

Google's toying with nonsense AI-made headlines

https://www.pcgamer.com/software/ai/googles-toying-with-nonsense-ai-made-headlines-on-articles-li...
2•pjmlp•45m ago•0 comments

Craft Food Roblox Recipes – All Cooking Recipes Map

3•fastshort•47m ago•1 comments

Broken

https://www.lindelystables.dk/en/posts/functional-quadtree-clojure
1•lbj•48m ago•0 comments

Show HN: GridSport.Games – Daily football/soccer trivia (PWA, 12 languages)

https://gridsport.games/de
1•Kovacbb•48m ago•1 comments

Math for Programming

https://nostarch.com/math-programming
1•teleforce•48m ago•0 comments

Smartphones, Except Landlocked (2019)

https://tedium.co/2019/08/13/landline-smartphone-history/
1•austinallegro•54m ago•0 comments

Advent of Code Quantum Edition: Day 1

https://aqora.io/blog/advent-of-code-quantum-edition-day-1
1•stubbi•56m ago•0 comments

The Oxford Word of the Year 2025 is "rage bait"

https://corp.oup.com/news/the-oxford-word-of-the-year-2025-is-rage-bait/
1•CuriousCorvid•58m ago•0 comments

For First Time in Decades, Child Deaths Will Rise This Year

https://www.wsj.com/health/for-first-time-in-decades-child-deaths-will-rise-this-year-92c67b51
2•petethomas•1h ago•0 comments

Median Filter over Arbitrary Datatypes

https://martianlantern.github.io//2025/09/median-filter-over-arbitrary-datatypes/
1•martianlantern•1h ago•0 comments

Strategy Letter IV: Bloatware and the 80/20 Myth (2001)

https://www.joelonsoftware.com/2001/03/23/strategy-letter-iv-bloatware-and-the-8020-myth/
2•NavinF•1h ago•0 comments

Open, Vendor-Neutral Framework for AI/ML Compute Optimization

https://outerbounds.com/blog/six-steps-to-cost-optimization
1•frktcpumu•1h ago•1 comments