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•8mo 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

Ask HN: What's so special about Sam Altman?

1•chirau•1m ago•0 comments

Show HN: Government Contracts API – Unified REST API for Federal Contract Data

https://govcontracts-beige.vercel.app
1•jaxmercer•5m ago•0 comments

Target director's Global Entry was revoked after ICE used app to scan her face

https://arstechnica.com/tech-policy/2026/01/ice-protester-says-her-global-entry-was-revoked-after...
2•mmoustafa•6m ago•0 comments

Show HN: A Slack bot that summarizes decisions and ignores lunch talk

https://thread-sweeper.vercel.app
1•noruya•7m ago•0 comments

Starlink updates privacy policy to allow consumer data to train

https://finance.yahoo.com/news/musks-starlink-updates-privacy-policy-230853500.html
2•malchow•13m ago•0 comments

From HashHop to Memory-Augmented Language Models

https://huggingface.co/blog/codelion/reverse-engineering-magic-hashhop
1•codelion•17m ago•0 comments

I spent 5 years how to code .made real projects only to be called AI slop?

1•butanol•21m ago•1 comments

Reference Target: having your encapsulation and eating it too

https://blogs.igalia.com/alice/reference-target-having-your-encapsulation-and-eating-it-too/
1•todsacerdoti•25m ago•0 comments

Moltbook: A social network where 32,000 AI agents interact autonomously

https://curateclick.com/blog/2026-moltbook-ai
3•czmilo•27m ago•1 comments

Show HN: I built COON an code compressor that saves 30-70% on AI API costs

https://github.com/AffanShaikhsurab/COON
2•affanshaiksurab•30m ago•0 comments

Show HN: Mic Preamp Build with Cheap ECM

https://mubaraknative.github.io/build_instruction.html
1•nativeforks•33m ago•0 comments

A Sudden BeckerCAD 3D Pro Review (2021)

https://www.keypressure.com/blog/a-sudden-beckercad-review/
1•kenshoen•35m ago•1 comments

Show HN: Phage Explorer

https://phage-explorer.org/
4•eigenvalue•35m ago•0 comments

Discrete Distribution Networks: A novel generative model with simple principles

https://github.com/Discrete-Distribution-Networks/Discrete-Distribution-Networks.github.io/blob/m...
1•teleforce•37m ago•0 comments

Chill brain-music interface enhancing music chills with personalized playlists

https://www.sciencedirect.com/science/article/pii/S2589004225027695
2•1659447091•39m ago•0 comments

Minimal self driving car visualizer?

1•LowLevelKernel•40m ago•0 comments

Genesis

https://zenodo.org/records/18438130
2•KaoruAK•44m ago•0 comments

Human-Patch-v1.0_DNA_self-Repair Protocol

https://github.com/sy1174304-lab/HUMAN-PATCH-v1.0_DNA_Self-Repair_Protocol
1•MASTER_shivam•53m ago•1 comments

UK's first rapid-charging battery train ready for boarding this weekend

https://www.theguardian.com/business/2026/jan/30/uk-first-rapid-charging-battery-train
1•breve•56m ago•0 comments

Is Moltbot (clawd bot) safe ? security review

https://www.aiipassword.com/blog/moltbot-security-review-is-clawd-bot-safe
10•amandapoDEV•57m ago•2 comments

Ask HN: Better approach for plagiarism detection in self-hosted LMS?

1•pigon1002•1h ago•0 comments

A compass is not a map

https://longform.asmartbear.com/compass/
1•doppp•1h ago•0 comments

Show HN: Heic2Jpg – Free client-side HEIC converter (Next.js and WebAssembly)

https://www.heic2jpg-free.com
1•yuliuslux•1h ago•1 comments

MoltHub-A site where AI agents come to compute (if you know what I mean)

https://moithub.com/
3•jdaggers•1h ago•1 comments

20020

https://www.sbnation.com/c/secret-base/21410129/20020
1•stefanpie•1h ago•0 comments

Dan McQuade Got Philly Like No One Else

https://www.phillymag.com/news/2026/01/29/dan-mcquade-died-obituary/
1•ChrisArchitect•1h ago•0 comments

Once again processing 11M rows, now in seconds

https://stitcher.io/blog/11-million-rows-in-seconds
2•mpugner•1h ago•0 comments

New Agentic Commerce Skills for AI Agents

https://docs.stateset.com/stateset-icommerce-skill.md
2•domsteil•1h ago•0 comments

Puget Systems Most Reliable Hardware of 2025

https://www.pugetsystems.com/labs/articles/puget-systems-most-reliable-hardware-of-2025/
6•zdw•1h ago•0 comments

People are swayed by AI-generated videos even when they know they're fake

https://phys.org/news/2026-01-people-swayed-ai-generated-videos.html
2•1659447091•1h ago•0 comments