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

What We Forget About Covid Will Shape the Next Pandemic

https://www.bloomberg.com/news/features/2026-03-06/covid-19-s-forgotten-lessons-will-shape-the-ne...
1•alephnerd•3m ago•0 comments

Surfers in Munich (Yes, Munich) Just Want Their Wave Back

https://www.nytimes.com/2026/03/07/world/europe/munich-surfing-wave.html
1•jeffwass•6m ago•0 comments

Markiplier discovering the value of On Premise Servers [video]

https://www.youtube.com/shorts/EM8NWE7_xFQ
1•Decabytes•8m ago•0 comments

Let's build a tool-using agent

https://educatedguesswork.org/posts/tool-calling/
1•ekr____•9m ago•0 comments

Unified Dasher Onboarding: A modular platform to scale globally

https://careersatdoordash.com/blog/doordash-unified-dasher-onboarding-a-modular-platform-to-scale...
1•evilsaloon•10m ago•0 comments

Coming Online

https://computerfuture.me/posts/coming-online
1•cmptrfuture•11m ago•0 comments

HyperCard Changed Everything [video]

https://www.youtube.com/watch?v=hxHkNToXga8
1•vinhnx•11m ago•0 comments

PC processors entered the Gigahertz era today in the year 2000 with AMD's Athlon

https://www.tomshardware.com/pc-components/cpus/pc-processors-entered-the-gigahertz-era-today-in-...
3•LorenDB•12m ago•0 comments

Show HN: AnyOneWillDo – instantly choose someone from a list

https://anyonewilldo.com
1•mkumm•13m ago•0 comments

Show HN: Diorooma – 3D room moodboard using screenshots from any furniture store

https://diorooma.com/
1•bakerr•13m ago•0 comments

Show HN: Zodex – AI Coding Environment

https://zodex.dev
1•furkankoseoglu•14m ago•0 comments

Tinnitus Is Connected to Sleep

https://www.sciencealert.com/tinnitus-is-somehow-connected-to-a-crucial-bodily-function
1•bookofjoe•15m ago•0 comments

Mitchell Hashimoto's new way of writing code [video]

https://www.youtube.com/watch?v=WjckELpzLOU
1•tosh•16m ago•0 comments

Show HN: ManyLens – Examine personal dilemmas through multiple perspectives

https://manylens.app
1•GoodRoots•16m ago•0 comments

AI Tooling for Software Engineers in 2026

https://newsletter.pragmaticengineer.com/p/ai-tooling-2026
1•vinhnx•17m ago•0 comments

Video Helper – open-source tool to extract mind maps and summaries from videos

https://github.com/LDJ-creat/video-helper
1•LDJ-create•18m ago•1 comments

I'm 17 and built an AI that generates GitHub READMEs from any repo URL

https://www.wabio.xyz/
2•youelfedr•18m ago•1 comments

OWASP's Top Ways to Attack LLMs: AI Vulnerabilities Exposed

https://www.youtube.com/watch?v=gUNXZMcd2jU
1•Brysonbw•18m ago•0 comments

Mojo: GPU Puzzles

https://puzzles.modular.com/
1•tosh•18m ago•0 comments

Show HN: Brf.it – Extracting code interfaces for LLM context

1•jeff-lee•20m ago•1 comments

Show HN: A tool that converts Excel files into dashboards instantly

https://www.datanestanalytics.com/
1•skandersab•21m ago•1 comments

Stop Making Models Smarter

1•noemit•23m ago•0 comments

Clanker cloud – fix all your DevOps issues with AI agents

https://clankercloud.ai/
2•tekbog•23m ago•0 comments

Show HN: NovaSCM – open-source SCCM alternative (WPF and Python and SQLite)

https://github.com/ClaudioBecchis/NovaSCM
1•Claudio82•24m ago•0 comments

Show HN: Somnia – a dream journal that locks 2 minutes after your alarm fires

https://www.somniavault.me/
1•SushanKKsdfsdf•27m ago•0 comments

Sneezy Does It

https://www.psychologytoday.com/sg/blog/in-excess/201604/sneezy-does-it
1•rzk•27m ago•0 comments

Ask HN: How do you enforce guardrails on Claude agents taking real actions?

1•uchibeke•34m ago•0 comments

Show HN: Bulk Image Generator – Create AI variations and remove bg in batch

https://bulkimagegenerator.app/
3•fairyFayra•35m ago•0 comments

Alt+Shift+Y to Strip Away Distractions

https://github.com/uscne/Yumi-Reader
1•uscneuscne•36m ago•1 comments

500 days of rdigest – a "feeds digest" CLI tool

https://notes.druchan.com/500-days-of-rdigest
1•druchan89•37m ago•0 comments