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

Show HN: Memefields – Project Map for Bots

https://memefields.com/
1•janpmz•23s ago•0 comments

Debugger agent skill using DAP

https://skills.sh/joaquincampo/agent-debugger/agent-debugger
1•psoto•24s ago•0 comments

VTT Test Donut Lab Battery Reaches 80% Charge in Under 10 Minutes [pdf]

https://pub-fee113bb711e441db5c353d2d31abbb3.r2.dev/VTT_CR_00092_26.pdf
2•sagyam•26s ago•0 comments

StressReliefGames

https://l4.lraot.top/
1•LinkLens•2m ago•0 comments

Show HN: IntroBee – Private intro thread with availability scheduler

https://www.introbee.buzz/
1•the_alphalaser•3m ago•0 comments

Show HN: Keep your eyes healthy with 20 20 20 rule reminder using bash

https://gist.github.com/kwkr/b6376b4ade4d14467334bc0dbb845a16
1•zukerpie•4m ago•0 comments

Giant stop killing games updates 2026 [video]

https://www.youtube.com/watch?v=CNVKqRDalLo
1•doener•4m ago•0 comments

GitLab CI/CD Compliance

https://github.com/getplumber/plumber
2•diviNeCall•5m ago•2 comments

Linux 7.0-Rc1 Released with Rust Stable, AMD Zen 6, New Intel Support

https://www.phoronix.com/news/Linux-7.0-rc1-Released
2•snowhale•5m ago•0 comments

Donut Solid-State Battery: Fast Charge Test [video]

https://www.youtube.com/watch?v=d2QU_LpkSPs
2•velmu•5m ago•0 comments

Sovereignty in a System Prompt

https://pop.rdi.sh/sovereignty-in-a-system-prompt/
1•0x5FC3•6m ago•0 comments

Why AI coding agents fail: a Wittgenstein problem

https://ledeluge.me/notes/2026/02/22/the-language-game/
2•apresmoi•6m ago•0 comments

Show HN: A smart routing provider for OpenClaw

https://clawpane.co
1•aposded•7m ago•0 comments

From Energy Use to Air Quality, the Many Ways Data Centers Affect US Communities

https://www.wri.org/insights/us-data-center-growth-impacts
1•7777777phil•8m ago•0 comments

The U.S. had a crazy strategy to beat Canada. I can't believe it worked

https://slate.com/culture/2026/02/usa-beats-canada-mens-hockey-wins-gold-2026-olympics.html
1•Betelbuddy•9m ago•1 comments

Unified Latents (UL): How to train your latents

https://arxiv.org/abs/2602.17270
1•pama•9m ago•0 comments

PlowNYC

https://plownyc.cityofnewyork.us
1•exegete•13m ago•0 comments

Designing Odin's Casting Syntax

https://www.gingerbill.org/article/2026/02/23/designing-odins-casting-syntax/
1•todsacerdoti•14m ago•0 comments

Bad Vibes from Pi: The Agent Behind OpenClaw

https://www.thevinter.com/blog/bad-vibes-from-pi
1•thevinter•14m ago•0 comments

Gravity, Gizmos, and a Grand Theory of Interstellar Travel

https://www.wired.com/story/mach-effect-thrusters-interstellar-travel/
1•voxleone•15m ago•0 comments

Nicki Minaj's social media propped up by bots, analysis finds

https://www.politico.com/news/2026/02/23/the-bots-powering-nicki-minajs-maga-war-00771317
3•cainxinth•15m ago•0 comments

Confusables.txt and NFKC disagree on 31 characters

https://paultendo.github.io/posts/unicode-confusables-nfkc-conflict/
1•pimterry•15m ago•0 comments

What YC Is Betting On?

2•Krishnaa_•15m ago•1 comments

Music is not a universal language – but it can bring us together when words fail

https://www.nature.com/articles/d41586-026-00565-1
1•Tomte•16m ago•0 comments

Job Scheduling with At(1)

https://thomascountz.com/2026/02/22/one-off-scheduling-with-at
1•thomascountz•16m ago•0 comments

Presroute – Optimizing LLMs Integrations for Enterprises

https://github.com/RidelinkSystems/PRESROUTE
1•amonte•18m ago•0 comments

The Chip War, explained in 54 minutes – Chris Miller [video]

https://www.youtube.com/watch?v=GdJ04Bt6W-Q
1•madradavid•20m ago•0 comments

Show HN: Agentic programming needs new processes

https://github.com/agereaude/cx/blob/main/CX.md
1•agereaude•20m ago•1 comments

Cursed engineering: jumping randomly through CSV files without hurting yourself

https://github.com/medialab/xan/blob/master/docs/blog/csv_base_jumping.md
1•todsacerdoti•21m ago•0 comments

Using a Microwave to Reanimate Rats

https://pmc.ncbi.nlm.nih.gov/articles/PMC1365902/
4•smig0•21m ago•0 comments