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

Ceremonial Bugle

https://ceremonialbugle.com/
1•mhb•5m ago•0 comments

Show HN: WebGPU back end for PyTorch sneak peek

https://github.com/jmaczan/torch-webgpu
2•yu3zhou4•9m ago•0 comments

What would someone like me do with a tiny modular synth? [pdf]

https://www.musicthing.co.uk/collateral/WhatWouldSomeoneLikeMeDoWithATinyModularSynth_book.pdf
1•mhb•10m ago•0 comments

Kernel Float: Unlocking Mixed-Precision GPU Programming

https://dl.acm.org/doi/pdf/10.1145/3779120
2•gpuhacker•10m ago•0 comments

Godfather of AI' Geoffrey Hinton says Google is 'beginning to overtake' OpenAI

https://www.businessinsider.com/ai-godfather-geoffrey-hinton-google-overtaking-openai-2025-12
2•ashishgupta2209•12m ago•0 comments

Resolution Dynamics: Deriving the Fine Structure Constant from Shannon Capacity

https://zenodo.org/records/17821936
2•Jascon71•12m ago•0 comments

Show HN: Seq2Seq ML Learns the Inverse of Manual Multiplication (Gelosia Method)

https://gitlab.com/9o1d/gelosia
1•9o1d•14m ago•0 comments

A Class of Models with the Potential to Represent Fundamental Physics

https://www.wolframphysics.org/technical-introduction/
1•frizlab•14m ago•0 comments

Iran files charges against organizers after women runners flout hijab law

https://www.timesofisrael.com/iran-files-charges-against-marathon-organizers-after-women-runners-...
1•mhb•16m ago•0 comments

Why "all-in-one" productivity tools confuse new users

3•suffei771•17m ago•0 comments

Check out these YouTube Slides generated by VeedoAI

https://veedo.ai/yt-slides/s/0VKmpTYVWV4FXBtm4
1•shortpodo•17m ago•0 comments

Tiny Core Linux: a 23 MB Linux distro with graphical desktop

http://www.tinycorelinux.net/
2•LorenDB•18m ago•0 comments

Show HN: WhispaQA, the intent-driven QA tool

https://whispaai.com
1•j_mao•18m ago•0 comments

Implementing AMD GPU debugger and user mode graphics drivers internals in Linux

https://thegeeko.me/blog/amd-gpu-debugging/
1•thegeeko•19m ago•0 comments

I asked AI researchers and economists about SWE career strategy and AI's future

https://chrisbarber.co/I+asked+AI+researchers+%26+economists+about+SWE+career+strategy+and+the+fu...
1•cjbarber•25m ago•0 comments

I Recently Upgraded the Travel Avatar Feature

https://smartavatar.net/travel-avatar
1•harryyansu4•27m ago•1 comments

Meta acquires AI device startup Limitless

https://techcrunch.com/2025/12/05/meta-acquires-ai-device-startup-limitless/
1•redohmy•27m ago•1 comments

C3 vs. Zig in 2025: Who's Fixing C? [video]

https://www.youtube.com/watch?v=y3tDZACGRAY
1•mpweiher•28m ago•0 comments

Super-Flat ASTs

https://jhwlr.io/super-flat-ast/
1•mpweiher•30m ago•0 comments

Kiss vs. DRY in Infrastructure as Code: Why Simple Often Beats Clever

https://rosesecurity.dev/2025/11/14/kiss-versus-dry-iac.html
1•prognostikos•30m ago•0 comments

A lost idea can be a lost universe

https://rishi.monster/posts/a-lost-idea-can-be-a-lost-universe/
1•wawhal•31m ago•0 comments

Things You Shouldn't Leave in the Shed This Winter

https://www.countryliving.com/gardening/garden-ideas/a69611445/things-to-not-put-garden-shed-winter/
2•mooreds•31m ago•0 comments

Show HN: Octopii – a distributed runtime written in Rust

https://github.com/octopii-rs/octopii
1•joeeverjk•32m ago•0 comments

Glitches on video calls linked to real-world decisions

https://www.theregister.com/2025/12/04/glitchy_video_calls_research/
1•radeeyate•32m ago•0 comments

What makes a Platform Team work [audio]

https://www.swarmia.com/podcast/mason-jones-zapier/
1•mooreds•33m ago•0 comments

Show HN: PyTorch-World v0.1.0: Build & Train World Models

https://github.com/ParamThakkar123/pytorch-world
1•paramthakkar•33m ago•0 comments

Memory Crunch Hits PCs: Dell Hikes Prices 20%, Lenovo from January 2026

https://www.trendforce.com/news/2025/12/05/exclusive-memory-crunch-hits-pcs-dell-hikes-prices-15-...
2•akyuu•34m ago•0 comments

New discovery: The 'sacred boundary' surrounding Stonehenge

https://www.dw.com/en/new-discovery-the-sacred-boundary-surrounding-stonehenge/a-75039682
1•politelemon•34m ago•0 comments

SDA Church pays fines for 11 inmates at Nsawam Prisons

https://www.adomonline.com/sda-church-pays-fines-for-11-inmates-at-nsawam-prisons/
1•sipofwater•35m ago•1 comments

The Last Year Before AGI and How to Build Software Teams That Survive the Shift

https://www.tenmas.tech/post/2026-the-last-year-before-agi-and-how-to-build-software-teams-that-s...
1•mooreds•35m ago•0 comments