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

Argus – RAG based vulnerability scanner

https://github.com/abhishekamralkar/argus
1•amralkara•24s ago•0 comments

New technique radically boosts biogas yields from sewage sludge

https://newatlas.com/energy/biogas-boost-sewage-sludge/
1•breve•3m ago•0 comments

Childhood Computing

https://lilysthings.org/blog/childhood-computing/
1•i_lost_my_bagel•5m ago•0 comments

Is it still all about the people?

https://lisacrispin.com/2026/04/29/is-it-still-all-about-the-people/
1•adrianhoward•6m ago•0 comments

Misplaced Panic over AI Progress

https://garymarcus.substack.com/p/misplaced-panic-over-ai-progress
1•agluszak•13m ago•0 comments

Maryland citizens hit with $2B power grid upgrade for out-of-state AI

https://www.tomshardware.com/tech-industry/artificial-intelligence/maryland-citizens-slapped-with...
3•lemonberry•16m ago•0 comments

Ask HN: Which LLM are you using to evaluate your ideas?

1•Marius77•18m ago•0 comments

The impossible song we'll remember in 500 years [video]

https://www.youtube.com/watch?v=XLqhOEzpWyo
2•layer8•23m ago•0 comments

Freediving, Embodiment and Humanity

https://tracesofhumanity.org/freediving-embodiment-and-humanity/
1•nathanh•26m ago•0 comments

The Psychology of Choice in an Age of Abundance

https://medium.com/@sachin255701/the-psychology-of-choice-in-an-age-of-abundance-8843d4e49ce7
1•_day_dr3am3r_•27m ago•1 comments

Fluiq – LLM observability, evals and optimization in two lines of Python

https://getfluiq.com
1•SaurabhKumbhar•29m ago•0 comments

Show HN: Aura – Desktop AI Orchestration IDE with Planner/Worker Architecture

https://github.com/CarpseDeam/Aura-IDE
2•ConfusedData89•33m ago•0 comments

Jumping Spiders Shouldn't Be This Smart [video]

https://www.youtube.com/watch?v=kRQMOF5c2Z8
2•hermitcrab•34m ago•0 comments

Is this a bad moment for a math career?

https://mathoverflow.net/questions/486675/is-this-a-bad-moment-for-a-math-career
1•bananaflag•35m ago•0 comments

Ask HN: Will low quality AI customer support be the new normal?

3•0-bad-sectors•35m ago•1 comments

A NLM enhanced writers workbench

https://www.redwoodrhetorica.com/
1•homeonthemtn•39m ago•1 comments

Linux gaming is faster because Windows APIs are becoming Linux kernel features

https://www.xda-developers.com/linux-gaming-is-getting-faster-because-windows-apis-are-becoming-l...
2•haunter•39m ago•1 comments

Nuke All Routers

https://github.com/maxbrito500/esp32-c5-deauth
1•nunobrito•42m ago•0 comments

Forza Horizon 6 just leaked on Steam, letting pirates play it

https://www.neowin.net/news/looks-like-forza-horizon-6-just-leaked-on-steam-letting-pirates-play-...
4•bundie•46m ago•1 comments

Hair Maths: Curl Geometry and Braids [pdf]

https://tomrocksmaths.com/wp-content/uploads/2025/09/hair-maths-curl-geometry-and-braids-copy-3-i...
2•marysminefnuf•48m ago•0 comments

Low Frequencies

https://computer.rip/2026-05-09-extremely-low-frequencies.html
2•Sniffnoy•48m ago•1 comments

Droidian, a Phone OS for Patient People

https://theprivacydad.com/droidian-an-awesome-phone-os-for-patient-people-guest-post/
2•Brajeshwar•49m ago•0 comments

The AI That Took a Sunday Off

https://debarshibasak.github.io/readables/blogs/eu-ai-right.html
1•debarshri•52m ago•0 comments

Do Ten Times as Much

https://www.betonit.ai/p/do-ten-times-as-much
1•kristianp•54m ago•1 comments

Show HN: Hustler Bingo – a tiny bingo game about startup Twitter clichés

https://hustlerbingo.app
1•lackoftactics•57m ago•0 comments

sixos: a nix os without systemd [video]

https://media.ccc.de/v/38c3-sixos-a-nix-os-without-systemd
1•bmacho•58m ago•1 comments

Laptops all have built-in security tokens these days

https://ahelwer.ca/post/2026-05-08-builtin-u2f/
2•birdculture•59m ago•0 comments

Referer Reality

https://www.robinsloan.com/lab/referer/
2•tobr•1h ago•0 comments

TrackMoose, a music discovery tool that blends up to 100 artists

https://www.trackmoose.com
1•vikdean•1h ago•0 comments

I have build "Cursor for everything" desktop app

https://trydekaai.com/
1•arnurTogambayev•1h ago•1 comments