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

Agent Swarms Are a Distributed Systems Problem

https://www.trychroma.com/engineering/transactions
1•rescrv•1m ago•1 comments

Ask HN: How does your preferred AI handle questions we are not allowed to ask?

1•arionhardison•1m ago•0 comments

The Weed Got Too Strong

https://www.nytimes.com/2026/08/24/opinion/weed-marijuna-children-regulation.html
1•bookofjoe•4m ago•1 comments

The Trump administration's March to the Spoils System

https://www.contrariannews.org/p/the-trump-administrations-march-to
1•petethomas•4m ago•0 comments

Model Success Rate May Count the Wrong Runs

https://topicqueue.substack.com/p/four-new-benchmarks-say-your-success
1•DISCURSIVE•4m ago•0 comments

Tim O'Reilly – Writing with AI

https://oreillyradar.substack.com/p/writing-with-ai
1•rmason•6m ago•0 comments

Simple Machine

https://en.wikipedia.org/wiki/Simple_machine
2•ogogmad•7m ago•0 comments

Programmed by Mel Brooks: 100 Years at the Movies (20 titles selected by M.B.)

https://www.americancinematheque.com/series/programmed-by-mel-brooks-100-years-at-the-movies/
1•mdp2021•7m ago•0 comments

Why coding agents stop early on long-horizon software tasks

https://factory.com/news/what-it-takes-for-coding-agents-to-complete-large-software-tasks
2•favoboa•8m ago•0 comments

Show HN: Webtoolio dev tools that run entirely in the browser, nothing uploaded

https://webtoolio.org/
1•deezduudez•9m ago•0 comments

Show HN: A shop that makes it hard to buy things

https://earnyourdescent.com/
1•rexfuzzle•10m ago•0 comments

Bill Gates proposes major limits on AI development

https://www.cnn.com/2026/08/26/business/bill-gates-wants-limits-on-ai
1•rmason•10m ago•2 comments

OpenAI Is Developing a 'Persistent' AI Agent

https://www.wired.com/story/openai-is-developing-a-persistent-ai-agent/
2•thm•11m ago•0 comments

YouTube Shopping Creators can now tag Amazon products

https://blog.youtube/news-and-events/youtube-shopping-amazon-creator-affiliates/
2•thm•11m ago•0 comments

Show HN: ChessRabbit – The AI Chess Analysis Platform

https://chessrabbit.com
1•ahmedhosssam•12m ago•0 comments

Data Centers and the Open Access Order

https://marginalrevolution.com/marginalrevolution/2026/08/data-centers-and-the-open-access-order.htm
1•sershe•12m ago•0 comments

Integrity Bench – Measuring LLM confidence errors

https://integrity-bench.com
1•Topfi•14m ago•0 comments

Google Flow – AI Creative Studio for Video, Images and Custom Tools

https://labs.google/fx/tools/flow
1•thekyle•16m ago•0 comments

The Open Source Maintenance Fee for Polly

https://thepollyproject.org/2026/07/14/polly-osmf-announcement.html
1•billwashere•18m ago•0 comments

Simular's Sai tops OSWorld 2.0, beats GPT and Opus at 2/3 the cost

https://www.simular.ai/articles/sai-tops-osworld-2-0
2•taro666•21m ago•0 comments

SK Hynix CEO: Memory Shortage to Persist Through the End of 2030

https://www.newsis.com/view/NISX20260828_0003766114
2•mfiguiere•22m ago•0 comments

Sam Altman says the economy is adapting to AI slower than he expected

1•oenton•23m ago•2 comments

Millennium Criteria Assessment 2027

https://prachub.com/resources/millennium-criteria-assessment-2027-work-preferences-games-and-what...
1•nian2326076•23m ago•0 comments

Singapore's Neuron Rack Costs More to Rent Than It Saves

https://julienreszka.com/blog/singapore-s-neuron-rack-costs-more-to-rent-than-it-saves/
1•julienreszka•24m ago•0 comments

How to Build an AI Scheduling Assistant with Calendly

https://quickchat.ai/post/ai-scheduling-assistant-calendly
1•piotrgrudzien•24m ago•0 comments

Lambda – fast portable agent harness in C

https://github.com/montyanderson/lambda
2•montyanderson•25m ago•0 comments

Sam Altman says the economy is adapting to AI slower than he expected

https://www.businessinsider.com/sam-altman-economy-ai-adapting-saas-2026-8
2•oenton•26m ago•1 comments

AI's Inference Era of Ferment – By Ben Bajarin

https://www.thediligencestack.com/p/ais-inference-era-of-ferment
1•rbanffy•26m ago•0 comments

We put "stop hiring humans" on billboards, and why we retired it

https://www.artisan.co/blog/stop-hiring-humans
3•cocacola1•27m ago•3 comments

Peeling Apart That Supposed $120B Chip Deal Google Inked with Marvell

https://www.nextplatform.com/compute/2026/08/27/peeling-apart-that-supposed-120-billion-chip-deal...
1•rbanffy•27m ago•0 comments