frontpage.
newsnewestaskshowjobs

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

OpenTelemetry traces: why deprecating span events is a terrible idea

https://mcorbin.fr/en/posts/2026-08-17-otel-span-deprecation
1•mcorbin•1m ago•0 comments

AI Native Review Collection on auto pilot mode

https://www.feedspace.io/
1•chirag_ink•1m ago•1 comments

Self hosted email continues to steeply decline

https://labs.ripe.net/author/artem-berezin/two-providers-a-stubborn-plateau-and-a-very-long-tail-...
1•minusf•2m ago•0 comments

Python scripts predicting Einstein Rings from visible mass (R²=0.99)

https://github.com/digital-physics-navmesh/The-Phantom-Metric
1•TomerHaimovich•2m ago•0 comments

Space: The Billionaires' Playground

https://newint.org/science-and-technology/2026/space-billionaires-playground
1•DeepLogin•2m ago•0 comments

The Marxist Case for the Technofeudal Hypothesis

https://jacobin.com/2026/08/varoufakis-tech-capital-marxism-technofeudalism
1•aleksjess•3m ago•0 comments

CladBench – an open benchmark for AI on UK building regulations

https://github.com/cladbrain/cladbench
1•tamilselvan77•3m ago•0 comments

DVRPwned – The first ever working custom firmware for the PSX DESR DVRP

https://github.com/pcm720/dvrpwned
1•uyjulian•3m ago•0 comments

How to Create a Cursor Plugin: Context Engineering You Can Install

1•rajkumarsamra•4m ago•1 comments

Faceted search under active filters

https://medium.com/@s_nikolaev/faceted-search-under-active-filters-7768fb479ad8
1•snikolaev•6m ago•0 comments

Show HN: Fix every weak social card/OG preview on your site

https://myog.social/tools/og-preview
1•hboon•6m ago•1 comments

AI music has reached the charts, and the artists using it have stopped hiding it

https://thenextweb.com/news/ai-music-mainstream-tyga-timbaland
2•skeledrew•10m ago•0 comments

We Got Markov at Home

https://deepnull.bearblog.dev/we-got-markov-at-home/
1•hackboyfly•10m ago•0 comments

Ask HN: How Long Would It Take Dr. House to Catch Dexter?

1•modinfo•13m ago•0 comments

Show HN: Cite Hustle – SEO agent that does your content marketing

https://citehustle.com/
3•windcor•14m ago•1 comments

Lost 5kg in 4 Weeks, I'm happy:D

https://glp1vault.eu/
1•psvisualdesign•14m ago•0 comments

A theory for decades of C vulnerabilities

https://strawberry9.github.io/the-wrong-memory/Appendix_02.html
1•SilentLambda•14m ago•0 comments

Unforgetful

https://marco.org/2026/08/14/unforgetful
2•wrxd•15m ago•0 comments

Show HN: AgenticSchema – Turn structured web data (Schema.org) into MCP tools

https://github.com/searchstefano/agenticschema
1•searchstefano•17m ago•0 comments

Trump-backed crypto firm offers AI from restricted Chinese companies

https://www.reuters.com/world/china/trump-crypto-firm-backs-venture-offering-ai-restricted-chines...
2•BlueBerry2001•21m ago•0 comments

Show HN: Particle – a read-later app for when sites make reading unbearable

https://particle.crnst8.com/try/
1•flowerpil•22m ago•0 comments

My Microscope Is a Dashcam

https://xecaz.com/reverse.engineering/tomlovdm9/
1•xecaz•23m ago•1 comments

Hack: claude -p

https://laughingmeme.org/2026/03/20/hack-claude-p.html
2•tosh•26m ago•0 comments

Private credit under strain as troubled loans swell

https://www.ft.com/content/67acde0d-4154-4332-b33b-2d03d3a86007
3•root-parent•26m ago•1 comments

A Risk-Style Take on the Turkish War of Independence

https://github.com/dashersw/independence
1•arbayi•27m ago•0 comments

Hex – An experimental system for making thought inspectable

https://github.com/resendizkarlakaren/HEX
1•savageawe•28m ago•0 comments

Fellarìa glacier-lapse 2019/2025 [video]

https://www.youtube.com/watch?v=70y5D9U3FfU
1•rzk•29m ago•0 comments

AI Is Driving Up Treasury Yields: 'It Just Touches Everything'

https://www.bloomberg.com/news/articles/2026-08-17/ai-is-driving-up-treasury-yields-it-just-touch...
1•root-parent•30m ago•0 comments

How Text Watermarking Works

https://zhenyi.gibber.blog/how-text-watermarking-works
2•zhenyi•32m ago•0 comments

Interactional Expertise

https://idcompendium.wordpress.com/interactional-expertise/
1•rzk•40m ago•0 comments