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

Is your vet owned by private equity?

https://privateequityvet.org/vet-list/
1•hampelm•37s ago•0 comments

Show HN: LogClaw – Open-source AI SRE that auto-creates tickets from logs

https://logclaw.ai
1•Robelkidin•51s ago•0 comments

WikiCity – Where every building is a Wikipedia article

https://wikicity.app/
1•leononame•1m ago•1 comments

Harness Engineering

https://openai.com/index/harness-engineering/
1•jlas•1m ago•0 comments

A Day in the Life of an Enshittificator [video]

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

Show HN: Understudy – Teach a desktop agent by demonstrating a task once

https://github.com/understudy-ai/understudy
1•bayes-song•2m ago•0 comments

Inboxscan – find every subscription hiding in your email (runs locally)

https://github.com/LakshmiSravyaVedantham/inboxscan
1•sravyavedantham•3m ago•1 comments

Show HN: A test harness that blocks unsafe AI actions before execution

https://github.com/celestinestudiosllc/ai-action-authorization-test-harness.https://www.linkedin....
1•celestinestudio•5m ago•0 comments

Ask HN: In 2026, how do you share a list of URLs to the public (or friends)?

1•wenbin•5m ago•1 comments

Work_mem: It's a Trap

https://mydbanotebook.org/posts/work_mem-its-a-trap/
1•giulianopz•6m ago•0 comments

Show HN: Fixing Agent / LLM Context Decay in VS Code with Git Worktrees

https://www.appsoftware.com/blog/fixing-agent-llm-context-decay-in-vs-code-with-git-worktrees
3•gbro3n•8m ago•0 comments

Design Tip: Enforcing Constraints Leads to Simpler, More Powerful Systems

https://www.rodriguez.today/articles/emergent-event-driven-workflows
1•birdculture•8m ago•0 comments

Show HN: I lost billable hours forgetting timers. I turned my calendar into a DB

https://www.timescanner.io/
1•sergentrif•9m ago•1 comments

Anthropic's Claude AI can respond with charts, diagrams, and other visuals now

https://www.theverge.com/ai-artificial-intelligence/893625/anthropic-claude-ai-charts-diagrams
1•newusertoday•9m ago•0 comments

Show HN: Verge Browser a self-hosted isolated browser sandbox for AI agents

https://github.com/zzzgydi/verge-browser
1•zzzgydi•9m ago•0 comments

Ask HN: How are you using personal AI assistants with local coding agents?

1•everfly•10m ago•0 comments

The Thinking Field

https://www.robpanico.com/articles/display/?entry_short=the-thinking-field
1•retrocog•10m ago•1 comments

Claude Bought Me a Car

https://www.nahtnam.com/blog/claude-bought-me-a-car
2•nahtnam•12m ago•2 comments

U.S. to suspend the Jones Act in a bid to curb oil prices

https://www.bloomberg.com/news/articles/2026-03-12/trump-administration-set-to-suspend-jones-act-...
3•geox•13m ago•0 comments

Boardsmith – text prompt to KiCad schematic, BOM, and firmware (works offline)

https://github.com/ForestHubAI/boardsmith
1•ForestHubAI•14m ago•3 comments

A plan to get more electricity to West Texas may come undone

https://www.texastribune.org/2026/03/12/west-texas-electricty-plan/
1•hn_acker•14m ago•0 comments

Maligna Kodera

https://krzyhau.itch.io/maligna-kodera
1•ta988•15m ago•0 comments

Title: Show HN: Aurora – Live dashboard watching local LLMs create autonomously

https://aurora.elijah-sylar.com
1•elijahscamp•16m ago•1 comments

Why Task Proficiency Doesn't Equal AI Autonomy

https://www.signalbloom.ai/posts/why-task-proficiency-doesnt-equal-ai-autonomy/
1•anonu•20m ago•0 comments

BallotGuessr

https://www.ballotguessr.com/
2•colinprince•21m ago•0 comments

Amygdala: Prompt a topic, get a footnoted report from experts in seconds

https://amygdala.eu/research
1•JoranCornelisse•22m ago•0 comments

Microsoft EVP Rajesh Jha is retiring

https://www.businessinsider.com/microsoft-executive-rajesh-jha-retiring-read-memos-2026-3
1•DarkCrusader2•22m ago•1 comments

Military AI as 'Abnormal' Technology

https://www.lawfaremedia.org/article/military-ai-as--abnormal--technology
2•hn_acker•23m ago•0 comments

Use Neovim's server capabilities on your local machine

https://github.com/mhinz/neovim-remote
2•RobTonino•23m ago•0 comments

UK to drop historic figures from banknotes and change them to images of wildlife

https://brusselssignal.eu/2026/03/uk-to-drop-historic-figures-from-banknotes-and-change-them-to-i...
3•thunderbong•24m ago•0 comments