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

Show HN: CoThou v0.2 – Autonomous Superagent

https://cothou.com/
1•MartyD•3m ago•0 comments

DHS demands Google, Reddit, Meta, Discord provide data of users criticizing ICE

https://www.reddit.com/r/politics/s/DR5OaH9CV1
1•wahnfrieden•5m ago•1 comments

I am not joining OpenAI

1•Johnyjohnson123•5m ago•0 comments

Physicist: After 33 billon years, universe 'will end in a big crunch'

https://news.cornell.edu/stories/2025/10/physicist-after-33-billon-years-universe-will-end-big-cr...
1•danny00•6m ago•0 comments

Local AI Assistant for Linux That Runs Commands

https://github.com/zkzkGamal/zkzkAgent
1•Zakaria_Gamal•9m ago•0 comments

Show HN: OpenSustain.Analytics

https://opensustain-analytics.streamlit.app/
1•protontypes•9m ago•0 comments

Show HN: Speed Reader – Chrome extension for RSVP speed reading

https://chromewebstore.google.com/detail/speed-reader/iifbkjcdekfokhpjbiabfgjlloabpdlp
1•GlebShalimov•10m ago•0 comments

Olympic Curling - Super Smash Curling

https://github.com/newell-paul/super-smash-curling
1•paul_n3•13m ago•2 comments

Yates v. United States (2015)

https://en.wikipedia.org/wiki/Yates_v._United_States_(2015)
1•greyface-•14m ago•0 comments

Building Technical Cathedrals for an Audience That No Longer Visits Webs

https://en.andros.dev/blog/58441321/building-technical-cathedrals-for-an-audience-that-no-longer-...
1•andros•15m ago•0 comments

Unitree's Kung Fu Robot Demostration During the Chinese New Year Gala [video]

https://www.youtube.com/watch?v=R40IDdAkRZM
2•zaikunzhang•20m ago•0 comments

Show HN: I made an affiliate site that tracks sales with coupons, not cookies

https://refwaffle.com
1•jakemanger•20m ago•0 comments

Defensive Publication: A $0 Alternative to Patents for Bootstrapped SaaS

1•patentailab•23m ago•1 comments

Programming is no longer the main skill of SWE

https://edwardbx.com/articles/programming-skill/
1•crassus_ed•26m ago•0 comments

Share your core values with Claude Codd every time

https://github.com/albertnahas/claude-core-values
1•albertnahas•33m ago•1 comments

HN is an echo chamber of AI wrappers. Moving to Slashdot

4•mekod•41m ago•2 comments

AI is destroying open source, and it's not even good yet

https://www.youtube.com/watch?v=bZJ7A1QoUEI
1•liberostelios•42m ago•0 comments

Show HN: Toice – Local voice typing for Linux using Whisper

https://github.com/harshsharma2455/Toice
1•zherotz•43m ago•0 comments

Show HN: Game Engine in Julia with 400KB Exports (Vs Unity's 200MB)

https://github.com/sinisterMage/Open-Reality
3•MrNova•45m ago•2 comments

A passionate defense of the M Pro series of chips

https://birchtree.me/blog/a-passionate-defense-of-the-m-pro-series-of-chips/
3•ingve•47m ago•0 comments

Why AI writing is so generic, boring, and dangerous: Semantic ablation

https://www.theregister.com/2026/02/16/semantic_ablation_ai_writing/
2•KnuthIsGod•47m ago•0 comments

Site Runs on 30GB of RAM

https://nebezb.com/30gb-ram/
3•nebezb•51m ago•1 comments

Password managers less secure than promised

https://ethz.ch/en/news-and-events/eth-news/news/2026/02/password-managers-less-secure-than-promi...
1•sschueller•53m ago•0 comments

Prototyping UIs has always been a good fit for vibe coding

https://twitter.com/geoffreylitt/status/2023589705246200289
1•tosh•53m ago•0 comments

Apax pulls out of Pinewood Technologies takeover after AI scare

https://www.thetimes.com/business/companies-markets/article/apax-pinewood-technologies-bid-ai-fqq...
1•petethomas•53m ago•0 comments

Rust-CAS

https://github.com/ibkvictor/Rust-CAS
1•ibk_victor•55m ago•0 comments

Product Lock – A JSON spec that defines what your AI-built product is and isn't

https://github.com/nickjazz/product-lock
1•nickjazz1998•55m ago•0 comments

Bacterial strain from 5k-year-old cave ice has resistance against antibiotics

https://phys.org/news/2026-02-bacterial-strain-year-cave-ice.html
2•janandonly•56m ago•1 comments

Show HN: Free SEO Crawler and Analyze App

https://seodisias.com
1•aligundogdu•57m ago•0 comments

Show HN: Decision OS – A framework to evaluate job offer risk (not just salary)

1•cosmok•57m ago•1 comments