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

MySQL 9.6.0 and 8.4.8 are out; now available for live testing on sqlize.online

1•rozhnev•2m ago•0 comments

SoundSpark – Turn Your Music into Viral TikTok Content

https://www.soundspark.ai
1•Deps•2m ago•1 comments

The C-Shaped Hole in Package Management

https://nesbitt.io/2026/01/27/the-c-shaped-hole-in-package-management.html
1•tanganik•4m ago•0 comments

The Rise and Fall of Scala

https://www.beyondjava.net/newsflash-the-rise-and-fall-of-scala
1•todsacerdoti•5m ago•0 comments

PixelCrash – a tool to add glitches to a video

https://www.pixelcrash.xyz/
1•femtozer•8m ago•0 comments

Show HN: AdaQuiz – Adaptive Programming Quiz App with Spaced Repetition

https://adaquiz.online
1•9point5•9m ago•0 comments

Moltbot

https://www.molt.bot/
1•tin7in•11m ago•0 comments

Does Clawdbot/Moltbot pose AI self-replication concerns?

1•rafaelmdec•12m ago•0 comments

Travelling with a man I'd known for two days changed my life forever

https://www.bbc.com/news/articles/cg4enzg27xdo
2•hmmmmmmmmmmmmmm•15m ago•0 comments

AI: The Wrong Kind of Bubble

https://breadcrumb.vc/ai-the-wrong-kind-of-bubble-72aa224ef0a5
1•sameer_singh17•16m ago•2 comments

What are the best AI focussed YouTube channels these days?

1•obayesshelton•16m ago•0 comments

Unhashing All the Things: Making Sense of Ethereum Storage Traces

https://numtide.com/blog/unhashing-all-the-things-making-sense-of-ethereum-storage-traces
1•draganm•16m ago•0 comments

Superconducting nanowire memory array achieves significantly lower error rate

https://phys.org/news/2026-01-superconducting-nanowire-memory-array-significantly.html
1•rbanffy•16m ago•0 comments

Show HN: Page2Profit – Find where your landing page is losing revenue

https://page2profit.com
1•LokHin•19m ago•1 comments

Reddit Lawyers Force Founder to Redact "WallStreetBets" from Miami Event

https://finance.yahoo.com/news/reddit-lawyers-force-founder-redact-184500502.html
1•indy•19m ago•0 comments

DocBabel – Translate books and long documents with AI

https://docbabel.com/
1•migueldv•21m ago•1 comments

Injury to Buildings and Vegetables

https://www.nplusonemag.com/online-only/online-only/injury-to-buildings-and-vegetables/
2•casca•21m ago•0 comments

Is It Dangerous to Let Kids Be Free?

https://thewalrus.ca/is-it-dangerous-to-let-kids-be-free/
1•bryanrasmussen•23m ago•0 comments

The Next Thing Will Not Be Big

https://blog.glyph.im/2026/01/the-next-thing-will-not-be-big.html
1•bryanrasmussen•24m ago•0 comments

Made to discriminate: UN's Gender Inequality Index always finds women worse off

https://socialsommentary.substack.com/p/designed-to-discriminate-how-the
2•dandare•27m ago•0 comments

Codex Down

https://status.openai.com/incidents/01KFZB0A5C1D3TQED136VXFT9W
1•HarishSush•30m ago•0 comments

Clawdbot Changed Name

https://xcancel.com/moltbot/status/2016058924403753024
1•Alifatisk•30m ago•0 comments

Windows is Ruining New Laptops [video]

https://www.youtube.com/watch?v=fDwt9AiItqU
1•articsputnik•30m ago•0 comments

Rags and Tools and Bellyaches

https://federicopereiro.com/rags-tools-bellyaches/
1•swah•31m ago•0 comments

Show HN: Blink-Edit – Cursor-style next-edit predictions for Neovim (local LLMs)

https://github.com/BlinkResearchLabs/blink-edit.nvim
3•atemyipod•31m ago•0 comments

TikTok investigating why some users can't write "Epstein" in messages

https://www.npr.org/2026/01/27/nx-s1-5689104/tiktok-epstein-direct-messages
6•Tomte•32m ago•0 comments

TikTok censorship claims spark probe of app's handling of anti-Trump content

https://www.nbcnews.com/tech/internet/tiktok-fixed-power-outage-not-censorship-work-views-down-rc...
5•top_sigrid•32m ago•1 comments

Interview with Yafah Edelman about AI welfare

https://thingofthings.substack.com/p/interview-with-yafah-edelman-about
1•verisimi•32m ago•0 comments

Toothbrush-activated powder whitens, repairs and protects teeth

https://phys.org/news/2026-01-toothbrush-powder-whitens-teeth.html
2•rbanffy•33m ago•0 comments

Leaflet, standard.site, and open social publishing

https://lab.leaflet.pub/3md4qsktbms24
1•mefengl•34m ago•0 comments