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

Terminal Trove

https://terminaltrove.com/explore/
1•esher•2m ago•0 comments

Will we have AGI by 2030? Are the new Formula 1 rules good? – Analyze both sides

https://99helpers.com/tools/both-sides-ai
2•nickk81•2m ago•1 comments

Show HN: Think Fu – Metacognition as a service

https://thinkfu.org
1•georgestrakhov•3m ago•0 comments

Show HN: Voxi.fm – Listen to articles that don't sound like a robot reading

https://www.voxi.fm
1•k1m•5m ago•0 comments

Coinbase brings token-backed down payments to housing market

https://www.reuters.com/technology/crypto-home-coinbase-brings-token-backed-down-payments-housing...
1•geox•6m ago•0 comments

Show HN: TurboQuant for vector search – 2-4 bit compression

https://github.com/RyanCodrai/py-turboquant
1•justsomeguy1996•7m ago•1 comments

Tracking (Expert/Influential) Predictions about AI

https://www.lesswrong.com/posts/oHSGHxhsbxN72BZ4C/tracking-expert-influential-predictions-about-ai
1•joozio•16m ago•0 comments

LinkedIn Lost in Translation: What CEOs Mean

https://www.youtube.com/watch?v=VakDdroSfCA
1•frag•21m ago•0 comments

In pictures: The changing shape of mission control

https://www.bbc.com/future/article/20260327-from-mercury-to-artemis-the-evolution-of-mission-control
1•reconnecting•27m ago•0 comments

Social Diffusion Defense

https://juliusthimm.com/
1•andytratt•28m ago•0 comments

The Greatest Deal Google Ever Made: Buying DeepMind

https://www.wsj.com/tech/ai/deepmind-google-demis-hassabis-5bd6de54
4•Anon84•28m ago•2 comments

Show HN: Interactive sandbox with boxes, conveyor belts and pneumatic tubes

https://codepen.io/Ma5a/full/yyaXzoB
1•masahito•28m ago•0 comments

PH4NTXM: RAM-Only OS, Per-session Identity and Network Personality Mutation.

https://github.com/PH4NTXMOFFICIAL/PH4NTXM
1•PH4NTXMOFFICIAL•32m ago•0 comments

Local-first AI knowledge layer. Extract architecture, query from any AI tools

https://github.com/josephgoksu/taskwing
1•josephgoksu•33m ago•0 comments

Anduril Flashlight Firmware and FSM Flashlight UI Toolkit

https://github.com/ToyKeeper/anduril
1•mrb•34m ago•0 comments

Background Jobs in Go with Asynq and Valkey

https://josephgoksu.com/blog/background-jobs-in-go-asynq-valkey/
1•josephgoksu•44m ago•0 comments

Onpush – free tool to create and maintain docs from repos using CLI Agents

https://onpush.dev
1•GNK_Kawba•45m ago•0 comments

OpenAI investor says AI requires an income tax overhaul

https://www.ft.com/content/7de1d3c5-0d0c-46b1-b2b7-dbf6f5226069
4•ciconia•47m ago•1 comments

Vector Meson Dominance

https://johncarlosbaez.wordpress.com/2026/03/29/vector-meson-dominance/
1•chmaynard•50m ago•0 comments

Millions Are Hooked on This Show Where Sexy Fruits Cheat

https://www.wsj.com/arts-culture/television/fruit-love-island-tiktok-ai-dating-show-45219f6a
1•newusertoday•54m ago•1 comments

Two Bots Walk into a Bar

https://www.raymondcamden.com/2026/03/25/two-bots-walk-into-a-bar
1•ColinWright•1h ago•0 comments

Voxtral TTS – Text to Speech Generator

https://voxtral-tts.net
2•MintNow•1h ago•0 comments

Miasma: A tool to trap AI web scrapers in an endless poison pit

https://github.com/austin-weeks/miasma
5•LucidLynx•1h ago•0 comments

Alpaca: Cross-Border Balancing Capacity Cooperation for aFRR

https://www.entsoe.eu/network_codes/eb/alpaca/
1•doener•1h ago•0 comments

IAMPerformance Issue 001 – Physics-based quantum hardware intelligence report [pdf]

https://iamperformance.online/IAMPerformance_Issue001.pdf
1•hmahaffeyges•1h ago•1 comments

Show HN: WhatToBuy – Describe your situation, get AI-curated shopping carts

2•crackeddude•1h ago•0 comments

Hledger AI Policy

https://hledger.org/AI.html
2•yehoshuapw•1h ago•0 comments

Beasts of the Southern Wild

https://medium.com/luminasticity/on-beasts-of-the-southern-wild-40fc0ea39a2b
1•bryanrasmussen•1h ago•0 comments

Native Jellyfin Client for macOS

https://github.com/CustomIcon/Lume
1•CustomIcon•1h ago•1 comments

New Infinity Stealer malware grabs macOS data via ClickFix lures

https://www.bleepingcomputer.com/news/security/new-infinity-stealer-malware-grabs-macos-data-via-...
2•01-_-•1h ago•0 comments