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

Show HN: Bowbuilds, a configurator and tuning toolkit for compound archers

https://bowbuilds.com
1•whereismyreleas•1m ago•0 comments

Could Lovable's automatic 10% pay raise be the cure for toxic cultures?

https://techcrunch.com/2026/05/07/could-lovables-automatic-10-pay-raise-be-the-cure-for-toxic-cul...
1•doener•2m ago•0 comments

The Matrix Conference

https://conference.matrix.org/
1•doener•3m ago•0 comments

Feeding the Machine

https://www.theverge.com/cs/features/831818/ai-mercor-handshake-scale-surge-staffing-companies
1•amai•3m ago•0 comments

UFO Files Released by U.S. Shed Light on What the Government Knows

https://www.nytimes.com/2026/05/08/us/politics/ufo-sightings-us-government.html
1•quapster•4m ago•0 comments

Tell HN: Prayer with AI models is suboptimal

1•3pt14159•5m ago•0 comments

Show HN: I built a translator for SPANGLISH and mixed-language text

https://spanglishtranslator.net
1•Odeh13•5m ago•0 comments

Flatcar Container Linux – container optimized, immutable fs, config provisioning

https://www.flatcar.org/
1•gessha•6m ago•0 comments

Gulp – We have been made aware of a potential incident and are shutting down all

https://old.reddit.com/r/letsencrypt/comments/1t7ifve/gulp_we_have_been_made_aware_of_a_potential/
1•newsoftheday•7m ago•0 comments

NTFS-recover – NTFS data recovery when the MFT is corrupted

https://github.com/mjgil/rust-ntfs-recover
1•mjgil•8m ago•0 comments

Open TCP Connection in the Browser

https://developer.puter.com/networking/
1•ent101•9m ago•0 comments

1 in 277 PubMed-indexed 2026 papers shows fabricated references, says analysis

https://retractionwatch.com/2026/05/07/one-in-277-pubmed-indexed-papers-in-2026-shows-fabricated-...
1•bookofjoe•10m ago•1 comments

ShowHN: Guantr - Type-Safe JavaScript/TS Authorization Library; Major v2 Release

https://github.com/Hrdtr/guantr
1•hrdtr•12m ago•0 comments

Show HN: Cyoda-go – application platform in Go without the Temporal/Kafka glue

https://github.com/Cyoda-platform/cyoda-go
1•physix•13m ago•0 comments

DHCoin

https://github.com/StoyanDenev/decentralized-message-queue/
1•expeler•14m ago•0 comments

Fabricated citations: an audit across 2·5M biomedical papers

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(26)00603-3/fulltext
3•ep_jhu•17m ago•0 comments

Fifteen Portugese police officers detained in torture investigation

https://www.bbc.com/news/articles/c0r2zq9wg9xo
2•lastdong•17m ago•0 comments

Engineering Intelligence from Autocomplete

https://www.szia.ai/post/engineer-intelligence-from-autocomplete
1•mszel•18m ago•0 comments

Certificate Issuance through Let's Encrypt unavailable

https://www.cloudflarestatus.com/incidents/z3vgxxfvt3yb
1•hosteur•18m ago•0 comments

Why technology made the world richer and rich countries feel poorer

https://aesium22.substack.com/p/the-two-speed-economy
2•-__hn__-•18m ago•0 comments

The American, Intense World of High-School Debate

https://www.newyorker.com/magazine/2026/05/11/the-very-american-very-intense-world-of-high-school...
1•limitedfrom•19m ago•0 comments

AI's Big Messaging Pivot

https://www.noahpinion.blog/p/ais-big-messaging-pivot
1•paulpauper•19m ago•0 comments

Could development economics be more useful?

https://www.noahpinion.blog/p/could-development-economics-be-more
1•paulpauper•21m ago•0 comments

A simple point about diversification

https://marginalrevolution.com/marginalrevolution/2026/05/a-simple-point-about-diversification.html
1•paulpauper•22m ago•0 comments

Dirty Frag: Universal Linux LPE

https://github.com/V4bel/dirtyfrag
3•unbeli•22m ago•0 comments

Digg Is Back (Again)

3•basket278•23m ago•0 comments

NocTUI – Lightweight C Library for Building Terminal User Interfaces (TUIs)

https://github.com/UsboKirishima/noctui
2•333revenge•25m ago•0 comments

Real-Time Vibrotactile Stimulation and Inter-Brain Connectivity in Partner Dance

https://dl.acm.org/doi/10.1145/3731459.3773332
1•bookofjoe•25m ago•0 comments

Arena Physica

https://www.arenaphysica.com
1•skogstokig•26m ago•0 comments

Notes on Tanya M. Luhrmann's Book 'How God Becomes Real'

https://michaelnotebook.com/luhrmann/index.html
1•benbreen•26m ago•0 comments