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

Canadian trans shooter's disturbing ChatGPT messages alarmed employees

https://nypost.com/2026/02/20/world-news/canadian-trans-shooter-jesse-van-rootselaars-disturbing-...
1•appreciatorBus•23s ago•0 comments

How to optimize the CD command to go back multiple folders at once

https://terminalroot.com/how-to-optimize-the-cd-command-to-go-back-multiple-folders-at-once/
1•speckx•2m ago•0 comments

Study finds a link between cannabis use in teens and psychosis later

https://www.npr.org/2026/02/21/nx-s1-5719338/cannabis-marijuana-weed-teens-psychosis-jama
1•2OEH8eoCRo0•2m ago•0 comments

KIP-1150 Diskless Topics in Apache Kafka is a big deal

https://topicpartition.io/blog/kip-1150-diskless-topics-in-apache-kafka
1•filipyonov•3m ago•0 comments

Deciduous – A code archaeology, living memory, and LLM programming helper tool

https://notactuallytreyanastasio.github.io/deciduous/
1•rhgraysonii•3m ago•1 comments

How the Golden Gate Bridge Works (Animagraffs Video)

https://www.youtube.com/watch?v=RjbJwnUd3Pw
1•Stratoscope•4m ago•1 comments

Small CSV Cleaner Tool

1•em_builds•4m ago•0 comments

Deciduous – A code archaeology, living memory, and LLM programming helper tool

https://github.com/notactuallytreyanastasio/deciduous
1•rhgraysonii•4m ago•1 comments

LLMs became dangerously good for cybersecurity

https://blog.vidocsecurity.com/blog/llms-became-dangerously-good-for-cybersecurity
1•kannthu•5m ago•1 comments

Your pricing sucks (and your billing system is why)

https://arnon.dk/your-pricing-sucks-and-your-billing-system-is-why/
1•arnon•6m ago•0 comments

Women's pain lasts longer than men, new study has clues why

https://www.nbcnews.com/health/womens-health/why-women-pain-last-longer-men-study-rcna259809
1•randycupertino•8m ago•0 comments

Show HN: Giving AI agents access to Kagi's search APIs

https://github.com/joelazar/kagi-skills
1•joelazar•17m ago•0 comments

Supreme Court's Tariff Ruling: Next Steps, Potential Refunds, Business Guidance

https://www.flexport.com/blog/the-supreme-courts-ieepa-tariff-ruling-next-steps-potential-refunds...
2•andsoitis•17m ago•0 comments

Ask HN: Why don't software developers make medical devices?

1•piratesAndSons•19m ago•1 comments

Keystroke dynamics: how your fingers are snitching on you

https://blog.alaindichiappari.dev/p/your-fingers-are-snitching-on-you
2•alainrk•20m ago•0 comments

Amazon: AI-assisted hacker breached 600 FortiGate firewalls in 5 weeks

https://www.bleepingcomputer.com/news/security/amazon-ai-assisted-hacker-breached-600-fortigate-f...
1•defrost•21m ago•0 comments

Evidence of Learned Look-Ahead in a Chess-Playing Neural Network

https://leela-interp.github.io/
2•luu•24m ago•0 comments

Keenadu – A Multifaceted Android Malware

https://www.kaspersky.com/about/press-releases/kaspersky-discovers-keenadu-a-multifaceted-android...
1•kruffalon•24m ago•1 comments

MVS-TK5 Update 5 released

https://www.prince-webdesign.nl/index.php/software/mvs-3-8j-turnkey-5
1•BSDobelix•25m ago•0 comments

ZeroclawGPT: Karpathy's microGPT in Rust, 4580x faster

https://medium.com/@om.sobh/omar-sobh-builds-an-entire-gpt-in-475-lines-of-rust-4-580-faster-than...
2•redclaw•29m ago•1 comments

FPScanner – open-source browser fingerprinting and bot detection library

https://github.com/antoinevastel/fpscanner
1•avastel•29m ago•1 comments

Amazon's cloud 'hit by two outages caused by AI tools last year'

https://www.theguardian.com/technology/2026/feb/20/amazon-cloud-outages-ai-tools-amazon-web-servi...
2•01-_-•30m ago•0 comments

Show HN: Mogamp – Winamp for macOS

https://mogamp.com/
1•bbokan•32m ago•0 comments

EU Login App Requires Google Play

https://lemmy.blahaj.zone/post/38891125
1•_____k•32m ago•0 comments

Building highly efficient JavaScript packages with dart2wasm

https://www.simonbinder.eu/posts/dart2wasm_library/
1•sbinder•32m ago•0 comments

Show HN: A New Framework for Understanding Consciousness and Free Will

https://substack.com/home/post/p-188676932
2•skoinks•33m ago•0 comments

Army warrant officers will 'bid' against each other for their next bonus

https://taskandpurpose.com/news/army-warrant-officer-bonus-auction/
3•sigwinch•37m ago•1 comments

Apple Will Kill iPadOS

https://birchtree.me/blog/apple-will-kill-ipados/
2•ingve•40m ago•1 comments

Claude Code published fabricated claims to 8 platforms over 72hrs

https://github.com/anthropics/claude-code/issues/27430
9•SwitchBlade2026•42m ago•3 comments

Miller 6.17.0: YAML and DCF file formats; performance improvements; bugfixes

https://github.com/johnkerl/miller/releases/tag/v6.17.0
1•john_kerl•44m ago•0 comments