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•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•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

Web Tiles: composable docs and apps safe in any context

https://webtil.es/
1•cernocky•2m ago•0 comments

How to level up the Fediverse [video]

https://fosdem.org/2026/schedule/event/HVJRNV-how_to_level_up_the_fediverse/
1•todsacerdoti•2m ago•0 comments

Using YouTube as Cloud Storage

https://www.youtube.com/watch?v=l03Os5uwWmk
1•birdculture•4m ago•0 comments

Human Line Project – Protecting emotional well-being in the age of AI

https://www.thehumanlineproject.org/
1•leethargo•5m ago•0 comments

A curated list of excellent books to learn PostgreSQL

https://github.com/sara8086/PostgresBooks
1•dariubs•5m ago•0 comments

Google Docs more than just documents (2011)

https://blogs.ubc.ca/networked/2011/02/02/google-docs-more-than-just-documents/
2•corentin88•7m ago•0 comments

In Memoriam Marijn Meijles

https://vasilis.nl/nerd/2026/rip-marijn/
1•jandeboevrie•12m ago•0 comments

Anthropic AI Safety Researcher Warns of World in Peril in Resignation

https://www.forbes.com/sites/conormurray/2026/02/09/anthropic-ai-safety-researcher-warns-of-world...
1•jacquesm•13m ago•0 comments

Ask HN: How to Use `npx skills add` with On-Prem / Private Repos?

1•onurkanbkrc•14m ago•0 comments

Show HN: Intelligent skill selection system that reduces token consumption

https://github.com/onurkanbakirci/skills-gateway
1•onurkanbkrc•17m ago•0 comments

A Cosmic Miracle: A Remarkably Luminous Galaxy at z=14.44 Confirmed with JWST

https://astro.theoj.org/article/156033-a-cosmic-miracle-a-remarkably-luminous-galaxy-at-_z_-sub-s...
2•yread•17m ago•0 comments

Show HN: WinClaw – Open-source personal AI assistant that runs locally on any OS

https://github.com/itc-ou-shigou/winclaw
1•winclaw-dev•17m ago•0 comments

Fineimage.art – AI Image Generation and Editing Tool

https://fineimage.art
1•sjdeak•17m ago•1 comments

Steve Yegge on AI Agents and the Future of Software Engineering

https://newsletter.pragmaticengineer.com/p/steve-yegge-on-ai-agents-and-the
2•tosh•19m ago•0 comments

U.S. Senate bill exempts isolated power loads from FERC, DOE regulation

https://www.utilitydive.com/news/senate-bill-exempts-fully-isolated-large-loads-from-ferc-doe-reg...
1•walterbell•22m ago•0 comments

Show HN: A Guided Learning LLM

https://adaptive.bounded.cc
1•hirako2000•25m ago•0 comments

Windows Notepad App Remote Code Execution Vulnerability

https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-20841
1•rolisz•25m ago•0 comments

Show HN: Copy-and-patch compiler for hard real-time Python

https://github.com/Nonannet/copapy
1•Saloc•26m ago•0 comments

Show HN: DriftProof – Specification for preventing LLM behavioral drift

https://github.com/sarduine13-star/driftproof-risk-engine-
1•redwine13•27m ago•0 comments

MemOS OpenClaw Plugin Benchmark Results Are in Reduce 72% Token

https://twitter.com/MemOS_dev/status/2020854044583924111
1•MemTensor•28m ago•0 comments

A Stanford Experiment to Pair 5k Singles Has Taken over Campus

https://www.wsj.com/lifestyle/relationships/stanford-students-experiment-dating-date-drop-92a4aea8
2•erehweb•29m ago•0 comments

Show HN: Matchmaking where agents talk with agents to find compatible matches

https://github.com/skorotkiewicz/jupiter
1•modinfo•29m ago•0 comments

OpenAI Executive Who Opposed 'Adult Mode' Fired for Sexual Discrimination

https://www.wsj.com/tech/ai/openai-executive-who-opposed-adult-mode-fired-for-sexual-discriminati...
3•erehweb•30m ago•0 comments

The Security Checklist for Vibe Coders

https://asanchez.dev/blog/the-security-checklist-for-vibe-coders/
1•asanchezdev•34m ago•1 comments

FTX: Where Did the Money Go?

https://drive.google.com/file/d/1e2v-rcUqSFy4VI1MlWTLkJe-IeaFYBnl/edit
1•tosh•34m ago•1 comments

Show HN: Ledger – Yes, another blogging platform (but you own the database)

https://www.franzkafka.xyz/
1•mekod•35m ago•1 comments

A future without physics papers?

https://josephtoobysmith.com/cs/2026/02/11/Future-without-physics-papers.html
1•leanexplorer•38m ago•0 comments

Elegant Transducer Pipelines

https://old.reddit.com/r/Clojure/comments/1r179s1/the_transducer_that_ate_our_heap/
1•todsacerdoti•39m ago•0 comments

Flowspark

https://flowspark.net
1•ellebelle•41m ago•1 comments

Elegant Transducer Pipelines

https://gist.github.com/NicolasLambert/c3e51cb0b5314f2110161f85be24b4c7
1•todsacerdoti•41m ago•0 comments