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

CricVox – AI engine that generates live-style cricket commentary with voice

https://cricvox.in/#/match/2
1•hardiksondagar•48s ago•1 comments

Sacked Twitter staff in Ghana get pay-off (2024)

https://www.bbc.com/news/world-africa-68330701
1•prmph•1m ago•0 comments

Computing Diffusion Geometry

https://arxiv.org/abs/2602.06006
1•aanet•2m ago•1 comments

Stone parchment or laser-written glass? Scientists find new way to preserve data

https://www.theguardian.com/technology/2026/feb/18/scientists-new-way-preserve-data-microsoft
3•billybuckwheat•2m ago•0 comments

Show HN: A public map of startups worldwide (anyone can add theirs)

https://startupsoftheworld.com
1•zacharykapank•3m ago•1 comments

Derived Unique Key per Transaction

https://en.wikipedia.org/wiki/Derived_unique_key_per_transaction
2•wslh•4m ago•0 comments

Nature: The political effects of X's feed algorithm

https://www.nature.com/articles/s41586-026-10098-2
2•bhouston•4m ago•1 comments

The Accidental Discovery of the Most Valuable Shipwreck in History

https://lithub.com/the-accidental-discovery-of-the-most-valuable-shipwreck-in-history/
2•PaulHoule•4m ago•0 comments

Show HN: Growl Owl 2 RL Reasoner

https://github.com/Trivyn/growl
2•jcadam•4m ago•0 comments

Inertia is a property of things that matter

https://inertia.tools
1•xandwr•4m ago•1 comments

Show HN: Assign tasks to 7 AI agents with -mentions, autonomous mode, OpenClaw

1•bahaAbunojaim•4m ago•0 comments

Show HN: Wakapadi – Meet locals and travelers nearby and join free walking tours

https://www.wakapadi.io/
1•CodePapi_•4m ago•0 comments

LiveBench – AI Survival Game

https://hkuds.github.io/ClawWork/
1•shirian•5m ago•0 comments

Boston Cooked the Golden Goose

https://garryslist.org/posts/boston-cooked-the-golden-goose
1•andygcook•5m ago•0 comments

Show HN: OneContext, an Open-source AI identity that syncs across all your tools

https://www.onecontext.dev/
1•robinfaraj•6m ago•1 comments

Show HN: Slimg – Fast Image Optimizer CLI in Rust with Kotlin/Python Bindings

https://github.com/clroot/slimg
1•clroot•6m ago•0 comments

Disney trip turned into immigration detention

https://www.propublica.org/article/ice-dilley-maria-antonia-guerra-story
5•marysminefnuf•7m ago•0 comments

Data Is the New Gold

https://docs.eventsourcingdb.io/blog/2026/02/19/data-is-the-new-gold-heres-how-to-mine-it/
1•goloroden•8m ago•0 comments

Why Some People Thrive on Four Hours of Sleep

https://www.newyorker.com/culture/annals-of-inquiry/why-some-people-thrive-on-four-hours-of-sleep
1•mitchbob•8m ago•1 comments

Reproducible and traceable configuration for Conan C and C++ package manager

https://blog.conan.io/cpp/conan/configuration/reproducibility/lockfile/2026/02/17/Reproducible-Co...
1•ibobev•11m ago•0 comments

DNS-Persist-01: A New Model for DNS-Based Challenge Validation

https://letsencrypt.org/2026/02/18/dns-persist-01.html
2•todsacerdoti•11m ago•0 comments

We just made a $200M AI movie in just one day

https://twitter.com/thedorbrothers/status/2023460644905742577
1•carra•11m ago•0 comments

The Biophysical World Inside a Jam-Packed Cell

https://www.quantamagazine.org/the-biophysical-world-inside-a-jam-packed-cell-20260218/
1•ibobev•11m ago•0 comments

Valve Wins 'Patent Troll' Trial

https://news.bloomberglaw.com/ip-law/steam-game-developer-wins-patent-troll-trial-against-inventor
2•robhlt•12m ago•0 comments

Australia counts sheep with AI to help farmers sleep easily

https://www.ft.com/content/715fca08-b496-404a-bd6a-aa7124c4b1b8
1•mhb•12m ago•0 comments

Rumors of the death of SaaS have been greatly exaggerated

https://codemade.net/blog/death-of-saas/
1•lorisdev•13m ago•0 comments

Using AI to Estimate Software Costs

https://risogroup.co/insights/llm-etl-pricing
1•jamesriso•15m ago•0 comments

Show HN: Hardware.dog: automated schematic and PCB review

https://www.hardware.dog/
1•ariwasch•16m ago•0 comments

Show HN: XDL – A Twitter Video Downloader with No Ads

https://xdl.vercel.app/
2•jbegley•16m ago•0 comments

You Cannot Defeat Entropy with AI

https://greenbluegray.substack.com/p/you-cannot-defeat-entropy-with-ai
1•nathanfig•17m ago•0 comments