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

Visualize 4B Years: The Trillions of Generations: LUCA to Modern Human

https://www.g9n.com/tools/learning/evolution-visualisation
1•appsoftware•2m ago•1 comments

North American Computational Linguistics Open Competition

https://naclo.org/practice.php
1•Antibabelic•4m ago•0 comments

AI Headshot Generators Are Killing the $500 Photoshoot – Here's Why That Matters

https://medium.com/@naveensky/ai-headshot-generators-are-killing-the-500-photoshoot-heres-why-tha...
1•naveensky•6m ago•0 comments

Is Nano Banana Pro Overhyped?

https://twitter.com/GiaconeStefano/status/1995785300694471077
1•johntiror•8m ago•0 comments

Examining the security posture of an Anti-Crime Ecosystem [pdf]

https://github.com/GainSec/anti-crime-ecosystem-research/blob/main/whitepaper/GainSec_Whitepaper_...
1•beeburrt•11m ago•0 comments

Age of the 'scam state': how an illicit industry took root in south-East Asia

https://www.theguardian.com/technology/2025/dec/02/scam-state-multi-billion-dollar-industry-south...
1•n1b0m•11m ago•0 comments

Show HN: I want food – Simple swipe based restaurant discovery app

https://iwant.food/
2•b44rd•11m ago•0 comments

Invisible XML

https://www.xml.com/articles/2025/12/02/invisible-xml-update/
1•protomolecool•12m ago•1 comments

Rockstar co-founder compares AI to 'mad cow disease'

https://www.pcgamer.com/software/ai/rockstar-co-founder-compares-ai-to-mad-cow-disease-and-says-t...
2•nreece•13m ago•0 comments

Show HN: I was reintroduced to computers: Raspberry Pi

https://airoboticist.blog/2025/12/01/i-was-reintroduced-to-computers-raspberry-pi/
3•observer2022•17m ago•0 comments

After years building software, AI forced me to rethink a few assumptions

https://www.indiehackers.com/post/after-years-building-software-ai-forced-me-to-rethink-a-few-ass...
1•lyn03•17m ago•0 comments

Nvidia announces new open AI models and tools for autonomous driving research

https://techcrunch.com/2025/12/01/nvidia-announces-new-open-ai-models-and-tools-for-autonomous-dr...
1•sundarurfriend•19m ago•1 comments

Comparing AWS Lambda ARM64 vs. x86_64 Performance Across Runtimes in Late 2025

https://chrisebert.net/comparing-aws-lambda-arm64-vs-x86_64-performance-across-multiple-runtimes-...
2•hasanhaja•19m ago•0 comments

Samsung Launches Galaxy Z TriFold Smartphone with 10-Inch Display

https://www.macrumors.com/2025/12/01/samsung-galaxy-z-trifold-debut/
2•tosh•21m ago•0 comments

DataGuard responds as German parliament passes NIS2

https://www.dataguard.com/press/nis2-in-germany
1•doener•22m ago•0 comments

London Mayor urged to ban ads promoting cars and flights

https://walthamforestecho.co.uk/2025/11/25/mayor-urged-to-ban-ads-promoting-cars-and-flights/
1•robtherobber•22m ago•0 comments

Show HN: Nakso – An Excalidraw Alternative for Desktop

https://nakso.app
2•niklauslee•29m ago•2 comments

Would you rent B300 (Blackwell Ultra) GPUs in Mongolia at –$5/HR?

https://old.reddit.com/r/LocalLLaMA/comments/1pbzw8f/would_you_rent_b300_blackwell_ultra_gpus_in/
1•guerrilla•29m ago•1 comments

Show HN: SQLite-repair-go – Recover corrupt SQLite DBs when standard tools fail

https://github.com/Tougee/sqlite-repair-go
1•touge•30m ago•0 comments

$0 1-Year SSL Certificates (Certum Root)

https://www.servbay.com/store
1•Saltyfishh•31m ago•2 comments

Stanford AI Club: Jeff Dean on Important AI Trends [video]

https://www.youtube.com/watch?v=AnTw_t21ayE
1•intelkishan•31m ago•0 comments

Duplication Isn't Always an Anti-Pattern

https://medium.com/@HobokenDays/rethinking-duplication-c1f85f1c0102
2•birdculture•33m ago•0 comments

Decompiling Sanchar Saathi: Code Review of India's New Mandatory App

https://onlinetinker.com/blog/sanchar-saathi-security-analysis
3•shashikumar•40m ago•0 comments

Show HN: Spin the Yes or No Wheel – Get Your Free and Instant Decision

https://yesornot.net
1•light001•42m ago•0 comments

Ask HN: Any experience using LLMs to license-wash FOSS projects?

4•pera•44m ago•2 comments

Sovereign Tech Agency: Programs Director (All Genders)

https://www.sovereign.tech/jobs/programs-director
1•doener•45m ago•1 comments

A Tale of Two College Towns

https://hedgehogreview.com/issues/place-and-revolution/articles/a-tale-of-two-college-towns
1•samclemens•45m ago•0 comments

Show HN: Quantica v0.1.1 for Classical and Quantum Programming

https://quantica-foundation.github.io/quantica-lang/
1•gurukasi2006•47m ago•0 comments

Raptor: Autonomous Offensive/Defensive Research Framework Based on Claude Code

https://github.com/gadievron/raptor
1•ddiinn•47m ago•1 comments

UK digital ID plan gets a price tag at last – £1.8B

https://www.theregister.com/2025/11/28/digital_id_cost/
5•latexr•49m ago•0 comments