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

AI Video Generator – Create Cinematic Videos with Audio – Veevid

https://veevid.ai
1•jacksteven•10s ago•0 comments

Ktkit – Kotlin Multiplatform Toolkit for Building Server Applications with Ktor

https://github.com/smyrgeorge/ktkit
1•TheWiggles•1m ago•0 comments

Show HN: Design In The Browser – Point, click, and let AI write the code

https://www.designinthebrowser.com/
1•curlii•2m ago•0 comments

Show HN: Pairl – Protocol for Agent Communication with Budget Tracking

https://github.com/dwehrmann/PAIRL
1•dwehrmann•3m ago•0 comments

ScopeGuard v0.0.5: Improved Shadow Detection

https://old.reddit.com/r/golang/comments/1qtq1yh/scopeguard_v005_improved_shadow_detection/
1•eik•12m ago•1 comments

PC Floppy Copy Protection: Vault Prolok

https://martypc.blogspot.com/2024/09/pc-floppy-copy-protection-vault-prolok.html
1•kmm•12m ago•0 comments

Software Engineering Jobs

1•localhoster•14m ago•0 comments

Why Boys Are Behind in Reading at Every Age

https://www.nytimes.com/2026/01/30/upshot/boys-reading-falling-behind.html
1•mpweiher•14m ago•1 comments

Shell quick tips: Bash incognito mode

https://twdev.blog/2026/02/bash_incognito/
1•ibobev•16m ago•0 comments

Generate RSS feeds for all the blogs that don't have one

https://github.com/Olshansk/rss-feeds
1•walterbell•19m ago•0 comments

Show HN: Signal Engine – filter the noise from static analysis results

https://github.com/armoredcode/signal-engine
2•thesp0nge•19m ago•0 comments

Grok Imagine

https://grok.com/imagine
1•pretext•20m ago•0 comments

Moltbot Is Taking over Silicon Valley

https://www.wired.com/story/clawdbot-moltbot-viral-ai-assistant/
1•pretext•23m ago•0 comments

Running OpenClaw in Docker

https://til.simonwillison.net/llms/openclaw-docker
1•pretext•24m ago•0 comments

Free Corpus Tracker – Unified wealth tracker for Indian investors

https://icorpus.vercel.app/support
1•mathan_karthik•28m ago•0 comments

The AI "Competence Speedrun" and the Organizational Trilemma

1•eriam•28m ago•0 comments

Simple Made Easy (2011)

https://www.infoq.com/presentations/Simple-Made-Easy/
1•vinhnx•29m ago•0 comments

CyberLove Bookmark

https://www.printables.com/model/1581796-cyberlove-bookmark#printing-instructions
1•atzuris•29m ago•0 comments

Show HN: Prism AI – A research agent that generates 2D/3D visualizations

https://github.com/precious112/prism-ai-deep-research
2•PreciousH•30m ago•3 comments

Study: Cigarette filters are an underestimated source of microplastic pollution

https://www.buffalo.edu/news/releases/2026/01/cigarette-filters-underestimated-source-microplasti...
3•JeanKage•31m ago•0 comments

GP at SF VC admits to "take all" people with specific DNA

https://twitter.com/AdameMedia/status/2017387688043692427
1•smashah•34m ago•1 comments

Show HN: Claw.events – Real-Time Pub/Sub for Distributed AI Agent Coordination

https://mateffy.org/publications/introducing-claw-events
3•capevace•34m ago•2 comments

The Three Acts of the Mind (pt 1/3): Understanding (Philosophy 101)

http://adoroergosum.blogspot.com/2015/05/the-three-acts-of-mind-pt-13.html
1•hitekker•35m ago•0 comments

Sharpening the Axe: The Primacy of Toolmaking (2023) [video]

https://www.youtube.com/watch?v=_GpBkplsGus
1•tosh•36m ago•0 comments

Fake Epstein Email Generator

https://www.getmockly.com/emails
1•eRzy•36m ago•0 comments

PC Floppy Copy Protection: An Interview with Robert McQuaid

https://martypc.blogspot.com/2024/09/pc-floppy-copy-protection-interview.html
1•achairapart•36m ago•0 comments

Show HN: RunForge Desktop – Local ML Experiment Tracker for Windows

https://github.com/mcp-tool-shop-org/runforge-desktop
1•mikeyfrilot•37m ago•0 comments

Tracking a Button Click in Google Tag Manager Shouldn't Be This Hard

https://www.tagcompanion.com/blog/tracking-a-button-click-in-gtm-shouldn-t-be-this-hard/
1•ybor•41m ago•1 comments

Banning Syntax Highlighting Steroids

https://brainbaking.com/post/2026/01/banning-syntax-highlighting-steroids/
1•ingve•41m ago•0 comments

Galaxy 15

https://en.wikipedia.org/wiki/Galaxy_15
1•simonebrunozzi•43m ago•0 comments