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

Modern Lab Experiments

https://wanda.fiu.edu/boeglinw/courses/Modern_lab_manual3/index.html
1•nill0•6m ago•0 comments

Privatemode.ai – AI provider with confidential computing

https://www.privatemode.ai/
1•pelzatessa•6m ago•1 comments

Lil Snack

https://www.lilsnack.com/
1•delian66•7m ago•0 comments

Too Much Type

https://toomuchtype.com/
2•marksully•8m ago•0 comments

Panel on Language Design (PG, John Maeda, Jonathan Rees, G. Steele) (2001) [video]

https://www.youtube.com/watch?v=agw-wlHGi0E
1•kerim-ca•11m ago•1 comments

Appendix: Mental Health for the Engineering Student

https://ariadacapo.net/articles/2026-05-10-appendix-a7-mental-health-for-the-engineering-student/
1•2DcAf•15m ago•0 comments

David Weinberger interviews Paul Graham about 'Taste for Makers' (2006) [video]

https://www.youtube.com/watch?v=s2DkhL_Bypo
1•kerim-ca•19m ago•1 comments

2.21B Won Frozen in Virtual Currency Shutdowns

https://www.chosun.com/english/market-money-en/2026/05/12/A24FVGP2G5HD3CCDX23UHRWFQY/
2•01-_-•20m ago•0 comments

Unitree GD01: China's $537k rideable transformer robot is now in production

https://gagadget.com/en/709729-unitree-gd01-chinas-537k-rideable-transformer-robot-is-now-in-prod...
4•rguiscard•25m ago•0 comments

I'm Making Strandfall, a Solarpunk Orienteering Larp

https://mssv.net/2026/04/29/im-making-strandfall-a-solarpunk-orienteering-larp/
1•adrianhon•26m ago•0 comments

Canva's Magic Layers AI Changed "Palestine" to "Ukraine" in User Designs

https://gizmodo.com/canva-admits-its-ai-tool-removed-palestine-from-designs-apologizes-for-any-di...
6•lebowska•30m ago•0 comments

Texas Attor­ney Gen­er­al Sues Net­flix for Spy­ing on Kids and Con­sumers

https://www.texasattorneygeneral.gov/news/releases/attorney-general-ken-paxton-sues-netflix-spyin...
1•frb•36m ago•0 comments

Teen Boys and Young Men Are Injecting Peptides in Search of Perfection

https://www.wsj.com/health/wellness/boys-peptides-stacks-looksmaxxing-trevor-larcom-835e58cd
3•petethomas•37m ago•1 comments

Ducklake-SDK: Use DuckLake from Python or Rust without going through DuckDB

https://github.com/borchero/ducklake-sdk
1•borchero•41m ago•0 comments

Learning Software Architecture

https://matklad.github.io/2026/05/12/software-architecture.html
32•surprisetalk•44m ago•0 comments

Face ID Search

https://www.faceidsearch.com/en
1•bellamoon544•49m ago•0 comments

URLSession to Electrons: how networking works under the hood

https://blog.jacobstechtavern.com/p/urlsession-to-electrons
1•jakey_bakey•50m ago•0 comments

Show HN: Affordable Survey Software

https://www.survser.com/
2•pkundr•51m ago•0 comments

DuckDB/DuckLake multi-user in the browser with Read/Write and WebSocket notify

https://ducklake-with-vgi.query-farm.services/
2•rustyconover•52m ago•0 comments

TanStack NPM Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack

https://socket.dev/blog/tanstack-npm-packages-compromised-mini-shai-hulud-supply-chain-attack
1•croes•57m ago•1 comments

Why should you have a data room? A stage-by-stage guide

https://vastpoint.substack.com/p/eng-why-should-you-have-a-data-room
1•kaku05ac•58m ago•0 comments

Lies, damned lies, and Elastic's benchmarks

https://www.gouthamve.dev/lies-damned-lies-and-elastics-benchmarks/
2•shutty•1h ago•0 comments

Loki Patera

https://en.wikipedia.org/wiki/Loki_Patera
1•DanielKehoe•1h ago•0 comments

SIEM and SoC: A Guide for Security Leaders in 2026

https://threatcrush.com/blog/siem-and-soc
1•buffer_overlord•1h ago•0 comments

EU Cloud Comparison Matrix

https://eualternative.eu/eu-cloud-comparison/
8•sparkling•1h ago•0 comments

Show HN: A benchmark where LLMs make memes from current news

https://memebench.net
3•max-azendorf•1h ago•1 comments

HDMI 2.1 Display Stream Compression (DSC) Ready for Amdgpu Linux Driver

https://www.phoronix.com/news/HDMI-2.1-DSC-AMDGPU-FRL
6•WithinReason•1h ago•0 comments

GitLab CI Functions

https://docs.gitlab.com/ci/functions/
2•yla92•1h ago•0 comments

The Jevons Paradox and the Future of Software Development

https://igorstechnoclub.com/the-jevons-paradox-and-the-future-of-software-development/
2•Igor_Wiwi•1h ago•0 comments

Rich [Sutton's] Slogans

http://incompleteideas.net/rlai.cs.ualberta.ca/RLAI/richsprinciples.html
2•atomicnature•1h ago•2 comments