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

Hi, looking for Tester for my TD game

https://testflight.apple.com/join/unh5x9Vh
2•pompeii•1m ago•1 comments

US accuses China of industrial-scale AI model distillation, will share Intel

https://thenextweb.com/news/us-white-house-ai-model-distillation-china-theft
2•gmays•3m ago•0 comments

MCP server that lets agents get human opinions in real-time

https://github.com/impel-intelligence/datapoint-mcp
1•chancemehmu•4m ago•0 comments

'Metajets' could allow future spaceships to be propelled by nothing but light

https://newatlas.com/space-systems/metajets-light-propelled-spaceships/
1•breve•5m ago•0 comments

I benchmarked Claude Code's caveman plugin against "be brief."

https://www.maxtaylor.me/articles/i-benchmarked-caveman-against-two-words
1•max-t-dev•7m ago•0 comments

SYNQ – Give ChatGPT and Claude permanent, local memory

1•Tamatarr•8m ago•0 comments

Agent-Augmented Meetings (2003)

https://link.springer.com/chapter/10.1007/978-1-4419-9200-0_2
2•thatxliner•9m ago•0 comments

Ask HN: Are you OK with DeepSeek and other labs reading your data?

1•davidbjaffe•10m ago•0 comments

First USMC MQ-58 Valkyrie CCA Drones to Arrive in 2029

https://www.twz.com/air/first-usmc-mq-58-valkyrie-cca-drones-to-arrive-in-2029
1•breve•10m ago•0 comments

Why everyone is quietly quitting OpenClaw [video]

https://www.youtube.com/watch?v=urAMvpPhtqo
1•nvahalik•10m ago•0 comments

China Is America's Military Equal Now and in Future Fights, Marine General Warns

https://www.twz.com/sea/china-is-americas-military-equal-now-and-in-any-future-fight-marine-gener...
1•breve•13m ago•0 comments

Mac Studio: Anything > 96GB of RAM Is Unavailable

https://tapbots.social/@paul/116489066337152245
1•doener•13m ago•0 comments

I accidentally made law enforcement shut down their fake honeypot

https://lina.sh/blog/ddos-honeypot
2•fishgoesblub•15m ago•0 comments

Show HN: Free tool to verify legal citations

https://secondseat.ai/verify
1•gabelev•15m ago•0 comments

Stock trading: focus on value, not price

https://smartmoneyguides.quora.com/
1•hennix22•16m ago•0 comments

Trading Agents – Multi-Agent LLM Financial Trading Network

https://github.com/TauricResearch/TradingAgents
1•rmason•17m ago•0 comments

The Angine de Poitrine Argument for UBI

https://www.scottsantens.com/the-angine-de-poitrine-argument-for-ubi/
1•doener•22m ago•0 comments

Technological Substitution and the Potential Phase-Out of Human Reproduction

https://tommyfalk567.substack.com/p/technological-substitution-and-the
1•TommyFalk•23m ago•0 comments

TSMC SoIC 3D stacking roadmap outlines path from 6-micron pitches to 4.5 in 2029

https://www.tomshardware.com/tech-industry/semiconductors/tsmc-soic-3d-stacking-roadmap-outlines-...
1•rbanffy•23m ago•0 comments

US House Probes Airbnb, Anysphere (Cursor) Use of Chinese Models

https://www.bloomberg.com/news/articles/2026-04-29/us-house-probes-airbnb-anysphere-s-use-of-chin...
1•htrp•25m ago•0 comments

What Is Real

https://claude2028.org/the-work/what-is-real
1•xqueenofswordsx•25m ago•0 comments

A Simple Technique for Overlapping IRQ Handlers

https://trident64.github.io/overlapping-irq-handlers/
1•adunk•27m ago•0 comments

Artemis II Photo Timeline

https://artemistimeline.com/#artemis-ii-walkout-nhq202604010003
3•geerlingguy•31m ago•0 comments

Gemma 4 architecture support for QVAC-Fabric (Tether's llama.cpp fork)

https://github.com/tinmanlabsl/qvac-gemma4-patch
1•oliveskin•33m ago•0 comments

Using a 1978 terminal in 2026 (DEC VT-100) · Nikhil Jha

https://nikhiljha.com/posts/vt100/
1•rbanffy•34m ago•0 comments

Commodore 64 Ultimate Line-Up Expands with C64C Edition Later This Year

https://commodore.net/c-you-soon-commodore-64-ultimate-line-up-expands-with-c64c-edition-later-th...
4•rbanffy•36m ago•0 comments

Show HN: UART Terminal – Web-based serial terminal using WebSerial API

https://github.com/baturyilmaz/uartterminal.com
1•arbayi•37m ago•0 comments

GPT-5.5's biggest blind spot: the Java bugs your tests won't catch

https://www.sonarsource.com/blog/gpt-5-5-biggest-blind-spot
1•andrewstetsenko•37m ago•0 comments

Cross-site scripting vulnerabilities lead to a RIPE NCC RPKI exploit chain

https://mxsasha.eu/posts/ripe-ncc-rpki-exploit-chain/
2•fanf2•37m ago•0 comments

Bullshit Ability as an Honest Signal of Intelligence

https://pmc.ncbi.nlm.nih.gov/articles/PMC10303565/
4•mgh2•40m ago•0 comments