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

US Military reportedly used Claude in Iran strikes despite Trump's ban

https://www.theguardian.com/technology/2026/mar/01/claude-anthropic-iran-strikes-us-military
1•_____k•50s ago•0 comments

The Management Myth [pdf]

http://pareto.uab.es/fsancho/The%20Management%20Myth.pdf
1•harperlee•1m ago•0 comments

Scientists study comet 3I/ATLAS to understand material from other star systems

https://comuniq.xyz/post?t=838
1•01-_-•2m ago•0 comments

Teaching LLMs to reason like Bayesians

https://research.google/blog/teaching-llms-to-reason-like-bayesians/
1•sebg•3m ago•0 comments

Styx Document Language

https://styx.bearcove.eu/
1•todsacerdoti•9m ago•0 comments

A Call for Meaningful Work at a Slower Pace

https://jenteottenburghs.wordpress.com/2025/11/18/a-call-for-meaningful-work-at-a-slower-pace/
2•carschno•9m ago•1 comments

Show HN: Anaya – CLI that scans codebases for DPDP compliance violations

https://github.com/sandip-pathe/anaya-scan
2•sandippathe•10m ago•1 comments

Show HN: Parsewise – Cursor for Business Documents

https://www.parsewise.ai/platform
2•maxhofer•10m ago•0 comments

Show HN: Chartle – Describe a chart in plain English and it creates it

https://www.chartle.app/
1•moorst•10m ago•1 comments

Show HN: A framework for building nexuses of agents

https://github.com/NetMindAI-Open/NexusAgent
1•Demi369•11m ago•0 comments

Fresh claim of making elusive 'hexagonal' diamond is the strongest yet

https://www.nature.com/articles/d41586-026-00711-9
1•Brajeshwar•15m ago•0 comments

AI can write genomes – how long until it creates synthetic life?

https://www.nature.com/articles/d41586-026-00681-y
1•Brajeshwar•15m ago•0 comments

Ex-Google PM Builds God's Eye to Monitor Iran in 4D [Text]

https://www.spatialintelligence.ai/p/the-intelligence-monopoly-is-over
2•fragmede•15m ago•1 comments

Show HN: Mnemora – Serverless memory DB for AI agents (no LLM in your CRUD path)

https://github.com/mnemora-db/mnemora
2•isaacgbc•19m ago•1 comments

Show HN: Slay the Spire 2 Wiki (database and card maker tool)

https://slaythespire2.gg
1•WanderZil•19m ago•1 comments

Top K is a deceptively hard problem in relational databases

https://www.paradedb.com/blog/optimizing-top-k
1•birdculture•20m ago•0 comments

Frak – a simple code deployment utility

https://github.com/frakjs/frak
1•strube•23m ago•0 comments

Ex-Google PM Builds God's Eye to Monitor Iran in 4D [video]

https://www.youtube.com/watch?v=0p8o7AeHDzg
2•KellyCriterion•24m ago•1 comments

Write Small Rust Scripts

https://llogiq.github.io/2026/03/05/auto.html
1•ingve•26m ago•0 comments

Bourdieu's theory of taste: a grumbling abrégé

https://dynomight.net/bourdieu/
1•sebg•27m ago•0 comments

Polsia – vibe coded companies with live revenue and digital marketing

https://polsia.com
1•DaedalusII•28m ago•0 comments

What's an API?

https://read.technically.dev/p/whats-an-api
1•sebg•30m ago•0 comments

Show HN: AI Governance Architecture – DB-Governed, LLM-Agnostic, EU AI Act

https://github.com/war851/AI-Governance-Architecture
1•war851•33m ago•1 comments

Paloha – Agence de communication Montpellier

https://paloha.fr/fr
1•PatrickNav•34m ago•1 comments

Are companies preventing sensitive data from being sent to external LLM APIs

1•jayakrishna96•35m ago•0 comments

Fly.io deleted my apps and DBs in an unrelated organization without warning

1•pakejro•37m ago•0 comments

Emacs internals: Deconstructing Lisp_Object in C (Part 2)

https://thecloudlet.github.io/blog/project/emacs-02/
2•thecloudlet•37m ago•0 comments

Deno Sandbox: run AI generated code with real isolation and complete control

https://deno.com/deploy/sandbox
1•AbuAssar•39m ago•0 comments

How to Convert OST File to PST File in Outlook?

https://blog.perfectdatasolutions.com/ost-to-pst-converter-software-2/
1•tieanderson•41m ago•1 comments

Stop Writing Instrumentation Code

https://encore.dev/blog/stop-writing-instrumentation-code
3•andout_•43m ago•0 comments