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

Wal3: A Write-Ahead Log for Chroma, Built on Object Storage

https://www.trychroma.com/engineering/wal3
1•tanelpoder•41s ago•0 comments

Firefly race – watch brains learn in realtime

https://claude.ai/public/artifacts/8b47e33d-13ba-48c8-aba8-c178e5a1c05c
1•logicallee•52s ago•1 comments

Why AI Coding Still Fails in Enterprise Teams

https://www.aviator.co/blog/ai-coding-in-enterprise-teams/
1•tonkkatonka•1m ago•1 comments

Vibethinking

https://gwendall.com/notes/vibethinking
1•ges•1m ago•0 comments

Training large language models on narrow tasks can lead to broad misalignment

https://www.nature.com/articles/s41586-025-09937-5
1•petemetefete•1m ago•0 comments

Catching Stars – finding customers and hires from your GitHub stargazers

https://blog.val.town/catching-stars
1•stevekrouse•2m ago•0 comments

The most interesting man: At long last, he's back [video]

https://www.youtube.com/watch?v=QhNWMHbltBY
1•leopoldj•2m ago•0 comments

Mastering Leet Code Algorithms

https://nemorize.com/roadmaps/mastering-leet-code-algorithms
3•reverseblade2•3m ago•0 comments

Twitter Is Down

https://www.tomsguide.com/live/news/twitter-x-outage-jan-16
4•nixass•5m ago•1 comments

Will Google Become Our AI-Powered Central Planner?

https://www.thebignewsletter.com/p/will-google-organize-the-worlds-prices
2•connor11528•6m ago•0 comments

Read at 600+ wpm using rapid serial visual representation (RSVP)

https://read-faster.com
2•spruce_tips•7m ago•0 comments

Starlink updates Privacy Policy to allow AI model training with personal data

https://coywolf.com/news/startups/starlink-updates-tos-to-allow-ai-model-training-with-personal-d...
6•speckx•8m ago•1 comments

AI will destroy jobs if not controlled, Khan warns

https://www.bbc.com/news/articles/c3r14991l5xo
2•tartoran•9m ago•0 comments

10,924x: The Instability Bomb at 1.7B Scale

https://taylorkolasinski.com/notes/mhc-reproduction-part2/
2•taykolasinski•11m ago•1 comments

Abandon Git LFS Because AI Agents

https://justin.poehnelt.com/posts/abandon-git-lfs-because-agents/
2•justinwp•13m ago•2 comments

DNS tunneling works in Iran; can you support us to scale?

https://github.com/bugfloyd/dnstt-deploy/blob/main/README.md
2•us321•15m ago•1 comments

Apple sits out AI arms race to play kingmaker between Google and OpenAI

https://www.ft.com/content/8033b1bc-4ffe-47ed-baf0-5abea6a1322a
3•Brajeshwar•15m ago•0 comments

How to be a great mentor in business and life

https://bigthink.com/business/how-to-be-a-great-mentor-in-business-and-life/
2•Brajeshwar•16m ago•0 comments

Show HN: ClientsOK – Forensic e-signature anchored on Bitcoin (eIDAS compliant)

https://clientsok.com/
2•Mirofts•16m ago•0 comments

GPU Memory Fundamentals

https://github.com/cverrier/tinygrad-tutos/blob/main/tutos/gpu_memory.md
3•ibobev•16m ago•0 comments

Many Bluetooth Devices with Google Fast Pair Vulnerable to "WhisperPair" Hack

https://arstechnica.com/gadgets/2026/01/researchers-reveal-whisperpair-attack-to-eavesdrop-on-goo...
2•Brajeshwar•16m ago•0 comments

Thoughts on No Graphics API

https://www.corsix.org/content/thoughts-on-no-graphics-api
4•ibobev•17m ago•0 comments

AWS Launches AWS European Sovereign Cloud and Announces Expansion Across Europe

https://press.aboutamazon.com/aws/2026/1/aws-launches-aws-european-sovereign-cloud-and-announces-...
3•jaredwiener•17m ago•1 comments

Open Responses: What you need to know

https://huggingface.co/blog/open-responses
2•ibobev•17m ago•0 comments

London cracked mobile phone coverage on the Underground

https://www.ianvisits.co.uk/articles/how-london-finally-cracked-mobile-phone-coverage-on-the-unde...
2•fanf2•17m ago•0 comments

Picat: A simple, powerful, logic-based multi-paradigm programming language

https://picat-lang.org
2•tempodox•18m ago•0 comments

Observations and Thoughts from 180 Days in Rome

https://avivbenyosef.com/180-observations-and-thoughts-from-180-days-in-rome/
3•avivby•20m ago•0 comments

BIP352: static payment addresses in Bitcoin without on-chain linkability

https://github.com/bitcoin/bips/blob/master/bip-0352.mediawiki
3•janandonly•21m ago•0 comments

High-Five to the Belgrade Hand

https://asianometry.passport.online/member/episode/high-five-to-the-belgrade-hand
3•gmays•21m ago•0 comments

20260116 – AI's first real casualties

https://e27.co/ais-first-real-casualties-the-tech-jobs-that-vanished-in-2025-20260116/
3•cumo•21m ago•0 comments