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

Zig Libc

https://ziglang.org/devlog/2026/#2026-01-31
1•ingve•1m ago•0 comments

'We don't need a new war': EU's Kallas urges US against bombing Iran

https://www.euractiv.com/news/we-dont-need-a-new-war-eus-kallas-urges-us-against-bombing-iran/
1•saubeidl•1m ago•0 comments

Dumfederated gRPC social network implemented in Rust/Tonic/Diesel

https://github.com/JonLatane/jonline
1•mooreds•1m ago•0 comments

"Talking Eliza" from Tandy was a program for the TRS-80[video]

https://www.youtube.com/watch?v=Vv27CSFUAi0
1•oldnetguy•2m ago•0 comments

DoD ordered to study mental health impacts among military drone pilots

https://www.militarytimes.com/news/your-military/2026/01/30/dod-ordered-to-study-mental-health-im...
1•everybodyknows•2m ago•0 comments

Todd C. Miller – sudo Maintainer for over 30 years

https://www.millert.dev/
2•wodniok•4m ago•1 comments

A Social Network for A.I. Bots Only. No Humans Allowed

https://www.nytimes.com/2026/02/02/technology/moltbook-ai-social-media.html
1•pretext•4m ago•0 comments

To jump on the agent orchestration wagon or not?

https://www.aviator.co/blog/the-rise-of-coding-agent-orchestrators/
1•tonkkatonka•4m ago•1 comments

Analysis of a Roxy Pilot Plant Supporting Early Lunar Mission Architectures

https://www.mdpi.com/2226-4310/13/1/86
1•PaulHoule•6m ago•0 comments

AI is coming for rodeo, the last major U.S. sport untouched by analytics

https://www.axios.com/2026/02/02/rodeo-edge-ai-analytics-data-cowboy-sports
1•kayge•7m ago•0 comments

RFC 9078: Reaction: Indicating Summary Reaction to a Message

https://www.rfc-editor.org/rfc/rfc9078.html
1•jy14898•7m ago•0 comments

The world is trying to log off U.S. tech

https://www.reddit.com/r/technology/s/Dcbe8sQ8bt
2•rantingdemon•9m ago•0 comments

A pan-European API for car number plate lookups

https://www.carregistrationapi.ie/
1•mooreds•9m ago•0 comments

Project Genie [video]

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

Scrolling Alone

https://www.afterbabel.com/p/scrolling-alone
1•trevin•10m ago•0 comments

Moltbook: Hype for Midwits

1•cadabrabra•10m ago•0 comments

AI controls is coming to Firefox

https://blog.mozilla.org/en/firefox/ai-controls/
3•ahlCVA•10m ago•0 comments

How Self-Help Publishing Ate America (2013)

https://nymag.com/health/self-help/2013/self-help-book-publishing/
1•sherilm•10m ago•0 comments

Show HN: Serverless OpenAI Gateway: PII and Cache on Cloudflare Workers

https://github.com/guimaster97/pii-sanitizer-gateway
1•guimaster97•10m ago•1 comments

Designing AI-resistant technical evaluations

https://www.anthropic.com/engineering/AI-resistant-technical-evaluations
1•mooreds•14m ago•0 comments

DETE Data: Ireland 2025 Permits – Talent Flows to Manufacturing and Deep Tech

https://permitwatch.ie/blogs/-OkT_Aj8dZBOo0XwGxFy
2•fredthedeve•14m ago•0 comments

Show HN: Hangryfeed – The Embedded Squad Model for Web3 and AI Growth

https://www.hangryfeed.com/
2•KeluAgent•14m ago•0 comments

The 90% Problem: Why Most Marketers Can't Use Google Tag Manager

https://www.tagcompanion.com/blog/why-most-marketers-cant-use-google-tag-manager/
2•ybor•15m ago•0 comments

AI 2026 Technology Radar

https://www.juxt.pro/ai-radar/
2•FelipeCortez•15m ago•0 comments

The longest possible chess game, and bounds on the number of possible games

https://wismuth.com/chess/longest-game.html
2•alexmolas•16m ago•0 comments

DIY Car Infotainment: synced screens and shared audio for road-trip kids

http://albert-david.blogspot.com/2024/04/diy-in-car-infotainment-using.html
2•albert007_d•16m ago•0 comments

Flakyflash: Salvage flash media having flaky sectors

https://github.com/whitslack/flakyflash
2•goodburb•16m ago•0 comments

PoC is a framework of perverse incentives

https://varoa.net/2026/01/30/poc.html
2•srvaroa•17m ago•0 comments

The New AI Botnet, Powered by OpenClaw

https://saoudkhalifah.com/2026/02/02/the-new-botnet-powered-by-your-personal-ai-assistants
3•skd-fs•18m ago•0 comments

Apple 'runs on Anthropic,' says Mark Gurman

https://9to5mac.com/2026/01/30/apple-runs-on-anthropic-says-mark-gurman/
2•SunshineTheCat•19m ago•0 comments