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

Advice I WISH I'D BEEN Told (1999)

http://web.archive.org/web/20090502012411/http://wwwstage.valpo.edu/english/vpr/mcdonaldessay.html
1•downbad_•43s ago•0 comments

Family data reveal two genetic paths to childhood depression and anxiety

https://medicalxpress.com/news/2026-04-family-reveal-genetic-paths-childhood.html
1•pseudolus•3m ago•0 comments

More than double the gas stuck in Hormuz is wasted each year, IEA says

https://www.ft.com/content/fdc6aa8a-538a-4f1d-b1b9-a0ce0cd2a5ac
1•JumpCrisscross•5m ago•0 comments

Kant: Was Ist Aufklärung?

https://www.hs-augsburg.de/~harsch/germanica/Chronologie/18Jh/Kant/kan_aufk.html
2•doener•7m ago•1 comments

Show HN: Valk Guard– Catches dangerous SQL hidden inside your ORM,no DB required

https://github.com/ValkDB/valk-guard
1•valkdb•9m ago•0 comments

Why do so many people use AI to cheat at fun?

https://www.thecut.com/article/would-you-use-chatgpt-to-cheat-at-hobbies.html
1•the-mitr•9m ago•0 comments

Reviving the internet radio in my 12-year-old Denon

https://victorantos.com/posts/i-bought-a-denon-for-my-wedding-then-i-vibe-coded-its-radio-back/
1•victorbuilds•10m ago•0 comments

GitHub (But It's a EU Project)

https://pinolallo.com/html/eurohub-demo.html
4•HipstaJules•12m ago•0 comments

Shoppers falsely identified by facial recognition struggle to clear their names

https://www.theguardian.com/technology/2026/may/03/guilty-until-proven-innocent-shoppers-falsely-...
1•rwmj•13m ago•0 comments

AI-Generated Code Has No Author – Ossature Blog

https://ossature.dev/blog/ai-generated-code-has-no-author/
1•lifeisstillgood•14m ago•0 comments

United flight collides with truck and light pole as it lands at Newark airport

https://www.cnn.com/2026/05/03/us/united-airlines-newark-truck-streetlight
2•blendergeek•14m ago•0 comments

The Arena of Seperation

https://drive.google.com/drive/folders/1LhbVuK--98o6UsyiCzTjQ3yxQb3VjWce?usp=sharing
1•thepppanda•15m ago•1 comments

10K+ Satellites in Space

https://tech.marksblogg.com/gcat-satellite-database.html
1•marklit•15m ago•1 comments

Agent Skill Pack: Market and Marketing and Monetization (9 and 2 Skills)

https://8253360822677.gumroad.com/l/beamer-agent-skills-market-marketing-monetization
1•davidvartanian•16m ago•0 comments

Ouster's new color Lidar is coming to replace cameras

https://techcrunch.com/2026/05/04/ousters-new-color-lidar-is-coming-to-replace-cameras/
1•jacobwiseberg•18m ago•0 comments

The wild life and brutal death of a crypto hustler

https://thelogic.co/news/the-big-read/kevin-mirshahi-bitcoin-cryptocurrency-influencer-murder/
2•pseudolus•20m ago•0 comments

Speed of Implementation and the Law of Shitty Click Throughs

https://taylorpearson.me/ctr/
1•rzk•20m ago•0 comments

May the Fourth Be with You

2•emreb•21m ago•0 comments

Show HN: Pictero.com – mostly browser based image toolbox

https://www.pictero.com/
1•y42•22m ago•0 comments

Prototype Fund is a funding program for innovative Open Source Software

https://www.prototypefund.de/en/
1•snowpid•25m ago•0 comments

Show HN: Pokelingo – guess the Pokémon from its Pokédex entry in target language

https://pokelingo.io/en/riddle/
1•itsprobablyme•26m ago•1 comments

CartLens

https://www.cartens.co/
1•watat83•27m ago•1 comments

The German town where people print their own money

https://www.youtube.com/watch?v=WzijH3lgzHI
1•modinfo•27m ago•0 comments

Ruflo: Multi-agent AI orchestration for Claude Code

https://github.com/ruvnet/ruflo/blob/main/docs/USERGUIDE.md
2•pramodbiligiri•27m ago•0 comments

Farewell and Thank You, Spirit

https://jackfromgetcho.substack.com/p/farewell-and-thank-you-spirit
1•jackconsidine•28m ago•0 comments

Medical Information Provided to AI Is Often Incomplete

https://www.uni-wuerzburg.de/en/news-and-events/news/detail/news/reis-nature-health/
2•JeanKage•29m ago•0 comments

Trademark violation: Fake Notepad++ for Mac

https://notepad-plus-plus.org/news/npp-trademark-infringement/
73•maxloh•40m ago•11 comments

Daintreehq/daintree: A delegation environment for orchestrating AI coding agents

https://github.com/daintreehq/daintree
1•ankitg12•43m ago•0 comments

Setting Up Server Monitoring for a Rails App on Hatchbox

https://blog.appsignal.com/2026/04/30/setting-up-server-monitoring-for-a-rails-app-on-hatchbox.html
1•andreigaspar•48m ago•0 comments

GameStop makes $55.5B takeover offer for eBay

https://www.bbc.co.uk/news/articles/cn0p8yled1do
38•n1b0m•49m ago•9 comments