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

Inscryption made me nostalgic for retro card Games, so I made one

https://aracana.online/
1•D_ashe•1m ago•1 comments

Replacing Humans with AI Backfired [video]

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

Hinkley Point C nuclear power station costs rise to £48B

https://www.telegraph.co.uk/business/2026/02/20/hinkley-point-c-nuclear-power-station-costs-rise-...
1•doener•3m ago•0 comments

AI writes the code now. What's left for software engineers?

https://sfstandard.com/2026/02/19/ai-writes-code-now-s-left-software-engineers/
1•bentobean•3m ago•0 comments

The Subprime Compute Crisis

https://theosbornletter.substack.com/p/the-subprime-compute-crisis
1•HenryOsborn•8m ago•1 comments

Let's Build Recursive Language Models (Theory and Code) [video]

https://www.youtube.com/watch?v=nxaVvvrezbY
2•kburman•9m ago•0 comments

Show HN: Process Compose – I added embedded MCP server to process-compose

https://f1bonacc1.github.io/process-compose/blog/embedded-mcp-server-support-in-process-compose-v...
1•nimbus2000•9m ago•0 comments

Show HN: AI writes code – humans fix it

https://humansfix.ai
1•stasman•11m ago•0 comments

Show HN: Better Gateway – Fullfeature IDE and Terminal in OpenClaw Gateway

https://github.com/ThisIsJeron/openclaw-better-gateway
1•jeron•11m ago•0 comments

Show HN: Infinichess – Multiplayer Infinite Chessboard

https://infinichess.io
1•gregjw•11m ago•0 comments

Wayback Machine Director Pushes Back on AI Scraping Fears Driving Archive Blocks

https://blog.archive.org/2026/02/18/wayback-machine-director-pushes-back/
1•petethomas•11m ago•0 comments

Sleep‑aligned fasting improves key heart and blood‑sugar markers

https://medicalxpress.com/news/2026-02-sleepaligned-fasting-key-heart-bloodsugar.html
2•PaulHoule•12m ago•0 comments

Show HN: Scrib Desktop – Open-source AES-256 encrypted text editor for Windows

https://github.com/beeswaxpat/scrib-desktop
1•beeswaxpat•12m ago•1 comments

Tech Layoffs Are Not About AI: An Insider View from a Former Amazon Manager [video]

https://www.youtube.com/watch?v=uyCcgG4nm90
1•mgh2•13m ago•0 comments

With tariffs ruling, Supreme Court reasserts its power to check Trump

https://www.reuters.com/world/us/with-tariffs-ruling-supreme-court-reasserts-its-power-check-trum...
1•tartoran•14m ago•0 comments

I Shut Down My Bootstrapped Health AI Startup After 7 Years

https://glassboxmedicine.com/2026/02/21/why-i-shut-down-my-bootstrapped-health-ai-startup-after-7...
1•brandonb•15m ago•0 comments

mRNA SARS-CoV-2 vaccines: spike protein a contributor to cardiac cellular stress

https://www.frontiersin.org/journals/immunology/articles/10.3389/fimmu.2026.1635478/full
2•panny•16m ago•0 comments

David Beazley: An End to Week-Long Immersion Courses

https://buttondown.com/dabeaz/archive/an-end-to-week-long-immersion-courses/
1•kurinikku•24m ago•0 comments

Hemmi/Post 1460 Versalog (Sliderule emulator)

https://thingsabove.github.io/Sliderule-Simulator-with-Solver/react/hemmi_versalog.html
2•todsacerdoti•24m ago•0 comments

Pentagon and Energy Department airlifts nuclear reactor from California to Utah

https://www.pbs.org/newshour/nation/u-s-military-airlifts-small-reactor-for-the-first-time-as-tru...
1•ck2•25m ago•0 comments

NASA astronauts' moon mission delayed due to rocket issue

https://www.bbc.com/news/articles/c626v265zqlo
2•tartoran•26m ago•1 comments

The Problem with AI Agents Isn't Identity, It's Authorization

https://fusionauth.io/blog/ai-authorization
1•mooreds•28m ago•0 comments

Amazon blames human employees for an AI coding agent's mistake

https://www.theverge.com/ai-artificial-intelligence/882005/amazon-blames-human-employees-for-an-a...
6•mooreds•28m ago•2 comments

The 4th Factor

https://lifanzeng.com/the-4th-factor
1•LeafyLi•28m ago•0 comments

Forget Greenland: This Arctic NATO Island Has a Russian Presence

https://www.wsj.com/world/forget-greenland-this-arctic-nato-island-already-has-a-russian-presence...
1•malshe•29m ago•1 comments

OpenAI is Suddenly in Trouble? [video]

https://www.youtube.com/watch?v=-q2n5DkDoMQ
3•CHB0403085482•31m ago•0 comments

Applejak: Interpreter for a subset of K programming language for Super CHIP-8

https://internet-janitor.itch.io/applejak
1•tosh•34m ago•0 comments

Ask HN: What Matters Most in Tech? Awards, Media Praise, or Peer Respect

2•SoundsDebatable•36m ago•3 comments

Show HN: Dq – pipe-based CLI for querying CSV, JSON, Avro, and Parquet files

https://github.com/razeghi71/dq
1•razeghi71•36m ago•0 comments

ChatGPT's hidden bias about your state or city

https://www.washingtonpost.com/technology/interactive/2026/see-chatgpts-hidden-bias-about-your-st...
1•Sherl•37m ago•1 comments