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

Resurrecting Supermaven: Trad coding is not dead. Just different

https://github.com/nhlmg93/supertab.nvim
1•nhelmig93•44s ago•0 comments

Show HN: SpeechSDK – free, open-source SDK that unifies all AI voice models

https://www.speechsdk.dev/
1•PiersonMarks•1m ago•0 comments

Compliance at scale and why TAM distracts with Christina Cacioppo of Vanta

https://cheekypint.substack.com/p/compliance-at-scale-and-why-tam-is
1•hhs•1m ago•0 comments

Trump announces 'fraud' crackdown in Democratic states as arrests begin in CA

https://www.theguardian.com/us-news/2026/apr/03/trump-vance-fraud-arrest-crackdown-california
1•mitchbob•2m ago•0 comments

Forest Service Will Close Research Stations That Study Wildfire Risk

https://www.nytimes.com/2026/04/03/climate/forest-service-research-stations.html
1•mitchbob•3m ago•0 comments

Anthropic no longer allowing Claude Code subscriptions to be used with OpenClaw

7•firloop•5m ago•1 comments

Researchers develop new way to detect breakthroughs in science: study

https://www.binghamton.edu/news/story/6153/eureka-scientists-develop-new-way-to-detect-breakthrou...
1•hhs•9m ago•0 comments

Tokenizer That Outperform Tiktoken with O200k_base

https://o200k-tokenizer-70fe25.gitlab.io/
1•nispin•10m ago•0 comments

Tinnitus: At a crossroad between phantom perception and sleep (2022)

https://academic.oup.com/braincomms/article/4/3/fcac089/6563428
2•gnabgib•18m ago•0 comments

AI startup envisions '100M new people' making videogames

https://www.pcgamer.com/software/ai/this-ai-startup-envisions-100-million-new-people-making-video...
3•solomonyardley•20m ago•2 comments

Meta Pauses Work with Mercor After Data Breach Puts AI Industry Secrets at Risk

https://www.wired.com/story/meta-pauses-work-with-mercor-after-data-breach-puts-ai-industry-secre...
3•srameshc•26m ago•0 comments

'Hacks' Star Hannah Einbinder Blasts AI Creators as 'Losers'

https://variety.com/2026/tv/news/hannah-einbinder-ai-creators-losers-1236706302/
2•bogzz•29m ago•1 comments

Show HN: Standalone TurboQuant KV Cache Inference

https://github.com/g023/turboquant
3•g023•29m ago•1 comments

Darkness can "travel" faster than light speed

https://www.nature.com/articles/s41586-026-10209-z
4•Jimmc414•30m ago•2 comments

Soros: The anatomy of an agentic geopolitical simulation engine

https://asksoros.com/insights/soros-anatomy-agentic-geopolitical-simulation
4•muggermuch•30m ago•3 comments

Fake Fans

https://www.wordsfromeliza.com/p/fake-fans
3•performative•34m ago•0 comments

The Subprime AI Crisis Is Here

https://www.wheresyoured.at/the-subprime-ai-crisis-is-here/
11•dmitrygr•36m ago•0 comments

Why Millennials Love Prenups

https://www.newyorker.com/magazine/2025/12/29/why-millennials-love-prenups
5•randycupertino•36m ago•1 comments

Run Linux containers on Android, no root required

https://github.com/ExTV/Podroid
3•politelemon•37m ago•0 comments

How the Claude Mythos leak happened

https://iter.ca/post/claude-cms/
4•smitop•38m ago•0 comments

The house is a work of art: Frank Lloyd Wright

https://aeon.co/essays/frank-lloyd-wright-as-a-mirror-of-the-american-condition
8•midnightfish•39m ago•0 comments

SpaceX Files FCC Complaint over Ariane 64 Amazon Leo Launch

https://europeanspaceflight.com/spacex-files-fcc-complaint-over-ariane-64-amazon-leo-launch/
4•riffraff•40m ago•1 comments

Just 'English with Hanzi'

https://www.oldnorthwhale.com/p/why-modern-chinese-is-just-english
3•scour•41m ago•2 comments

Show HN: Open-source benchmark for transcription APIs on meeting audio

https://github.com/micdarau/meeting-transcription-bench
2•eyepaqio•42m ago•0 comments

The Cloud is a Scam (2019) [video]

https://www.youtube.com/watch?v=SCclo-eg0T8
3•mooreds•42m ago•0 comments

Did Impacts from Meteors Help Start Life on Earth?

https://www.rutgers.edu/news/did-impacts-meteors-help-start-life-earth
3•geox•47m ago•0 comments

Floating Point from Scratch

https://essenceia.github.io/projects/floating_dragon/
2•random__duck•49m ago•0 comments

'Call A Boomer' phonebooth fosters cross-country, multi-generational connections

https://dailyfreepress.com/03/27/14/218929/call-a-boomer-phonebooth-fosters-cross-country-multi-g...
3•gnabgib•51m ago•0 comments

Why Developers Are Switching to BaaS in 2026

https://www.dropinks.com/what-is-baas/
2•dropinksblog•53m ago•0 comments

AI Trainer Mercor Offers to Pay People for Prior Work–Work Employers Might Own

https://www.wsj.com/tech/ai/ai-training-data-mercor-offers-ed37d2a1
4•latchkey•55m ago•1 comments