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

Outage of Coveralls

https://status.coveralls.io
1•sega_sai•37s ago•0 comments

Getting Global Age Assurance Right: What We Got Wrong and What's Changing

https://discord.com/blog/getting-global-age-assurance-right-what-we-got-wrong-and-whats-changing
1•Alupis•2m ago•0 comments

Tldraw moves tests to closed source to avoid AI copies

https://simonwillison.net/2026/Feb/25/closed-tests/
1•jbernardo95•3m ago•0 comments

Tech firms aren't just encouraging their workers to use AI. They're enforcing it

https://www.msn.com/en-us/money/other/tech-firms-aren-t-just-encouraging-their-workers-to-use-ai-...
1•smurda•3m ago•0 comments

The first transatlantic fiber-optic cable is being ripped up

https://www.tomshardware.com/tech-industry/the-worlds-first-transatlantic-fiber-optic-cable-is-be...
1•gnfargbl•5m ago•0 comments

Live – AI that runs your company

https://polsia.com/live
1•seyz•5m ago•0 comments

Fix cron routes: POST → GET (Vercel cron sends GET)

1•nishiohiroshi•7m ago•0 comments

Show HN: OrangeWalrus, an aggregator for trivia nights (and other events) in SF

https://www.orangewalrus.com/
2•gjtrowbridge•8m ago•0 comments

Banned in California

https://www.bannedincalifornia.org/
4•pie_flavor•9m ago•0 comments

What AI can and cannot do

https://greyenlightenment.com/2026/02/23/what-ai-can-and-cannot-do/
1•paulpauper•10m ago•0 comments

Tetraethylenepentamine-Grafted Magnetic Polymer Composite for CO2 Capture

https://www.mdpi.com/2297-8739/13/2/56
1•PaulHoule•11m ago•0 comments

Anthropic and the Department of War

https://thezvi.substack.com/p/anthropic-and-the-department-of-war
3•paulpauper•12m ago•0 comments

Show HN: Unworldly – A flight recorder for AI agents (tamper-proof, HIPAA)

https://github.com/DilawarShafiq/unworldly
1•dilawargopang•12m ago•0 comments

Buying News by Metric

https://www.overcomingbias.com/p/buying-news-by-metric
1•paulpauper•12m ago•0 comments

Ask HN: What will happen with Anthropics ultimatum?

2•maniacwhat•13m ago•0 comments

Origin of the rule that swap size should be 2x of the physical memory

https://retrocomputing.stackexchange.com/questions/32492/origin-of-the-rule-that-swap-size-should...
2•SeenNotHeard•16m ago•0 comments

Microsoft CEO slams AI slop after dismissing its importance

https://www.theregister.com/2026/02/25/microsoft_boss_on_ai_content/
2•LorenDB•17m ago•0 comments

Show HN: Tesseract – 3D architecture editor with MCP for AI-assisted design

https://tesseract.infrastellar.dev
2•infrastellar•20m ago•0 comments

At Last I Am Free

https://magiconair.net/blog/2026-02-25-at-last-i-am-free
1•magiconair•21m ago•0 comments

What We Aren't Told About Osteoporosis

https://www.midwesterndoctor.com/p/what-we-arent-told-about-osteoporosis
2•bilsbie•23m ago•0 comments

First Website

https://info.cern.ch
5•shrikaranhanda•23m ago•0 comments

Hacker Used Anthropic's Claude to Steal Mexican Data Trove

https://www.bloomberg.com/news/articles/2026-02-25/hacker-used-anthropic-s-claude-to-steal-sensit...
3•zdw•24m ago•0 comments

Say No to Human-AI Workflow Segregation

https://keleshev.com/say-no-to-human-ai-workflow-segregation
2•halst•28m ago•0 comments

Russia Moves Closer to Banning Telegram App, Saying It Foments Terrorism

https://www.nytimes.com/2026/02/24/world/europe/russia-telegram-pavel-durov-terrorism.html
2•bookofjoe•29m ago•1 comments

Show HN: I challenged an LLM to find a hidden problem in my telemetry data [video]

https://www.youtube.com/watch?v=hWGkeKVhD5M
2•rabidpraxis•29m ago•0 comments

US Revokes Visas for Chile Officials over China Cable Plan

https://gcaptain.com/us-revokes-chile-visas-china-undersea-cable/
3•dmacvicar•30m ago•0 comments

The Big Secret Hidden in the "Designated Survivor"

https://www.doomsdayscenario.co/p/the-big-secret-hidden-in-the-designated-survivor
2•ta988•31m ago•0 comments

Plotting breakfasts by their ratios of Milk, Flour, and Eggs reveals a hole

https://moultano.wordpress.com/2026/02/22/the-hunt-for-dark-breakfast/
3•moultano•32m ago•0 comments

Show HN: Dropbox for Your Agents' Memories

https://memory.store/start
2•diwank•33m ago•0 comments

Nvidia's Quarterly Profit Hits $43B on Strong AI Chips Sales

https://www.nytimes.com/2026/02/25/technology/nvidia-earnings.html
2•lateforwork•35m ago•1 comments