frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

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

The Money AMD Is Chasing with Its Rackscale AI System Roadmaps

https://www.nextplatform.com/compute/2026/07/24/the-money-amd-is-chasing-with-its-rackscale-ai-sy...
1•rbanffy•2m ago•0 comments

Introduction to Microsoft Excel 1990 with Jan Brehm

https://www.youtube.com/watch?v=kOO31qFmi9A
1•chistev•3m ago•0 comments

Shared Claude chats showing up in Google results

https://old.reddit.com/r/ClaudeAI/comments/1v6fiyj/you_can_view_a_lot_of_shared_conversations_via/
1•dgellow•5m ago•0 comments

US tech groups cut 140k jobs despite AI spending boom

https://www.ft.com/content/96a33881-27fd-42cf-8cff-4cbc87fc835f
1•1vuio0pswjnm7•5m ago•0 comments

Modern and Minimal Linux: NixOS and Noctalia and Labwc Flake

https://github.com/grigio/nixos-noctalia-labwc-flake
3•grigio•7m ago•0 comments

Goodbye Microslop: Finally Moved to Codeberg

https://nezutero.dev/goodbye-microslop-finally-moved-to-codeberg/
1•nezutero•7m ago•0 comments

Kahneman's Cabs: Solving Probability Puzzles

https://www.neelocean.com/kahnemans-cabs/
1•thinkingemote•8m ago•0 comments

Show HN: Reverse Minesweeper

https://sunflowersgame.com/
1•pompomsheep•8m ago•0 comments

Job Search, in One Intelligent Workspace

https://www.karyfy.com
1•negiadventures•10m ago•0 comments

Show HN: Virtual time engine to record HTML to 60fps MP4, no drops

https://zlvox.com/tools/html-to-video
1•mrdisloyal•12m ago•0 comments

An update on beta-alanine supplementation for athletes (2020)

https://www.gssiweb.org/sports-science-exchange/article/an-update-on-beta-alanine-supplementation...
1•Jazgot•13m ago•0 comments

CVE-2026-49176 Exploit Development: WalletService to System

https://davidcarliez.github.io/blog/cve-2026-49176-walletservice-to-system/
1•haeseong•13m ago•0 comments

Google's AI Spending Spree Has Investors Nervous

https://www.wsj.com/tech/ai/alphabet-googl-q2-earnings-report-2026-stock-f6bdd223
1•1vuio0pswjnm7•15m ago•0 comments

Google Discloses $94.1B in SpaceX Stock, Marking 6% Stake

https://www.wsj.com/tech/google-discloses-94-1-billion-in-spacex-stock-marking-6-stake-91655d7c
5•1vuio0pswjnm7•16m ago•1 comments

Islamist terrorist attack in Berlin Pride event

https://www.dw.com/en/germany-classifies-berlin-pride-ramming-as-terror-attack/live-78117180
1•sajithdilshan•20m ago•0 comments

Show HN: I got 32-bit Bun running on Windows

https://twitter.com/_vkaku/status/2081356483040620981
1•vkaku•20m ago•1 comments

Show HN: Crossle – A daily puzzle game where you find 3 intersecting words

https://crossle.resistancelabs.tech
2•samurai4869•22m ago•0 comments

Making 3 AI's Count to 100 Together [video]

https://www.youtube.com/watch?v=MXEInc6Zy7Q
1•pingou•23m ago•0 comments

ARIA – Voice-native 3D spatial AI SoC with governed autonomy (BSL 1.1)

https://github.com/sidevworks/aria-sec
1•saryismail•24m ago•0 comments

Ask HN: Something fishy is going on with Google feed on my Android

1•motbus3•27m ago•0 comments

Marketing Team Eve Template

https://github.com/vercel-labs/marketing-team-eve-template
1•flashbrew•27m ago•0 comments

The product function in the age of AI

https://fnune.com/2026/07/26/the-product-function-in-the-age-of-ai/
1•brainlessdev•29m ago•0 comments

Dream Exchange – a persistent world where AI agents live, not work

https://www.soudushi.com
1•damiyangguang•30m ago•0 comments

Crypto Bill Mired in Debate over Rules to Stop President from Selling Coins

https://www.nytimes.com/2026/07/22/technology/crypto-bill-trump.html
1•1vuio0pswjnm7•30m ago•0 comments

Measles Cases Hit New Record in U.S., as Vaccination Rates Wane

https://www.nytimes.com/2026/07/24/well/measles-record-united-states-numbers.html
2•bookofjoe•33m ago•1 comments

Show HN: I wrote this slowly, a needlessly patient text editor

https://i-wrote-this-slowly.fly.dev/
2•pkoird•34m ago•0 comments

Show HN: Lemmings in HTML in Canvas

https://github.com/VorticonCmdr/lemmings
1•VorticonCmdr•36m ago•2 comments

Go Analysis Framework: modular static analysis by go team

https://pkg.go.dev/golang.org/x/tools/go/analysis
5•AbuAssar•38m ago•0 comments

Bordeaux considering 'total evacuation if needed' as wildfires rage nearby

https://news.sky.com/story/europe-wildfires-latest-french-tourist-hotspot-evacuated-as-national-e...
4•tosh•40m ago•0 comments

Ask HN: Why don't we solve aging?

1•goldlimetea•42m ago•11 comments