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

Ask HN: Do you used a cloud based dev environment?

1•asdev•46s ago•0 comments

Instagram Chief Says Social Media Is Not 'Clinically Addictive'

https://www.nytimes.com/2026/02/11/technology/adam-mosseri-instagram-addiction-trial.html
1•greenburger•1m ago•0 comments

New AI Sensor 'Sniffs' Out Spectral Targets

https://newscenter.lbl.gov/2026/02/11/new-ai-sensor-sniffs-out-spectral-targets/
1•gnabgib•2m ago•0 comments

We Forked Supabase to Fix Self-Hosted Postgres Experience

https://twitter.com/noctarius2k/status/2020754351396946284
1•panrobo•2m ago•1 comments

The box the AI can't think about

https://www.researchgate.net/publication/400670258_Self-Referential_Quantum_Barriers_for_AGI_Cont...
1•JakubCwi•4m ago•1 comments

Frequent Diet Soda Intake Linked to Fourfold Increased Dementia Risk

https://www.medscape.com/viewarticle/frequent-diet-soda-intake-linked-fourfold-increased-dementia...
3•wjb3•10m ago•1 comments

GPT-5 outperforms federal judges 100% to 52% in legal reasoning experiment

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6155012
2•droidjj•10m ago•0 comments

LLM "reasoning" continues to be deeply flawed

https://garymarcus.substack.com/p/breaking-llm-reasoning-continues
3•petethomas•10m ago•0 comments

Show HN: Undertale Text Box Generator

https://undertaletextboxgenerator.online
1•ethanYIAI•11m ago•0 comments

Rare, dangerous side effects of some Covid-19 vaccines explained

https://www.science.org/content/article/rare-dangerous-side-effects-some-covid-19-vaccines-explained
4•epistasis•13m ago•0 comments

But What to Do About It?

https://andys.blog/what-to-do/
1•andytratt•14m ago•0 comments

One with the Environment

https://andys.blog/environment/
1•andytratt•14m ago•0 comments

7 Days in the NICU

https://www.sonyasupposedly.com/nicu-diary/
1•exolymph•14m ago•0 comments

Claude Code Skill That Shares Noteworthy Moments to Slack

https://quickchat.ai/post/claude-code-skill-watches-coding-sessions-shares-to-slack
1•piotrgrudzien•14m ago•0 comments

Few people inevitably rise to the top

https://andytrattner.com/
1•andytratt•15m ago•0 comments

Memory Layer for AI Agent

https://github.com/obicho/mem
1•obicho•17m ago•1 comments

Algorithmic Liability: How Social Media Platforms Disclaim Responsibility

https://tostracker.app/analysis/algorithmic-liability
1•tldrthelaw•18m ago•0 comments

How The New York Times uses a custom AI tool to track the "manosphere"

https://www.niemanlab.org/2026/02/how-the-new-york-times-uses-a-custom-ai-tool-to-track-the-manos...
3•thetrustworthy•19m ago•0 comments

We built Vortex to fix team activation in PLG products

https://www.vortexsoftware.com/
1•santiaparicio•20m ago•1 comments

Death of Software. Nah

https://hardcoresoftware.learningbyshipping.com/p/238-death-of-software-nah
2•whobre•21m ago•0 comments

Show HN: Ignlnk, Hide the content to agents, not the files

https://github.com/No3371/ignlnk
1•3371•23m ago•0 comments

How the hardware/software interface works (Linux Kernel)

https://offlinemark.com/how-the-hardware-software-interface-works/
2•medbar•26m ago•0 comments

Most Americans don’t pay for news and don’t think they need to

https://www.niemanlab.org/2026/02/most-americans-dont-pay-for-news-and-dont-think-they-need-to/
2•jaredwiener•27m ago•0 comments

Leo thought Guthrie's smart cam was disconnected, Google still had the tape

https://fortune.com/2026/02/11/privacy-concerns-nancy-guthrie-google-nest-camera-footage-kidnapping/
1•c420•29m ago•1 comments

The curious case of binfmt for x86 emulation for ARM Docker

https://gergely.imreh.net/blog/2025/04/the-curious-case-of-binfmt-for-x86-emulation-for-arm-docker/
1•pvtmert•37m ago•0 comments

A "QuitGPT" campaign is urging people to cancel their ChatGPT subscriptions

https://www.technologyreview.com/2026/02/10/1132577/a-quitgpt-campaign-is-urging-people-to-cancel...
2•amai•37m ago•1 comments

With Boran, First AI Agent Protagonist in Next-Generation Video Games

https://store.steampowered.com/app/2451190/Kebabstar/
1•akbr•37m ago•1 comments

Prime Intellect Lab: a full-stack platform for training your own models

https://www.primeintellect.ai/blog/lab
1•anacleto•39m ago•0 comments

Self-contained RTL to GDS flow for simple chip designs

https://github.com/htfab/microlane
2•ua709•39m ago•0 comments

Language a Wood for Thought: Susan Howe's Work

https://www.poetryfoundation.org/articles/1769037/language-a-wood-for-thought
1•apollinaire•40m ago•0 comments