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

Amazon DynamoDB now supports real-time vector search at any scale

https://aws.amazon.com/blogs/aws/amazon-dynamodb-now-supports-real-time-vector-search-at-any-scale/
1•cebert•1m ago•0 comments

Puzzle Corner

https://www.technologyreview.com/2026/08/05/1141230/puzzle-corner-84/
1•joozio•2m ago•0 comments

We Built Our Website with Claude Code with no Human interaction

https://soamee.com/en/blog/en-we-built-website-with-claude-code
1•javiermanzano•2m ago•0 comments

Show HN: Android client for DJI Osmo action/handheld cameras

https://github.com/KonradIT/osmosis
1•konraditurbe•4m ago•0 comments

Show HN: QR codes where your photo is the code, not pasted on top

https://sqr.art
1•mikaelcarlavan•4m ago•0 comments

New flapping robot from MIT swims and flies like a diving bird

https://news.mit.edu/2026/new-flapping-robot-swims-and-flies-like-diving-bird-0709
1•reconnecting•4m ago•0 comments

The Corporate Agentic Brain May Be the Next Honey Pot for a Rogue AI

https://serendb.substack.com/p/dont-let-your-corporate-agentic-brain
1•lewistaariq•5m ago•0 comments

Aiseesoft iKnockin for Mac

https://www.aiseesoft.com/pads/iknockin-for-mac.xml
1•aiseesoft•5m ago•1 comments

Show HN: I built a simple image-to-video tool with multiple AI models

https://imagetovideoai.tools/
1•airobus•5m ago•0 comments

Should Researchers Write Papers for AI Instead of People?

https://spectrum.ieee.org/ai-scientist-research-paper-format
1•pseudolus•8m ago•0 comments

OpenAI says Apple's trade secrets lawsuit is 'rotten to its core'

https://www.theverge.com/tech/976042/openai-apple-trade-secrets-lawsuit-dismissal-request
1•shscs911•10m ago•0 comments

I got tired of cutting reels out of long videos by hand, so I automated it

https://momentcut.app
1•lucaserla•12m ago•1 comments

China Is Building a Blue Granary

https://www.palladiummag.com/2026/08/04/china-is-building-a-blue-granary/
2•jger15•14m ago•0 comments

Show HN: Femto: A fork of kilo (text editor)

https://git.disroot.org/Vextoly/femto
1•Vextoly•15m ago•0 comments

New Best Agetic AI Model Named Saint

https://www.usesaint.com/
1•Malkiel_Godson•17m ago•0 comments

Upcoming deprecation of GitHub Spark on github.com

https://github.blog/changelog/2026-08-04-upcoming-deprecation-of-github-spark-on-github-com/
2•carlos-menezes•18m ago•0 comments

Google is expanding its AI empire – and losing the people who built it

https://www.cnbc.com/2026/08/05/google-is-expanding-its-ai-empire-and-losing-the-people-who-built...
4•pseudolus•20m ago•0 comments

Show HN: MakerBadge – a footer badge that links all the apps you've shipped

https://makerbadge.com
1•joffreyio•22m ago•0 comments

Show HN: Amber – A fast, C99 in-memory array language with q/kdb+ vocabulary

https://github.com/BonucciAndrea/amber
1•KonaEnthusiast•23m ago•0 comments

Ambert Indusrties

https://www.ambert.ae/event-and-exhibition
1•doshopzone•23m ago•0 comments

It's Easier Than Ever to Fly Private Without Your Own Jet

https://www.wsj.com/lifestyle/travel/its-easier-than-ever-to-fly-private-without-your-own-jet-a26...
1•bilsbie•24m ago•0 comments

Ratcn preview: Build beautiful TUI applications in Rust

https://ratcn.kristoferlund.se
1•gann_•24m ago•0 comments

Every Fucking Website (2013)

https://web.archive.org/web/20130304033523/http://everyfuckingwebsite.com/
2•xiaoyu2006•31m ago•1 comments

Supreme Council of the Pridnestrovian Moldavian Republic

https://en.vspmr.org/
1•Bluestein•32m ago•0 comments

The end of github: Soon We'll Share Blueprints, Not Code

https://medium.com/@atibakush/soon-well-share-blueprints-not-code-9c1377b47ae0
2•blinkybill•32m ago•1 comments

FAA Probes Loss of Separation Abetween Marine One and Envoy Air Jet

https://duckduckgo.com/l/?uddg=https%3A%2F%2Fsimpleflying.com%2Ffaa%2Dmarine%2Done%2Denvoy%2Dair%...
1•Rygian•32m ago•1 comments

High-Res Photo Shows Sand-Capped Butte Rising from Mars Plain of Polygons

https://petapixel.com/2026/08/04/amazing-high-res-photo-shows-a-butte-rising-from-mars/
1•bookofjoe•34m ago•0 comments

iPod Touch 3.1.3 QEMU Emulator working

https://hachyderm.io/@samhenrigold/117027375873199705
1•mariuz•35m ago•0 comments

Congo bans exports of copper, cobalt concentrates

https://www.reuters.com/world/africa/congo-bans-exports-copper-cobalt-concentrates-official-order...
2•TechTechTech•36m ago•0 comments

Google Shifts AI Leadership to California in Race Against Anthropic, OpenAI

https://www.bloomberg.com/news/articles/2026-08-06/google-shifts-ai-power-to-california-in-race-a...
1•htrp•37m ago•0 comments