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

Ask HN: Is there a good CV review service for tech roles in Switzerland?

1•swissdom•22s ago•0 comments

A man who is paying to see the future – Semafor

https://www.semafor.com/article/04/24/2026/the-man-who-is-paying-to-see-the-future
1•voisin•24s ago•0 comments

RLM: LLMs to process arbitrarily long prompts with inference-time scaling (2025)

https://github.com/alexzhang13/rlm
1•ihrimech•42s ago•1 comments

FDA Approves First-Ever Gene Therapy for Treatment of Genetic Hearing Loss

https://www.fda.gov/news-events/press-announcements/fda-approves-first-ever-gene-therapy-treatmen...
1•JeanKage•3m ago•0 comments

France's Mistral Built a $14B AI Empire by Not Being American

https://www.forbes.com/sites/iainmartin/2026/04/16/how-frances-mistral-built-a-14-billion-ai-empi...
2•rzk•5m ago•0 comments

Httpxyz One Month In

https://tildeweb.nl/~michiel/httpxyz-one-month-in.html
1•roywashere•5m ago•0 comments

Ask HN: AI is like a hyper-motivated 16-year old genius – how to manage?

1•axeldunkel•6m ago•0 comments

Show HN: Launch Your Product. Get Seen Weekly

1•kalashvasaniya•6m ago•0 comments

Show HN: Renda Converts Claude Design HTML Zips into Instagram/Twitter PNGs

https://tryrenda.com/
1•Chips20•7m ago•0 comments

Show HN: Web Client for Hermes Agent

https://github.com/lotsoftick/hermes_client
1•lotsoftick•7m ago•0 comments

Show HN: OpenClaw Web Client

https://github.com/lotsoftick/openclaw_client
1•lotsoftick•8m ago•0 comments

Yahoo asking for subscription payment to send and receive emails

1•whyleym•9m ago•1 comments

Leaked results of Mythos' audit of the Rust stdlib

https://github.com/Swival/security-audits/tree/main/rust-stdlib
2•stavros•15m ago•0 comments

Understanding UMAP

https://pair-code.github.io/understanding-umap/
2•monneyboi•17m ago•0 comments

Jester Linux – A beginner-friendly desktop OS powered by NixOS and Lix

https://jesterlinux.org/blog/hello-world/
1•aprl•18m ago•0 comments

Foldergram – Self-hosted folder-based Instagram-style photo and video gallery

https://github.com/foldergram/foldergram
1•sebakubisz•18m ago•0 comments

Automate your contract process, the Docusign nightmare

https://www.getprobo.com/blog/2026-04-24-how-we-automated-our-client-contract-process
1•arthurmyx•19m ago•1 comments

Java: The Documentary (Trailer)

https://www.youtube.com/watch?v=cwLYS_xDvSw
2•Tomte•21m ago•0 comments

4TB of voice samples just stolen from 40k AI contractors at Mercor

https://app.oravys.com/blog/mercor-breach-2026
3•Oravys•22m ago•0 comments

Ask HN: Can you tell the difference between Claude Sonnet and Opus?

1•muddi900•23m ago•1 comments

Ask HN: Is it a good idea to add a Design your download page?

1•gray_wolf_99•26m ago•0 comments

TidesDB – Fast, persistent, scalable key-value storage for modern systems

https://tidesdb.com
2•alexpadula•26m ago•1 comments

Show HN: Implit – A CLI that catches AI-hallucinated NPM packages

https://github.com/Neurall-build/implit
1•neurall-build•30m ago•0 comments

Shellora: SSH terminal, AI help, and server tools

https://holding.vc/shellora/
1•yaseral•31m ago•0 comments

Can We Vibe Code a Smart Home Device with Matter?

https://dunkels.com/adam/vibe-code-smart-home-matter-device/
2•adunk•36m ago•0 comments

Samsung Galaxy S24 and S25: April update causes battery problems

https://www.heise.de/en/news/Samsung-Galaxy-S24-and-S25-April-update-causes-battery-problems-1127...
1•aureliusm•37m ago•0 comments

Show HN: Agent Context – let your AI coding tools see your reference projects

https://github.com/gmarland/Agent-Context
2•gamerdrome•39m ago•0 comments

Ask HN: Should HN have a new top category – Prompt HN?

1•jharohit•39m ago•0 comments

A hallucination engine. Typed pseudorandom data via LLM

https://pypi.org/project/grievous-mcp/
1•basyt•47m ago•1 comments

Oracle cutting thousands in latest layoff round, continues to ramp AI spending

https://www.cnbc.com/2026/03/31/oracle-layoffs-ai-spending.html
2•sparin9•47m ago•1 comments