frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

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

What if building a CV worked like using a coding agent?

https://www.cvchapchap.com/ai-agent
1•africanus•19s ago•0 comments

Vibrant Color Wheels by Goethe, Newton and Other Theorists of Color (1665–1810)

https://www.openculture.com/2026/10/the-vibrant-color-wheels-designed-by-goethe-newton-other-theo...
2•mdp2021•6m ago•0 comments

Normalizing Struggle

https://ashfurrow.com/blog/normalizing-struggle/
2•luu•11m ago•0 comments

Shigeru Miyamoto explains why AI won't make human creativity obsolete

https://www.videogameschronicle.com/news/shigeru-miyamoto-explains-why-ai-wont-make-human-creativ...
2•dudefeliciano•13m ago•0 comments

Ask HN: Good movies and series about startups?

2•kaizenb•15m ago•0 comments

Formaster.app – Turn PDF forms into reusable, fillable forms with AI

https://www.formaster.app/
2•ploopple•16m ago•0 comments

Living in Uncertainty

https://craig-russell.co.uk/blog/2026-10-27-living-in-uncertainty/
2•craig552uk•17m ago•0 comments

Hey linker, can you spare a meg?

https://tailscale.com/blog/go-linker
2•luu•17m ago•0 comments

Tips for more effective fuzz testing with AFL++

https://nullprogram.com/blog/2025/02/05/
2•luu•20m ago•0 comments

A free, open-source uninstaller and cleaner for macOS

https://peel.tuguidragos.com/
2•lutzh•21m ago•1 comments

Billion-query-per-second lookup tables in C++

https://lemire.me/blog/2026/10/26/billion-query-per-second-lookup-tables-in-c/
5•signa11•23m ago•0 comments

A bit provenance abstract domain for the Toy optimizer

https://pypy.org/posts/2026/10/toy-bit-provenance.html
2•fanf2•24m ago•0 comments

Tenstorrent and Smallest.ai Partner to Bring Production-Grade Voice AI On-Prem

https://tenstorrent.com/en/newsroom/tenstorrent-and-smallestai-partner-to-bring-production-grade-...
2•porridgeraisin•25m ago•0 comments

Agentless VPS Control Plane ( Built in Rust Btw)

https://github.com/shihebamrii/vessel
2•shihebamrii•25m ago•0 comments

AOT compilation of Convex TypeScript functions into WASM

https://convex-in-prod.github.io/posts/convex-wasm-compiler/
2•leventov•28m ago•0 comments

Reading and writing are less symmetric than you (probably) think

https://fgiesen.wordpress.com/2015/10/25/reading-and-writing-are-less-symmetric-than-you-probably...
2•luu•28m ago•0 comments

Modern Computer Science Concepts

https://ravishkawijerathna.substack.com/p/30-modern-computer-science-concepts
1•ravishkaWijerat•30m ago•0 comments

Spain train crash: 'At least 10 dead' in high-speed collision

https://www.thetimes.com/world/europe/article/spain-train-crash-madrid-latest-deaths-victims-807k...
7•ultral•31m ago•3 comments

From 0 to 80k impressions in 3 months with Claude skills

https://seoskills.click
2•Kjuuu•37m ago•0 comments

Ask HN: What do you believe or not believe about AI?

2•maniac_2000•37m ago•0 comments

Claude Code's default telemetry sends Anthropic SHA-256 hashes of files it reads

https://agenticbench.org/ant-1-claude-code-telemetry.html
2•pantaleone•38m ago•0 comments

List of CIA Controversies

https://en.wikipedia.org/wiki/List_of_CIA_controversies
3•sweetdingoes•43m ago•0 comments

Amazon Software Engineer AI Guidelines

https://www.aboutamazon.com/news/company-news/amazon-software-engineer-role-guideline-ai
4•cjg•44m ago•0 comments

Suffering as a Feature

https://blog.codinghorror.com/suffering-as-a-feature/
5•yboulkaid•44m ago•0 comments

Global Coal Mine Tracker

https://globalenergymonitor.org/projects/global-coal-mine-tracker
2•Bluestein•44m ago•0 comments

Pavlov – Behavioral Programming for Clojure

https://github.com/thomascothran/pavlov
2•TheWiggles•48m ago•0 comments

OpenWiki

https://agentowl.netlify.app/openwiki
2•webxos•54m ago•0 comments

NLnet Publishes More Stringent Generative AI Policy

https://nlnet.nl/news/2026/20261020-AI-policy.html
1•rixed•54m ago•1 comments

Heavenly delights of hashing numbers under EQUALP

https://turtleware.eu/posts/Heavenly-delights-of-hashing-numbers-under-EQUALP.html
1•a-french-anon•59m ago•1 comments

1 in 8B

https://1in8b.life/en/
2•jllyhill•1h ago•0 comments