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

Native Svelte Apps with Bare

https://github.com/holepunchto/sveltekit-adapter-bare
1•Drache93•1m ago•0 comments

Why Modbus Refuses to Die

https://flowfuse.com/blog/2026/01/why-modbus-still-exist/
1•swq115•1m ago•0 comments

Furniture in the Closet.

https://substack.news-items.com/p/furniture-in-the-closet
1•petethomas•2m ago•0 comments

Richard Feynman and the Connection Machine (2017)

https://longnow.org/ideas/richard-feynman-and-the-connection-machine/
1•tosh•2m ago•0 comments

Show HN: Suparagent AI- Alternative to Manus and Genspark

https://suparagent.ai/
1•sunny678•2m ago•0 comments

Anthropic Testing Removing Claude Code from Pro Plan

https://arstechnica.com/ai/2026/04/anthropic-tested-removing-claude-code-from-the-pro-plan/
1•lightbulbish•4m ago•0 comments

Data-Parallel Thinking (2024) [pdf]

https://gfxcourses.stanford.edu/cs149/fall24content/media/dataparallel/08_dataparallel_uvO76Qr.pdf
1•tosh•4m ago•0 comments

Bitwarden CLI NPM package has been compromised

https://opensourcemalware.com/npm/@bitwarden/cli
4•6mile•5m ago•1 comments

Warren Buffett: Why Stocks Beat Gold, Bonds and Bitcoin (2018)

https://acquirersmultiple.com/2018/01/warren-buffett-why-stocks-beat-gold-bonds-and-bitcoin/
1•andsoitis•6m ago•0 comments

Machining Mechanisms in Field-Assisted Cutting of Brittle Materials

https://www.mdpi.com/2072-666X/17/3/361
1•PaulHoule•6m ago•0 comments

Indonesia set to rule on Wikipedia access following Thursday talks

https://theonlinecitizen.com/2026/04/23/indonesia-set-to-rule-on-wikipedia-access-following-thurs...
1•exploraz•8m ago•0 comments

Local firewall that blocks sensitive data from leaving via AI agents

https://github.com/Katherine-Holland/ClaudeCoworkGuard
1•coworkguard•8m ago•0 comments

Recursive Self-Improvement

https://www.hyperdimensional.co/p/on-recursive-self-improvement-part
1•andsoitis•9m ago•0 comments

Creating Baby Geniuses to Thwart the AI Threat?

https://www.motherjones.com/politics/2026/04/gene-editing-optimization-thiel-altman-armstrong-and...
1•speckx•9m ago•1 comments

Show HN: Allplix – 60 file tools that run in the browser

https://www.allplix.com/en
1•shadoxise•10m ago•0 comments

Show HN: DecisionBox – Autonomous AI agent runs data discovery on your warehouse

https://github.com/decisionbox-io/decisionbox-platform
2•seltug•12m ago•0 comments

Ask HN: Are LLMs Just Philosophical Zombies?

1•slipknotfan•13m ago•2 comments

Regression Testing – An Introductory Guide

https://keploy.io/blog/community/regression-testing-an-introductory-guide
1•sophielane•13m ago•0 comments

The Quiet Standardization of AI Agent Skills

https://www.agensi.io/learn/the-quiet-standardization-of-ai-agent-skills
1•Samuellrose•13m ago•0 comments

Forge: CLI for Multiple Git Forges

https://nesbitt.io/2026/03/13/forge.html
1•8organicbits•13m ago•0 comments

Gecko: A fast GLR parser with automatic syntax error recovery

https://vnmakarov.github.io/parsing/compilers/c/open-source/2026/04/22/gecko-glr.html
1•ibobev•13m ago•0 comments

The Billionaire Math Geek Who Turned AI into a Money-Printing Machine

https://www.wsj.com/finance/alex-gerko-xtx-markets-ai-d155626a
2•pondsider•14m ago•0 comments

RGC-Basic v2.0: Mod Tracker Music and Modern Games Capabilities

https://retrogamecoders.com/announcing-rgc-basic-v2/
2•ibobev•14m ago•0 comments

We Removed the Immune System

https://gothburz.substack.com/p/we-removed-the-immune-system
1•gmays•15m ago•1 comments

GameHub – Play Windows Games on Mac

https://www.gamemac.com/en/
1•norman784•15m ago•0 comments

The Atari 1200XL

https://www.goto10retro.com/p/inside-the-atari-1200xl
2•ibobev•15m ago•0 comments

Anthropic: Long-running Claude for scientific computing

https://www.anthropic.com/research/long-running-Claude
1•theorchid•17m ago•0 comments

Why Keynes Was Wrong

https://thecritic.co.uk/why-keynes-was-wrong/
1•RickJWagner•17m ago•0 comments

Ask HN: What's your favorite Emacs package?

3•blenderob•19m ago•0 comments

Can a geometric manifold solve AI hallucinations better than probability?

1•enitylabsindia•21m ago•0 comments