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

SSL/TLS and PKI History

https://www.feistyduck.com/ssl-tls-and-pki-history/
1•fanf2•1m ago•0 comments

Virtual Scrolling: Rendering messages without lag

https://kreya.app/blog/using-virtual-scrolling/
1•CommonGuy•2m ago•0 comments

Pentagon AI chief praises Palantir tech for speeding battlefield strikes

https://www.theregister.com/2026/03/13/palantirs_maven_smart_system_iran/
1•jjgreen•6m ago•0 comments

Major Outage in Datadog Web Application

https://status.datadoghq.com
1•nzach•8m ago•0 comments

Meta Acquires Moltbook

https://www.nytimes.com/2026/03/10/technology/meta-moltbook-social-ai-bots.html
1•rakag•9m ago•0 comments

I hacked Perplexity Computer and got unlimited Claude Code

https://twitter.com/YousifAstar/status/2032214543292850427
1•tamnd•14m ago•0 comments

Gemini to Word exporter that preserves code blocks, tables, and headings

https://chromewebstore.google.com/detail/gemini-exporter-save-gemi/lgipeakgdkcgnkdljeagconfbfeolidj
2•mounter•17m ago•1 comments

Silicon Valley is buzzing about this new idea: AI compute as compensation

https://www.businessinsider.com/ai-compute-compensation-software-engineers-greg-brockman-2026-3
3•arnon•18m ago•3 comments

How to Hire SaaS Developers in 2026?

1•Sword_Software•20m ago•0 comments

Void, the Vite-native deployment platform

https://void.cloud/
1•wildpeaks•20m ago•1 comments

Internet Intro – hand-curated discovery site for independent web projects

https://internetintro.com/
1•BarBoost•21m ago•1 comments

Show HN: Agile V Skills – Open skills for verifiable, traceable AI engineering

https://github.com/Agile-V/agile_v_skills
1•JoshuaWellbrock•22m ago•0 comments

Server managed SQLite for multi-tenant? Open-source idea

https://old.reddit.com/r/sqlite/comments/1rra3ln/comment/oa6xnvi/
2•websku•26m ago•1 comments

Five layers from writing code to writing companies

https://engineering.taktile.com/blog/five-layers-from-writing-code-to-writing-companies/
6•joostrothweiler•26m ago•0 comments

Hackable single-file console file manager powered by uv with S3/GCS support

https://github.com/begoon/xc
1•begoon•27m ago•0 comments

Show HN: Update] StocksAnalyzer – Compare two stocks side-by-side

https://www.stocksanalyzer.app/compare
1•JuGaDev•27m ago•0 comments

The Shape of the Thing

https://www.oneusefulthing.org/p/the-shape-of-the-thing
1•andyjohnson0•28m ago•0 comments

Invoice OCR API for Logistics Expense Tracking Automation

1•azapi_ai•28m ago•0 comments

Rust and LLMs: The Compiler Does What Code Review Shouldn't Have To

https://blog.rezvov.com/rust-and-llms-the-compiler-does-what-code-review-shouldnt-have-to
1•alexrezvov•29m ago•0 comments

SBOM Adoption on PyPI Is at 1.58%. We Can Do Better

https://sbomify.com/2026/03/12/pypi-sbom-analysis/
1•mvip•31m ago•0 comments

Blue-LIRIC in rabbit cornea: efficacy, effects, and repetition rate (2022)

https://pmc.ncbi.nlm.nih.gov/articles/PMC9045900/
1•tempestn•35m ago•0 comments

One of Our Credit Card

https://honeypot.net/2026/03/12/one-of-our-credit-card.html
2•speckx•35m ago•0 comments

Blader/humanizer: Claude Code skill to remove AI-generated tells from writing

https://github.com/blader/humanizer
1•fragmede•36m ago•1 comments

JSFX on Fedora Linux: an ultra-fast audio prototyping engine

https://fedoramagazine.org/jsfx-on-fedora-linux-an-ultra-fast-audio-prototyping-engine/
1•ycollet•37m ago•0 comments

Design-Driven AI Development

https://ambitious-hosta-5ce.notion.site/Design-Driven-AI-Development-32254f55890480e48d55d86970f5...
1•DevManCry•37m ago•1 comments

'Devastating blow': Atlassian lays off 1,600 workers ahead of AI push

https://www.theguardian.com/technology/2026/mar/12/atlassian-layoffs-software-technology-ai-push-...
3•birdculture•42m ago•0 comments

2026 State of SaaS Report

https://seedium.io/offers/saas-market-report-2026/
1•seedium_tech•49m ago•0 comments

Show HN: Outsmart – a 5-round betting game against the computer

https://labs.davidbauer.ch/outsmart/
2•davidbauer•53m ago•0 comments

Pi-Autoresearch

https://github.com/davebcn87/pi-autoresearch
2•tin7in•55m ago•0 comments

Show HN: A small macOS app to send push notifications to the iOS Simulator

https://github.com/gogson/ios-simulator-push-notifier
2•opafan•58m ago•0 comments