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

Show HN: Hold.aero – Fly and Learn IFR flying in the browser

https://app.hold.aero/fly
1•jcchrrr•45s ago•0 comments

OpenAI: Workspace Agents for Business

https://openai.com/business/workspace-agents/
1•tosh•1m ago•0 comments

Need advice: Back end engineer → infrastructure: how do you make the transition?

1•gokuljs•1m ago•0 comments

Website streamed live directly from a model

https://flipbook.page/
2•sethbannon•4m ago•0 comments

Is Starlink a Secret Radar Constellation?

https://www.youtube.com/watch?v=jbp3kdJZ1_A
2•vpmadd52huq•4m ago•0 comments

The AI-Native Interview

https://sierra.ai/blog/the-ai-native-interview
1•ej88•4m ago•0 comments

Pancreatic cancer mRNA vaccine shows lasting results in an early trial

https://www.nbcnews.com/health/cancer/pancreatic-cancer-mrna-vaccine-shows-lasting-results-early-...
3•bookofjoe•5m ago•0 comments

Muskism as Fordism

https://lpeproject.org/blog/muskism-as-fordism/
1•abrownbear•6m ago•1 comments

Malicious Checkmarx Artifacts Found in Official KICS Docker Repository

https://socket.dev/blog/checkmarx-supply-chain-compromise
1•justsomehuman•6m ago•0 comments

Show HN: Everest Drive – a multiplayer spaceship crew simulator in the browser

https://everestdrive.io/
1•jakej256•8m ago•0 comments

X.400, and how email was almost different

https://techinch.com/blog/x-400
2•speckx•8m ago•0 comments

ColombiaEscoge – Plataforma para que los colombianos voten con información

https://www.colombiaescoge.com/
1•byandrev•9m ago•1 comments

A jumping spider on the ISS learned to hunt in microgravity (2012)

https://www.colorado.edu/today/2012/11/29/cu-boulder-space-traveling-spider-finds-home-smithsonia...
2•madpen•11m ago•1 comments

GPT-Proxy Backdoor in NPM and PyPI Turns Servers into Chinese LLM Relays

https://www.aikido.dev/blog/gpt-proxy-backdoor-npm-pypi-chinese-llm-relay
1•lschueller•14m ago•0 comments

Coding Models Are Doing Too Much

https://nrehiew.github.io/blog/minimal_editing/
10•pella•14m ago•0 comments

Y'all want the new Boards of Canada so bad you crashed Warp's server

https://cdm.link/new-boards-of-canada-crashed-the-server/
2•glitcher•15m ago•0 comments

Show HN: Callmux – MCP multiplexer that cuts tool call context pollution by ~19x

https://github.com/edimuj/callmux
1•edimuj•15m ago•0 comments

Anthropic's New Mythos A.I. Model Sets Off Global Alarms

https://www.nytimes.com/2026/04/22/technology/anthropics-mythos-ai.html
4•edward•16m ago•1 comments

Show HN: Dead Simple Email – Email API for AI Agents

https://deadsimple.email/
1•bridgetburch•16m ago•0 comments

Workspace Agents in ChatGPT

https://openai.com/index/introducing-workspace-agents-in-chatgpt/
4•mfiguiere•18m ago•0 comments

The uphill climb of making diff lines performant

https://github.blog/engineering/architecture-optimization/the-uphill-climb-of-making-diff-lines-p...
2•ezekg•18m ago•0 comments

What is tech neck? (2024)

https://my.vanderbilthealth.com/what-is-tech-neck/
3•the-mitr•19m ago•0 comments

Google says 75% of it's new code is AI written

https://blog.google/innovation-and-ai/infrastructure-and-cloud/google-cloud/cloud-next-2026-sunda...
4•Drakexor•22m ago•6 comments

Agents and the Era of Overproduction

https://mattrogish.com/blog/2026/03/11/agents-and-the-era-of-overproduction/
1•MattRogish•22m ago•0 comments

Garbage collection and the edge of safe Rust

https://kyju.org/blog/tokioconf-2026/
1•fanf2•23m ago•0 comments

PulseBench-Tab: Open-source, multilingual benchmark for table extraction

https://www.runpulse.com/blog/pulsebench-tab
3•ritvikpandey21•24m ago•1 comments

YouTuber Turns $2k Wrecked Tesla into Wild Go-Kart – Then Tesla Shuts It Down

https://guessingheadlights.com/youtuber-turns-2000-wrecked-tesla-into-wild-go-kart-then-tesla-shu...
1•toss1•24m ago•2 comments

Parallel Agents in Zed

https://zed.dev/blog/parallel-agents
14•ajeetdsouza•26m ago•2 comments

Font-Family Doesn't Fall Back the Way You Think

https://csswizardry.com/2026/04/font-family-doesnt-fall-back-the-way-you-think/
1•speckx•27m ago•0 comments

Microsoft Moving All GitHub Copilot Subscribers to Token-Based Billing in June

https://www.wheresyoured.at/exclusive-microsoft-moving-all-github-copilot-subscribers-to-token-ba...
3•brandrick•27m ago•1 comments