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

Ask HN: Books to Learn Ruby/Rails?

1•georgel•37s ago•0 comments

Mutual aid and asking people what they need

https://gomakethings.com/mutual-aid-and-asking-people-what-they-need/
1•mitchbob•1m ago•0 comments

AWS Databases are now available on v0 by Vercel

https://aws.amazon.com/about-aws/whats-new/2026/01/aws-databases-available-vercel-v0/
1•MaxLeiter•1m ago•0 comments

An Unfolding Scientific Revolution in Cosmology

https://economicsfromthetopdown.com/2026/01/15/an-unfolding-scientific-revolution-in-cosmology/
1•empiko•2m ago•0 comments

JustMD – A Minimal Markdown Editor

https://www.justmd.app/?error=Cannot%2BGET%2B%252Fjustmd.app&errorType=warning
1•luisfkandriolo•3m ago•0 comments

Any other lawyers find it hard to get client documents?

https://www.octadox.org
1•rookonfire•4m ago•1 comments

How We Red-Teamed Our Own AI Agent: Lessons from Operation Pale Fire

https://engineering.block.xyz/blog/how-we-red-teamed-our-own-ai-agent-
1•mellowart•4m ago•0 comments

Building big in space – Factorio [video]

https://www.youtube.com/watch?v=krnEjH4PcN0
1•ironbound•9m ago•0 comments

China and Canada Energy Pact as Canada Aims to Cut Reliance on US

https://www.bloomberg.com/news/articles/2026-01-15/canada-china-ink-energy-pact-as-carney-aims-to...
3•KnuthIsGod•9m ago•1 comments

Comparison of 14 data analytics agents

https://thenewaiorder.substack.com/p/i-tested-14-analytics-agents-so-you
1•blef•13m ago•0 comments

Stablecoin Narrow Banking

https://www.bloomberg.com/opinion/newsletters/2026-01-15/stablecoin-narrow-banking
1•feross•16m ago•0 comments

Offline voice input keyboard for Android using Nvidia's Parakeet v3

https://github.com/notune/android_transcribe_app
1•fittingopposite•16m ago•1 comments

Show HN: Jtpck sends your Claude Code, Codex, and Gemini CLI back to you

https://JTPCK.com
1•piratebroadcast•16m ago•0 comments

Dell warns against reusing SSDs as flash shortages bite

https://blocksandfiles.com/2026/01/15/dell-flash-reclaim/
1•tanelpoder•20m ago•0 comments

2026: This is AGI

https://sequoiacap.com/article/2026-this-is-agi/
2•tfincannon•21m ago•3 comments

Systemd, Vsock, & OpenSSH-Server

https://blog.nsrun.io/2026/01/15/systemd-vsock-openssh-server/
1•nyrikki•23m ago•1 comments

The Golden Thread

https://roe.dev/blog/the-golden-thread
2•rmason•24m ago•0 comments

Data Science Weekly – Issue 634

https://datascienceweekly.substack.com/p/data-science-weekly-issue-634
1•sebg•27m ago•0 comments

Depth-First Unary Degree Sequence

https://bruceediger.com/posts/dfuds/
1•todsacerdoti•28m ago•0 comments

The foundation powering modern AI agents

https://starterbase.dev
1•edihasaj•30m ago•0 comments

BugStalker for Rust

https://godzie44.github.io/BugStalker/
1•electronsoup•33m ago•0 comments

Google to pay $8.25mm to settle lawsuit alleging children's privacy violations

https://therecord.media/google-youtube-lawsuit-settle
3•WaitWaitWha•33m ago•1 comments

Senegal's Spear-Wielding Savannah Chimps Yield Clues on Humanity's Past

https://www.barrons.com/news/senegal-s-spear-wielding-savannah-chimps-yield-clues-on-humanity-s-p...
2•wjb3•33m ago•0 comments

DHS Secretary Kristi Noem Says People Should Be Prepared to Prove US Citizenship

https://www.newsweek.com/kristi-noem-ice-us-citizenship-minnesota-shooting-identity-11366671
20•throw0101c•35m ago•7 comments

Skin Implant That Glows Green May Help Detect Illness in Advance

https://talker.news/2026/01/12/japanese-scientists-living-skin-implant-glows-to-warn-of-illness/
1•wjb3•36m ago•0 comments

Solving for ambiguity as a staff software engineer

https://ashgaikwad.substack.com/p/solving-for-ambiguity
1•ashgkwd•36m ago•1 comments

'Star Wars' Boss [Kathleen Kennedy] Departs, Ending an Asteroid-Filled Reign

https://www.nytimes.com/2026/01/15/business/star-wars-lucasfilm-kathleen-kennedy.htmlu6
2•falcor84•36m ago•2 comments

Aspartame decreases fat but reduces cognitive performance and enlarges heart

https://www.sciencedirect.com/science/article/pii/S0753332225010856
3•PaulHoule•37m ago•0 comments

Cursor CEO Built a Browser Using AI, but Does It Work?

https://www.finalroundai.com/blog/cursor-ceo-browser-made-using-ai
1•signa11•39m ago•0 comments

Ask HN: Did OpenAI just disable codex CLI login for workspace accounts?

2•amluto•40m ago•0 comments