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

Lies I was Told About Collaborative Editing, Part 2: Why we don't use Yjs

https://www.moment.dev/blog/lies-i-was-told-pt-2
1•mvelbaum•1m ago•0 comments

AMD Hints at Big FP64 Increases in MI430X GPU as Ozaki Underwhelms

https://www.hpcwire.com/2026/03/13/amd-hints-at-big-fp64-increases-in-mi430x-gpu-as-ozaki-underwe...
1•rbanffy•2m ago•0 comments

Meta planning layoffs as AI costs mount: Reuters

https://www.cnbc.com/2026/03/14/meta-planning-sweeping-layoffs-as-ai-costs-mount-reuters.html
2•nova22033•2m ago•0 comments

Meta Outlines New MTIA Accelerator Roadmap for Its Next-Gen AI Compute Mix

https://www.servethehome.com/meta-outlines-new-mtia-accelerator-roadmap-for-its-next-gen-ai-compu...
1•rbanffy•3m ago•0 comments

Understanding OpenClaw by Building One

https://github.com/czl9707/build-your-own-openclaw
1•zane__chen•5m ago•3 comments

Show HN: Got tired of AI copilots just autocompleting, and built Glass Arc

2•Conquer01•7m ago•0 comments

Show HN: Pi Patterns: generate Images from slices of π

https://pi.yassi.dev/
1•yassi_dev•8m ago•0 comments

EyeDAR tech could give self-driving cars expanded radar perception

https://newatlas.com/automotive/eyedar-expanded-radar-perception/
2•Brajeshwar•10m ago•1 comments

Dylan Patel – Deep dive on the 3 big bottlenecks to scaling AI compute

https://www.dwarkesh.com/p/dylan-patel
2•kerim-ca•11m ago•0 comments

When building becomes cheaper than specifying, everything changes

https://thepmwhobuilds.substack.com/p/when-building-becomes-cheaper-than
1•ffernandesclaro•12m ago•1 comments

Show HN: Fastify's slow startup is an AJV problem – here's a drop-in fix

1•greatvenerable•13m ago•0 comments

Show HN: Lean-pq a typesafe PostgreSQL connector for lean

https://github.com/typednotes/lean-pq
1•ngrislain•13m ago•0 comments

Show HN: Built an AI ad generator and ran $9K of FB ads with it

https://admakeai.com/
2•mesmertech•14m ago•0 comments

MacBook Neo: on-screen camera indicator light

https://support.apple.com/guide/security/mac-on-screen-camera-indicator-light-sec75a2d237d/web
1•tosh•14m ago•0 comments

Is the Android we once knew slowly getting eroded? [video]

https://9to5google.com/2026/03/13/is-the-android-we-once-knew-slowly-getting-eroded/
1•thunderbong•14m ago•0 comments

Native meshtastic client for HP Jornada 720/728 Win CE

https://github.com/NorthPole-Code/Jornada-CE-meshtastic-client
1•fidotron•15m ago•0 comments

Artificial intelligence-associated delusions and large language models

https://www.thelancet.com/journals/lanpsy/article/PIIS2215-0366(25)00396-7/abstract
2•beardyw•16m ago•0 comments

Security log analyser in Rust with CVSS 3.1 scoring and AI threat detection

https://github.com/Senaraufi/Security-Log-Analyser
1•cybrAy•17m ago•1 comments

Ask HN: Looking for a job after layoff and burnout. What should I focus on

2•jacAtSea•19m ago•3 comments

Parseword

https://www.parseword.com
2•vidyesh•19m ago•0 comments

The Browser Becomes Your WordPress

https://wordpress.org/news/2026/03/announcing-my-wordpress/
6•vidyesh•19m ago•0 comments

Slate, a generalist software agent built for swarms

https://randomlabs.ai/
2•handfuloflight•20m ago•0 comments

Show HN: Crypto Security Toolkit – VPN, Wallets, Exchanges and Tools for Traders

2•SKYFOR•20m ago•0 comments

Depth of Field Simulator

https://jherr.github.io/depth-of-field/
2•jensgk•22m ago•0 comments

Xbox revealed Gaming Copilot is coming to "current-gen consoles" later this year

https://www.gamesradar.com/games/xbox-just-revealed-gaming-copilot-is-coming-to-current-generatio...
1•Risse•22m ago•0 comments

Elite Russian squad targeting enemies abroad was exposed throug Google Translate

https://meduza.io/en/feature/2026/03/14/russia-created-an-elite-hit-squad-to-target-its-opponents...
4•szatkus•23m ago•0 comments

Solid State Battery: Donut's Controversial Leap

https://spectrum.ieee.org/solid-state-battery-2675554640
4•rbanffy•23m ago•1 comments

Sociotechnical Architecture – Having Your Agile and Your Agility Too

https://www.youtube.com/watch?v=ww-osm-IZjI
2•mcp_•24m ago•0 comments

Meta Delays Rollout of New A.I. Model After Performance Concerns

https://www.nytimes.com/2026/03/12/technology/meta-avocado-ai-model-delayed.html
2•tosh•25m ago•0 comments

Ask HN: Have you successfully treated forward head posture ("nerd neck")?

3•trashymctrash•26m ago•1 comments