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

China's Deepin Linux gets a slick desktop – and, yes, built-in AI

https://www.theregister.com/2026/01/23/deepin_25010/
1•beardyw•59s ago•0 comments

Show HN: Obsidian Workflows with Gemini: Inbox Processing and Task Review

https://gist.github.com/juanpabloaj/59bc13fbed8a0f8e87791a3fb0360c19
1•juanpabloaj•1m ago•0 comments

Trmnl e-ink device (Cadet Pilot perspective)

1•jerr12939•2m ago•0 comments

Hang on, there's a Trump Phone Ultra coming too?

https://www.theverge.com/news/866601/trump-mobile-t1-ultra-phone-don-hendrickson-interview
1•catgirlinspace•3m ago•0 comments

Terence Tao: A crowdsourced repository for optimization constants?

https://terrytao.wordpress.com/2026/01/22/a-crowdsourced-repository-for-optimization-constants/
2•frozenseven•7m ago•1 comments

Dead Man's Switch: How to Automate Crypto Inheritance

https://www.deadhandprotocol.com/blog/dead-mans-switch-crypto-inheritance
1•maxcomperatore•8m ago•0 comments

What Happens to Your Crypto When You Die?

https://www.deadhandprotocol.com/blog/what-happens-to-crypto-when-you-die
1•maxcomperatore•9m ago•0 comments

We will rewrite SQLite. And we are going all-in (2025)

https://turso.tech/blog/we-will-rewrite-sqlite-and-we-are-going-all-in
2•tosh•10m ago•1 comments

I Stopped Reading Code. My Code Reviews Got Better

https://every.to/source-code/i-stopped-reading-code-my-code-reviews-got-better
3•nadis•13m ago•0 comments

Show HN: Startups.in: An in-development "global" startup intelligence database

https://startups.in
3•Startups_in•14m ago•2 comments

Report on European technological sovereignty and digital infrastructure

https://www.europarl.europa.eu/doceo/document/A-10-2025-0107_EN.html
1•doener•14m ago•0 comments

Interacting with Developers on Reddit

https://rmoff.net/2026/01/23/interacting-with-developers-on-reddit/
1•rmoff•15m ago•0 comments

We Hacked TikTok SEO and Got the AI to Recommend Our Product

https://llmmoney.beehiiv.com/p/how-we-hacked-tiktok-seo-and-got-the-ai-to-recommend-our-product-a...
2•devgod•22m ago•0 comments

Tesla discontinues Autopilot to boost adoption of its Full Self-Driving software

https://finance.yahoo.com/news/tesla-discontinues-autopilot-bid-boost-125644620.html
1•sizzle•24m ago•0 comments

Booking App for Freelancers

https://www.plotform.cc/
1•abdullah9•24m ago•0 comments

OpenAI is planning to take a cut of Customers' discoveries

https://twitter.com/WallStRollup/status/2014435871047459214
4•bwidlar•25m ago•0 comments

CVE-2026-0915: GNU C Library Fixes a Security Issue Present Since 1996

https://www.phoronix.com/news/Glibc-Security-Fix-For-1996-Bug
4•akyuu•26m ago•0 comments

New YC Site

https://www.ycombinator.com/
2•sarreph•26m ago•0 comments

Show HN: PingLater – A beautiful Chrome extension to snooze tabs

https://pinglater.vercel.app/
1•Patlakh•27m ago•1 comments

The Enchiridion by Epictetus

https://www.gutenberg.org/files/45109/45109-h/45109-h.htm
2•atropoles•27m ago•0 comments

Zotero 8

https://www.zotero.org/blog/zotero-8/
3•bouchard•29m ago•0 comments

Open Source has a "free rider" problem

https://substack.com/home/post/p-185339050
1•nvader•29m ago•1 comments

TV's are getting bigger and AI inside

https://ktla.com/news/tvs-are-getting-bigger-and-ai-inside/
3•Bender•30m ago•0 comments

Flux2kle.in Fast and Free Image Generator

https://flux2kle.in/
1•bingbing123•32m ago•1 comments

Learning to Discover at Test Time

https://test-time-training.github.io/discover/
1•emersonmacro•35m ago•0 comments

Microsoft gave FBI set of BitLocker encryption keys to unlock suspects' laptops

https://techcrunch.com/2026/01/23/microsoft-gave-fbi-a-set-of-bitlocker-encryption-keys-to-unlock...
80•bookofjoe•35m ago•51 comments

The Gödel Problem: A Mathematical Argument Against AI Thought [video]

https://www.youtube.com/watch?v=Vtdcdcwm7iw&list=PLoYRQl2t0w0EjRIb9Jr1yI90sSqoirgGB&index=8
1•pedro_movai•36m ago•0 comments

Building a product in 20 hours and growing it to a 5-figure ARR

https://www.indiehackers.com/post/tech/building-a-product-in-20-hours-and-growing-it-to-a-5-figur...
3•uprooted•37m ago•0 comments

Fighting AI Slop

https://actualbudget.org/blog/fighting-ai-slop/
2•iM8t•37m ago•0 comments

Submit a pitch: what needs to be built before advanced AI?

https://ifp.org/rfp-launch/
2•jonahwei•38m ago•0 comments