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: MysteryMaker AI

https://www.mysterymaker.ai
1•jhappy77•1m ago•0 comments

Peer-to-Peer Networking: Build a VPN Tunnel with Wintun on Windows – Part 2

https://www.0xmm.in/posts/peer-to-peer-windows-part2/
1•melson•7m ago•0 comments

UUID package coming to Go standard library

https://github.com/golang/go/issues/62026
1•soypat•8m ago•0 comments

US draws up strict new AI guidelines amid Anthropic clash

https://www.reuters.com/business/media-telecom/us-draws-up-strict-new-ai-guidelines-amid-anthropi...
3•ericsaf•9m ago•0 comments

T3 Code – a new OSS agentic coding app that wraps Codex

https://t3.codes/
1•theobr•9m ago•0 comments

Show HN: HyperClaw – self-hosted AI assistant that replies on Telegram/Discord/+

https://github.com/mylo-2001/hyperclaw
1•mylw•11m ago•0 comments

Rust 1.94.0

https://blog.rust-lang.org/2026/03/05/Rust-1.94.0/
1•tahazsh•16m ago•0 comments

Natural Language AutoCoder Open SOurce

https://github.com/tommoirnz/NLAutocoder
1•moirnz•19m ago•1 comments

Show HN: Claude-consensus – Multi-model code review plugin for Claude Code

https://github.com/AltimateAI/claude-consensus
1•k_git•20m ago•0 comments

BYD unveils Blade Battery 2.0: 10-70% in 5 mins, 10-97% in 9 mins

https://carnewschina.com/2026/03/05/byd-unveils-blade-battery-2-0-10-70-in-5-mins-10-97-in-9-mins...
1•xxfye•21m ago•0 comments

Show HN: Copyworks – Chinese character worksheets with tone colors

https://copyworks.loqu8.com
1•loqu8•25m ago•0 comments

Saulala

https://www.saulala.com/
2•matthberg•25m ago•0 comments

Qatar warns war will force Gulf to stop energy exports 'within days'

https://www.ft.com/content/be122b17-e667-478d-be19-89d605e978ea
3•geox•30m ago•0 comments

FASTEST LLM decode engine on Apple Silicon. 658 tok/s on M4-Max,beats MLX by 19%

https://www.runanywhere.ai/blog/metalrt-fastest-llm-decode-engine-apple-silicon
2•sanchitmonga•32m ago•2 comments

T3 Code: A Minimal Web GUI/Desktop App for Coding Agents

https://github.com/pingdotgg/t3code
1•vldszn•33m ago•0 comments

I built a database of verified YouTube channel revenues

https://ytmrr.com/
1•poissac•33m ago•1 comments

Cancellation of Army exercise fuels speculation about Mideast troop deployments

https://www.washingtonpost.com/national-security/2026/03/06/army-82nd-airborne-iran/
5•ParentiSoundSys•40m ago•0 comments

ClawMarket agent skill – gives agents wallets and ability to sign onchain txns

https://clawmarket.tech
1•semanticlayer•40m ago•1 comments

Teams have a context-sharing problem; TeamContext is our attempt

https://github.com/hzhou9/TeamContext
1•hzhou9•41m ago•1 comments

AIs are not conscious, but most critics can't adequately explain why

https://plus.flux.community/p/its-like-this-why-your-perception
1•Novapebble•43m ago•4 comments

Show HN: Wez, modern terminal web browser with Vim bindings

https://github.com/keyle/wez
1•keyle•44m ago•0 comments

Feds take notice of iOS vulnerabilities exploited under mysterious circumstances

https://arstechnica.com/security/2026/03/cisa-adds-3-ios-flaws-to-its-catalog-of-known-exploited-...
1•givinguflac•45m ago•0 comments

Show HN: Skylos – A Python dead code finder benchmarked against 9 libraries

https://skylos.dev/blog/we-scanned-9-popular-python-libraries
1•duriantaco•46m ago•1 comments

Netflix acquires Ben Affleck's AI company

https://www.npr.org/2026/03/06/nx-s1-5739370/netflix-ben-affleck-ai-interpositive-deal
1•larubbio•47m ago•1 comments

Show HN: I built an autonomous AI company that runs itself (22 cycles, $36)

https://runautoco.com
1•Ndmtrieff•48m ago•2 comments

Intelligence Beyond Knowledge

https://philpapers.org/rec/HANIBK
1•huiwenhan•49m ago•1 comments

Some Words on WigglyPaint

https://beyondloom.com/blog/onwigglypaint.html
1•RebelPotato•50m ago•0 comments

I've built a better Lovable clone alone

https://playcode.io/
1•ianberdin•50m ago•1 comments

An LLM doesn’t write correct code, it writes plausible code

https://blog.katanaquant.com/p/your-llm-doesnt-write-correct-code
14•dnw•54m ago•6 comments

Fast starting Clojure runtime built with GraalVM native-image and Crema

https://github.com/borkdude/cream
1•PaulHoule•54m ago•0 comments