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

How do you prevent AI collaboration burnout?

1•causal_anchor•38s ago•0 comments

DOJ January 2026 Release

https://www.jmail.world/about/doj-2026
1•pera•1m ago•0 comments

Show HN: Npx Claude-mycelium grow – fungi agent orchestration for your repo

https://www.npmjs.com/package/claude-mycelium
1•altras•1m ago•0 comments

Bazzite Postmortem

https://ba.antheas.dev/bazzite-postmortem.html
1•JackMorgan•2m ago•0 comments

French headquarters of Elon Musk's X raided by Paris cybercrime unit

https://www.theguardian.com/technology/2026/feb/03/french-headquarters-elon-musk-x-raided-paris-c...
2•mkolarek•3m ago•0 comments

Show HN: Weather forecast/visualization without numbers

https://weather-sense.leftium.com/?calm
1•Leftium•8m ago•0 comments

Incident CVE-2024-Yikes

https://nesbitt.io/2026/02/03/incident-report-cve-2024-yikes.html
1•robin_reala•10m ago•0 comments

Show HN: TurboLibBMP stb-style BMP decoder/encoder in C no allocations, embedded

1•DenisDolya•11m ago•0 comments

Show HN: ESP32-based Remote Wake-on-LAN that works behind CGNAT

https://github.com/kreaxv/esp32-remote-wol
1•kreaxv•13m ago•0 comments

The AI Conversations

https://twitter.com/dhh/status/2018631575337095389
1•tosh•17m ago•0 comments

Stockfish 18

https://stockfishchess.org/blog/2026/stockfish-18/
1•AceyMan•19m ago•1 comments

Show HN: A small browser-based Hearts card game I built as a solo dev

https://playheartsonlinefree.com
1•Growtbloom•19m ago•2 comments

Who's Coding on Their Phone?

1•raunaqvaisoha•20m ago•2 comments

Israeli Military Found Gaza Health Ministry Death Toll Was Accurate

https://theintercept.com/2026/01/30/israel-gaza-death-toll-accurate-denial/
2•Qem•21m ago•0 comments

Show HN: HostsLab – A Mac app for managing hosts file and SSH config

https://github.com/Matzielab/HostsLab
1•matzie•21m ago•0 comments

The creator of Clawd: "I ship code I don't read" [video]

https://www.youtube.com/watch?v=8lF7HmQ_RgY
1•uneven9434•23m ago•0 comments

Muse: AI-Native MIDI Composer

https://www.muse.art/home
1•spking•23m ago•0 comments

GOG Says Game Banner Ad Was Made with AI but Claims It Was Shared by Mistake

https://kotaku.com/gog-ai-art-banner-ad-confirms-discord-message-small-team-slop-2000665056
2•HelloUsername•27m ago•0 comments

uLauncher

https://github.com/jrpie/launcher
1•dtj1123•30m ago•0 comments

We built a web IDE where AI edits structured code instead of text

https://stellisoft.com
1•mattstellify•32m ago•3 comments

Show HN: Kvile – Lightweight Postman alternative that uses .http files

https://kvile.app
1•tskulbru•34m ago•0 comments

I collected all valuable AI Skills repositories

https://github.com/codeaholicguy/ai-devkit/blob/main/skills/registry.json
2•hoangnnguyen•35m ago•0 comments

U.K. physics community braces for deep funding cuts

https://www.science.org/content/article/u-k-physics-community-braces-deep-funding-cuts
2•sega_sai•36m ago•1 comments

From magic to malware: How OpenClaw's agent skills become an attack surface

https://1password.com/blog/from-magic-to-malware-how-openclaws-agent-skills-become-an-attack-surface
1•_____k•36m ago•1 comments

Terminal-native AI assistant – curl -L plztell.me

https://plztell.me
2•maafifi•39m ago•1 comments

Slack hacks for software engineers and managers

https://newsletter.manager.dev/p/7-slack-hacks-for-engineers-and-managers
1•AntonZ234•40m ago•0 comments

At Age 25, Wikipedia Refuses to Evolve

https://spectrum.ieee.org/wikipedia-at-25
2•pseudolus•43m ago•1 comments

Show HN: Federal Election Commission Claude Code Plugin and Agent Skill and MCP

https://github.com/hodgesmr/agent-fecfile
1•m-hodges•44m ago•0 comments

The Decision Engine

https://holenventures.substack.com/p/the-decision-engine
1•hholen•44m ago•0 comments

Firefox makes AI optional, like it probably should have been all along

https://www.theregister.com/2026/02/03/firefox_ai_kill_switch/
3•beardyw•47m ago•0 comments