frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

3•polishdude20•1y 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•1y 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•1y 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•1y 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•1y 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•1y ago
Oh yes I agree with you. It may become a big push to convince my org to do that

Sharekit – install someone's AI coding setup with one command

https://github.com/LucasSantana-Dev/sharekit
1•LukSantana•26s ago•0 comments

I don't want you to summarise the page

https://kevquirk.com/no-i-dont-want-you-to-summarise-the-page
2•speckx•1m ago•0 comments

Why AI tokens will send your enterprise cloud bill sky-high again

https://www.zdnet.com/article/why-ai-tokens-will-send-enterprise-cloud-bill-sky-high/
1•CrankyBear•1m ago•0 comments

What is the mechanical world picture?

http://edwardfeser.blogspot.com/2026/06/what-is-mechanical-world-picture.html
1•danielam•2m ago•0 comments

You Can't Subtract the Model

https://hari.computer/you-cant-subtract-the-model
1•markovblanket•4m ago•0 comments

Less is more, more or less

https://jakub.kr/writing/less-is-more
3•hnhsh•4m ago•1 comments

Factory job cuts in June neared financial crisis and Covid levels, S&P says

https://www.cnbc.com/2026/06/23/factory-job-cuts-reported-around-financial-crisis-and-covid-level...
3•toomuchtodo•6m ago•2 comments

Ask HN: Best prompt to show that AI isn't ready to take over

2•AndrewSwift•6m ago•0 comments

Show HN: Mirrorball – easy port forwarding for remote dev hosts

https://mirrorball.sanil.co/
3•sanil•9m ago•0 comments

Netflix's video podcast engagement numbers 'are low,' per insider

https://awfulannouncing.com/netflix/video-podcast-engagement-numbers-are-low-matthew-belloni.html
3•Vaslo•9m ago•0 comments

Ask HN: When should we expect DNS-persist-01 in production?

3•cromka•9m ago•0 comments

Show HN: Get lead and research lists from one search

https://sensecollect.com
2•chrislxy•10m ago•0 comments

Beehiiv adds Cloudflare AI Crawl Control so writers can block or allow bots

https://siliconangle.com/2026/06/23/beehiiv-adds-cloudflare-ai-crawl-control-writers-can-block-al...
3•ilreb•10m ago•0 comments

Designing an App Icon That Feels Like an Album Cover

https://rajavijayaraman.com/writing/designing-an-app-icon-that-feels-like-an-album-cover/
2•rajavijayaraman•10m ago•0 comments

Show HN

https://matchups.live/
2•uxmeekkow•11m ago•0 comments

Doctors Thought It Was Asthma. A.I. Flagged a Serious Heart Problem

https://www.nytimes.com/2026/06/22/health/artificial-intelligence-heart-damage.html
2•brandonb•11m ago•0 comments

Private Orchards – Practical iPhone Privacy and Security Guides

https://privateorchards.com/
2•PrivateOrchards•13m ago•0 comments

I turned World Cup data into posters

https://zehfernandes.com/posts/how-i-turned-world-cup-data-into-posters
2•plurby•13m ago•0 comments

Onsubmit.dev

https://onsubmit.dev
2•ekwoster•13m ago•0 comments

Show HN: Wype – Strip GPS, timestamps, and device models from your files

https://wype.onrender.com
2•achlyssecurity•14m ago•0 comments

Cargo Culture

https://www.wheresyoured.at/cargo-culture/
2•crescit_eundo•14m ago•0 comments

Seedance 2.5

https://seedance2.ai/seedance-2-5
4•bytegogogo•15m ago•0 comments

Study of niacin (vitamin B3) in patients with newly diagnosed glioblastoma

https://link.springer.com/article/10.1007/s11060-025-05351-z
4•bookofjoe•15m ago•0 comments

Shopify replaced Redis with MySQL for inventory reservations–and it scaled

https://shopify.engineering/scaling-inventory-reservations
2•ohjeez•16m ago•0 comments

Show HN: Snowscroll – I removed addictive feeds from social media

https://snowscroll.com/
2•junnam586•16m ago•0 comments

You Cannot Grow a Pumpkin

https://taylor.town/pumpkin
2•surprisetalk•18m ago•0 comments

Using Elasticsearch Percolate for User Notifications

https://acv.engineering/posts/elasticsearch-percolate/
2•mooreds•19m ago•0 comments

The unlikely upside to age-gating

https://reedandpickup.com/2026/06/17/the-unlikely-upside-to-agegating.html
2•speckx•19m ago•0 comments

Toward More Controllable AI Video Editing: Research Exploration at Netflix

https://netflixtechblog.com/toward-more-controllable-ai-video-editing-an-early-research-explorati...
2•MattSayar•22m ago•0 comments

Meta launches cheaper smart glasses without Ray-Ban

https://www.theverge.com/tech/954052/meta-glasses-hands-on-kylie-jenner-smart-glasses-price-batte...
3•dkobia•22m ago•1 comments