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

Every AI app builder outputs React Native. I chose real Swift instead

1•Nativeline•1m ago•0 comments

After AI, there is no product

https://sidu.in/essays/after-ai-there-is-no-product.html
1•kaiwren•1m ago•1 comments

Show HN: From a simple travel expense tracker to a full business platform

https://SparkyMinis.com
1•who_dhanesh•1m ago•0 comments

No Code Web Scraper

https://nocodewebscraper.com/
1•mddanishyusuf•2m ago•0 comments

Jonathan Franzen's "10 rules for novelists"

https://www.futilitycloset.com/2026/02/19/decalogue-3/
1•beardyw•4m ago•0 comments

Eurisko

https://en.wikipedia.org/wiki/Eurisko
1•tosh•6m ago•0 comments

Show HN: Zvario – Branded social media content in seconds

https://zvario.com/
1•dan_j•10m ago•0 comments

Gnome OS Hackfest FOSDEM 2026

https://blogs.gnome.org/adrianvovk/2026/02/18/gnome-os-hackfest-fosdem-2026/
1•JNRowe•10m ago•0 comments

Hassett says authors of New York Fed tariff study should be disciplined

https://www.cnbc.com/2026/02/18/hassett-says-authors-of-new-york-fed-tariff-study-should-be-disci...
1•mraniki•11m ago•1 comments

Interop 2026

https://webkit.org/blog/17818/announcing-interop-2026/
1•nnx•11m ago•0 comments

Will AI kill Software businesses?

1•fluffyandsweet•13m ago•0 comments

Using LLMs to evaluate technical interview performance

https://dokasto.com/blog/we-are-letting-llms-decide/
1•ud0•14m ago•0 comments

My website is now ~2.8x faster after converting it to a Django LiveView SPA

https://en.andros.dev/blog/dd5a0746/my-website-is-now-28x-faster-after-converting-it-to-a-django-...
1•andros•17m ago•0 comments

Gemini will now generate musical slop for users

https://www.theregister.com/2026/02/18/google_musical_slop/
2•beardyw•23m ago•2 comments

Microsoft 365 Copilot for Android or iOS auto-sends files to AI and OneDrive

https://www.windowslatest.com/2026/02/18/microsoft-365-copilot-for-android-or-ios-auto-sends-file...
1•hliyan•23m ago•0 comments

Apps for Startups to Find Founders

https://play.google.com/store/apps/details?id=com.initiumapps.initium4founders&hl=en_US
1•colinbergin•24m ago•1 comments

The Human-in-the-Loop Is Tired

https://pydantic.dev/articles/the-human-in-the-loop-is-tired
2•summerscope•28m ago•1 comments

The 12-Factor App – 15 Years later. Does it Still Hold Up in 2026?

https://lukasniessen.medium.com/the-12-factor-app-15-years-later-does-it-still-hold-up-in-2026-c8...
1•birdculture•32m ago•0 comments

V&A Museum acquires YouTube's earliest video from 2005

https://www.cnn.com/2026/02/18/style/youtube-first-video-victoria-and-albert-museum
1•helsinkiandrew•43m ago•0 comments

Brep.io A new browser based parametric CAD modeler with custom BREP kernel

https://BREP.io
1•mmiscool•45m ago•1 comments

Convert: A universal file format converter, running in the browser

https://p2r3.github.io/convert/
1•memalign•46m ago•0 comments

Show HN: Kore – local AI memory layer with Ebbinghaus forgetting curve

https://github.com/auriti-web-design/kore-memory
1•juanauriti•49m ago•0 comments

The Psychology of Computer Programming by Gerald Weinberg (1998)

https://archive.org/details/psychologyofcomp00unse
2•pramodbiligiri•54m ago•0 comments

One Man Stole $660M. He'll Never Pay It Back

https://www.nytimes.com/2026/02/18/opinion/corruption-trump-accountability.html
1•jimnotgym•55m ago•0 comments

Show HN: Social Cookie Jar – Social media automation for AI agents

https://github.com/Artifact-Virtual/social-cookie-jar
1•artifactvirtual•56m ago•0 comments

Show HN: Deploy OpenClaw on your Own server in one click

https://agentdaddie.com
1•pushkar_aditya•58m ago•0 comments

The strenuous journey from a useful to a usable data science model

https://adri0.com/blog/strenuous-journey-to-a-usable-data-science-model
1•quite-sfwd•1h ago•0 comments

Phill CLI matches GPT-5.3-Codex on EVMbench audits (71% recall, 100% precision)

https://github.com/ayjays132/phill-cli
1•ayjays132•1h ago•2 comments

Show HN: Onairos SDK– Unified Context API, unlocking cross platform user history

https://onairos.io
1•BlasianHokage•1h ago•0 comments

Have we entered a new age of AI-enabled scientific discovery?

https://www.sciencenews.org/article/ai-enabled-science-discovery-insight
1•downboots•1h ago•0 comments