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

Spanish court order Airbnb to pay €64M fine and refuses to suspend sanction

https://www.euronews.com/travel/2026/03/23/spanish-court-orders-airbnb-to-pay-64-million-fine-and...
2•embedding-shape•1m ago•0 comments

Is the Male Loneliness Epidemic Just for Wealthy White Men?

https://link.springer.com/article/10.1007/s11199-025-01638-7
1•mandevil•1m ago•0 comments

Zeaota turns raw customer signals into agent-ready specs

https://zeaota.ai
1•Shriansh_Pandey•2m ago•1 comments

PINE64 FOSDEM 2026 Update

https://pine64.org/2026/03/24/march_2026_fosdem/
2•wicket•2m ago•0 comments

Tachyon – lock-free IPC in shared memory, 124ns p50 RTT

https://github.com/riyaneel/Tachyon
1•riyaneel•3m ago•0 comments

Ask HN: Is the AI software developer demand destruction narrative accurate?

1•RyanShook•3m ago•0 comments

Common Corpus Goes Global

https://pleias.fr/blog/blogcommoncorpus-goes-global
1•hn_acker•5m ago•0 comments

In Edison’s Revenge, Data Centers Are Transitioning From AC to DC

https://spectrum.ieee.org/data-center-dc
2•jnord•12m ago•0 comments

Agency

https://www.anantjain.xyz/posts/agency
1•anant90•14m ago•0 comments

Behind the Curtain – America's next class war: AI fluency

https://www.axios.com/2026/03/24/ai-use-inequality-class
1•petethomas•16m ago•0 comments

NASA kills lunar space station to focus on ambitious Moon base

https://arstechnica.com/space/2026/03/nasa-kills-lunar-space-station-to-focus-on-ambitious-moon-b...
2•LorenDB•18m ago•0 comments

Making Your Agents Built Using Claude Agent SDK Run Faster

https://medium.com/@bayllama/making-your-agents-built-using-claude-agent-sdk-run-faster-2f2526a5cb42
2•graphllama•20m ago•0 comments

Zero-Cost POSIX Compliance: Encoding the Socket State Machine in Lean's Types

https://ngrislain.github.io/blog/2026-3-25-zerocost-posix-compliance-encoding-the-socket-state-ma...
1•ngrislain•20m ago•0 comments

Flighty Airports

https://flighty.com/airports
12•skogstokig•27m ago•4 comments

Show HN: Packara – Native macOS GUI for signing, notarizing, and stapling DMGs

1•aarush-prakash•27m ago•0 comments

Fets and Crosses: Tic-Tac-Toe built from 2458 discrete transistors

https://schilk.co/projects/fetsncrosses/
2•voxadam•29m ago•0 comments

AI-pilled Arm CEO teases mystery products that will turn it into a money machine

https://www.theregister.com/2026/03/24/arm_ceo_boasts_new_silicon/
2•zeristor•31m ago•0 comments

Bare Metal Flashing of the Rp2040

https://mackinnon.info/2025/04/20/bare-metal-flashing-of-the-RP2040.html
2•simojo•31m ago•0 comments

Meta told to pay $375M for misleading users over child safety

https://www.bbc.co.uk/news/articles/cql75dn07n2o
4•chrisjj•33m ago•0 comments

Claude skill /unzuck social media feed aggregator

https://github.com/donttalkaboutit/unzuck
3•donttalkaboutit•34m ago•3 comments

Typeware One: A better, healthier future for computer users

https://typeware.tech/
1•volemo•35m ago•0 comments

OpenAI is shutting down Sora

https://sora.chatgpt.com/p/s_69c2ec89c7f081919a93f637f6b250c2
2•rawgabbit•36m ago•1 comments

Multi-Agent Sandbox – Two OpenClaws, One Discord, One VPS

https://casys.ai/blog/multi-agent-sandbox
2•ErwanLP•38m ago•0 comments

ACPX Inside Claude Code: Practical Multi-Agent Orchestration

https://casys.ai/blog/acpx-multi-agent-orchestration
1•ErwanLP•38m ago•0 comments

GridDown: An offline first PWA for navigation, comms, and situational awareness

https://blackatlas.tech/griddown/
1•iamnothere•40m ago•0 comments

Zoning ruined the housing market in blue-state America

https://www.realtor.com/news/trends/how-zoning-ruined-the-housing-market-in-blue-state-america/
3•matthest•43m ago•0 comments

Show HN: DECK0 – a ~17 KB CLI that serves a Markdown file as a slide deck

https://github.com/tforster/deck0
1•troyforster•43m ago•0 comments

Show HN: Gcrunner – Run GitHub Actions on Google Cloud VMs

https://github.com/camdenclark/gcrunner
1•memothon•44m ago•0 comments

Britain to require solar and heat pumps in new homes in response to energy shock

https://www.cnbc.com/2026/03/24/iran-war-britain-new-homes-solar-heat-pumps-energy-crisis.html
2•toomuchtodo•45m ago•1 comments

Show HN: Plasmite – a lightweight IPC system that's fun

https://github.com/sandover/plasmite
1•sandover•46m ago•0 comments