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•8mo 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

My AI now drives my apps and checks its own work in 50ms loops

1•sebringj•2m ago•0 comments

Show HN: AI Dev Hub. 75 free AI and dev tools

https://aidevhub.io/
1•orbydx•3m ago•0 comments

Delphi is 31 years old – innovation timeline

https://blogs.embarcadero.com/delphi-innovation-timeline-31st-anniversary-edition-published-get-y...
1•andsoitis•4m ago•0 comments

Let Me Ask AI for You

https://letmeaskai.fyi/
2•dmitrysergeyev•6m ago•0 comments

Profiling on Windows: A Short Rant

https://mropert.github.io/2026/02/13/profiling_on_windows/
1•ingve•8m ago•0 comments

Energy balance in cyclists on plant-based diets during a 30-day, 4300-km ride

https://physoc.onlinelibrary.wiley.com/doi/10.14814/phy2.70629
1•PaulHoule•10m ago•0 comments

Show HN: I speak 5 languages. Duolingo taught me none. So I built lairner

https://lairner.com
3•t17r•12m ago•1 comments

Hong Kong has land, autocracy, and expensive housing. Why doesn't it build?

https://worksinprogress.co/issue/the-dysfunctional-tiger/
1•bensouthwood•12m ago•0 comments

It must be hard to publish null results

https://osf.io/preprints/socarxiv/zr5vf_v1
2•cainxinth•15m ago•0 comments

Manipulating AI memory for profit: The rise of AI Recommendation Poisoning

https://www.microsoft.com/en-us/security/blog/2026/02/10/ai-recommendation-poisoning/
1•philk10•16m ago•1 comments

Show HN: Joria – a native Mac notes app for instant capture and semantic recall

https://joria.app
1•nanbing•16m ago•0 comments

Every blog post I have shared until 2026

https://bryanhogan.com/blog/other-cool-blog-posts-2026
1•bryanhogan•16m ago•0 comments

One Task at a Time, Even with AI

https://wakamoleguy.com/p/one-task-at-a-time-even-with-ai
2•wakamoleguy•17m ago•0 comments

Scott Adams and the Art of Dying (and Living Forever) Online

https://meghanboilard.substack.com/p/scott-adams-and-the-art-of-dying
2•bcohen123•19m ago•0 comments

Jmail hits 450M views, Vercel CEO agrees to handle server costs

https://piunikaweb.com/2026/02/11/jmail-450m-views-vercel-ceo-covers-server-costs/
1•no_creativity_•20m ago•0 comments

BinaryAudit: Can AI find backdoors in raw machine code?

https://quesma.com/benchmarks/binaryaudit/
1•stared•20m ago•1 comments

AI is making online crimes easier. It could get worse

https://www.technologyreview.com/2026/02/12/1132386/ai-already-making-online-swindles-easier/
3•Brajeshwar•20m ago•0 comments

SafeRun Guard- Runtime safety firewall for AI coding agents (bash+jq, zero deps)

https://github.com/Cocabadger/saferun-guard
1•cocabadger•20m ago•1 comments

PyTorch Now Uses Pyrefly for Type Checking

https://pytorch.org/blog/pyrefly-now-type-checks-pytorch/
3•ocamoss•21m ago•0 comments

DiffSwarm: Multi-agent code review from your terminal (BYOK, runs locally)

https://diffswarm.com/
1•swolpatrol•21m ago•1 comments

Discord Voluntarily Pushes Mandatory Age Verification Despite Recent Data Breach

https://www.eff.org/deeplinks/2026/02/discord-voluntarily-pushes-mandatory-age-verification-despi...
3•hn_acker•22m ago•0 comments

Show HN: 1MB iOS apps designed to reduce mental open loops

1•kentaroyamauchi•23m ago•2 comments

Trump Antitrust Is Dead

https://pluralistic.net/2026/02/13/khanservatives/#kid-rock-eats-shit
4•leotravis10•23m ago•0 comments

Chris Liddell appointed to Anthropic's board of directors

https://www.anthropic.com/news/chris-liddell-appointed-anthropic-board
1•ryanhn•24m ago•0 comments

Maybe the Hollywood is cooked guys are cooked too idk

https://twitter.com/RuairiRobinson/status/2021394940757209134
1•hooch•25m ago•0 comments

US billionaires race China to moon

https://www.reuters.com/business/aerospace-defense/musk-fires-up-spacex-bezos-pushes-blue-origin-...
2•PessimalDecimal•26m ago•1 comments

The Tast Supply Problem

https://charlielabs.ai/blog/the-task-supply-problem/
1•mrbbk•26m ago•0 comments

Unified API Proxy for OpenAI, Anthropic, and Compatible LLM Providers

https://github.com/mylxsw/llm-gateway
1•mylxsw•29m ago•1 comments

Show HN: Uber's new publicly available RPC Kafka repository

https://github.com/uber/uForwarder
1•zahidcakici•30m ago•0 comments

Show HN: Blip – Ephemeral chat that stores nothing, anywhere. open source

https://github.com/greatsk55/BLIP
1•hackersk•30m ago•1 comments