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

Why Social Media Generates Incoherence in the Reader, and Great Books Coherence

https://shrsv.hexmos.com/post/why-social-media-generates-incoherence-in-the-reader,-and-great-boo...
1•atomicnature•40s ago•0 comments

Choose Boring Technology

https://mcfunley.com/choose-boring-technology
1•shahargl•4m ago•0 comments

In the Shadow of the (Berlin) Wall

https://www.slowtravelberlin.com/in-the-shadow-of-the-berlin-wall/
1•yitchelle•5m ago•1 comments

Comma.ai Launches a PCIe Gen4 X4 to USB4 Dock with Open-Source Firmware

https://comma.ai/shop/chestnut
1•WithinReason•5m ago•0 comments

EU seeks alternatives to US payment cards

https://www.euronews.com/business/2026/08/13/financial-sovereignty-digital-euro-and-payment-roami...
3•billybuckwheat•6m ago•0 comments

The Wording Effect: Quantifying Two-Way Drift in LLM Benchmark Performance

https://arxiv.org/abs/2608.11694
1•sbulaev•8m ago•0 comments

Agentic Engineering Is Just Everything We Haven't Been Doing

https://blog.matthewbrunelle.com/agentic-engineering-is-just-everything-we-havent-been-doing/
1•ohadron•10m ago•1 comments

Show HN: India, in Numbers

https://data.indiadispatch.com/
1•jmsflknr•10m ago•1 comments

Telegram Marketgram.cc

https://marketgram.cc/
2•keviss•12m ago•0 comments

Scaling AI agents with trustworthy data

https://www.technologyreview.com/2026/08/12/1141032/scaling-ai-agents-with-trustworthy-data/
2•joozio•13m ago•0 comments

Hyperscript

https://hyperscript.org/
2•tosh•17m ago•0 comments

Show HN: Wondering – turn complex topics into short audio/visual lessons

https://wondering.app
2•ak2411•18m ago•0 comments

Why Japanese firms are being so slow to use AI

https://www.bbc.co.uk/news/articles/cwymw4434v7o
2•CaRDiaK•22m ago•0 comments

Show HN: I built a life planner that has only "one page"

2•eltonlin•22m ago•0 comments

How Compaction Works in Pi

https://earendil.com/posts/compaction-in-pi/
2•doppp•24m ago•0 comments

US Justice Department shifts focus to government programme fraud

https://www.ft.com/content/145f1b61-0a68-45b4-afb8-62fc74381ce4
2•petethomas•28m ago•0 comments

Web Scraper was translated into 50 languages with AI

https://webscraper.io/blog/how-web-scraper-was-translated-into-50-languages-with-ai
2•martinsbalodis•30m ago•1 comments

Smart pet feeders stopped feeding pets during a cloud outage

https://www.theverge.com/tech/979295/petlibro-outage-smart-pet-feeders
1•BlueBerry2001•31m ago•0 comments

Show HN: Vqrotate – Drop-in rotation trick for VQ-VAEs

https://github.com/develepo/vqrotate
1•develepo•33m ago•0 comments

Samsung used AI to cut a chip-verification loop 15–30×

https://www.echohive.ai/ai-engineering-acceleration
1•echohive42•38m ago•1 comments

The 221-year-old company that reinvented itself – 4 times – Big Think

https://bigthink.com/the-long-game/the-221-year-old-company-that-reinvented-itself-4-times/
1•janandonly•39m ago•1 comments

SPAR – Fall 2026 AI Safety Research Projects

https://sparai.org/projects/f26/
1•agucova•43m ago•0 comments

AI translates 5k-year-old cuneiform tablets instantly – Big Think

https://bigthink.com/the-future/ai-translates-cuneiform/
1•janandonly•46m ago•0 comments

My AI agents shipped 128 releases of a product no one ever used

https://bramo.ai/blog/01-post-mortem
1•guschiriboga•49m ago•0 comments

Show HN: Write Something Meant to Disappear

https://flashpaper.xyz/
2•madospace•49m ago•0 comments

Show HN: Harness – a modern coding harness for today's coding models

https://harness.selimsandal.com/
3•selims•49m ago•0 comments

What Is Analog Electronic Music and Why Does It Sound So Different?

https://caughtinjoy.com/blogs/studio-notes/analog-electronic-music-a-timeless-sound-that-still-in...
1•chillax•49m ago•0 comments

/show-me

https://x.com/dexhorthy/article/2087569590268391897
1•doppp•51m ago•0 comments

Show HN: My PM kept asking "is this shipped yet?" so I automated release notes

https://www.changelogfa.st
2•sulot3212•55m ago•1 comments

The Measure of Intelligence

https://arxiv.org/abs/1911.01547
1•andsoitis•55m ago•0 comments