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

Apple Requires Device-Level Age Verification in the UK Now. Is the US Next?

https://gizmodo.com/apple-requires-device-level-age-verification-in-the-uk-now-could-the-us-be-ne...
1•smurda•1m ago•0 comments

Reddit will require "fishy" accounts to verify they are run by a human

https://arstechnica.com/gadgets/2026/03/reddit-will-require-fishy-accounts-to-verify-they-are-run...
1•palmotea•2m ago•0 comments

Security awareness in LLM agents: the NDAI zone case

https://arxiv.org/abs/2603.19011
1•wslh•3m ago•0 comments

Intel Core Ultra Series 3 VPro: 18A AI PCs Debut with Dtect Security Updates

https://hothardware.com/news/intel-unveils-core-ultra-series-3-vpro
1•rbanffy•3m ago•0 comments

Commission responds to cyber-attack on its Europa web platform

https://ec.europa.eu/commission/presscorner/home/en
1•campuscodi•3m ago•0 comments

Amazon's Rural Delivery Push Slams into Walmart

https://www.bloomberg.com/graphics/2026-amazon-walmart-rural-expansion/
1•smurda•4m ago•0 comments

How we measured distance in the past

https://en.wikipedia.org/wiki/Bematist
1•olirex99•5m ago•0 comments

TrimSheetFast – Fast Game-Ready Trim Sheets in Seconds

https://trimsheetfast.com
1•mikecaps•5m ago•0 comments

Airflow 2.11.2

https://airflow.apache.org/docs/apache-airflow/stable/release_notes.html
1•marklit•5m ago•0 comments

Vandalize Friend

https://www.vandalizefriend.com
1•structuredPizza•7m ago•0 comments

The Stranglehold

https://sphera.substack.com/p/the-stranglehold
1•KyleVlaros•7m ago•0 comments

Show HN: Rhizome – semantic backlinks for your notes, generated locally

https://github.com/matzalazar/rhizome
1•matzalazar•7m ago•0 comments

Russia took satellite images of US air base before Iranian attack, Ukraine says

https://www.nbcnews.com/world/ukraine/russia-us-base-american-troops-zelenskyy-rcna265612
1•MilnerRoute•8m ago•0 comments

Bob Dylan opened a new Patreon page to share AI content

https://www.patreon.com/cw/BobDylan180
2•101008•8m ago•1 comments

Reverse engineering a mystery BLE mesh network using ESP32/Telink

https://github.com/AndriiKempa/BLEIOT/discussions/33
1•KempaAndrii•9m ago•0 comments

The End of Economics?

https://scottsumner.substack.com/p/the-end-of-economics
1•paulpauper•9m ago•0 comments

Pluribus – MCP and REST memory layer for AI agents (durable, shared, enforced)

https://github.com/johnnyjoy/pluribus
1•johnnyjoy•12m ago•1 comments

Corridor Crew Covers Gaussian Splats [video]

https://www.youtube.com/watch?v=_Qe_0aj4eEM
1•chintler•15m ago•1 comments

AI Won't Fix Your Org Chart

https://pragmatist.nl/ai-wont-fix-your-org-chart/
1•gpi•15m ago•0 comments

Zyxel Access Points now support OpenWrt-Based customized firmware

https://support.zyxel.eu/hc/en-us/articles/34301184444690-Zyxel-OpenWrt-Zyxel-Access-Points-Suppo...
2•cromka•15m ago•1 comments

We Added a Console Notice to Internationalizationext – and Why We Removed It

https://www.locize.com/blog/i18next-support-notice/
1•screeny05•16m ago•0 comments

The Digital Leviathan

https://brownstone.org/articles/the-digital-leviathan/
2•sediment•16m ago•0 comments

Faster 6502-on-6502 virtualization for a C64/Apple II Apple-1 emulator

http://oldvcr.blogspot.com/2026/03/6o6-v11-faster-6502-on-6502.html
1•adunk•20m ago•0 comments

Tradeoff Sliders: Interactive exploration of constrained spaces

http://andersource.dev/2026/03/29/tradeoff-sliders.html
1•andersource•23m ago•0 comments

Another

https://www.timerforemails.com/
1•afoone•24m ago•0 comments

Gestalt – AI PC builder that compares Amazon vs. eBay prices in real time

https://github.com/Xydra01/Gestalt
2•Xydra01•25m ago•0 comments

Typing and Keyboards

https://lzon.ca/posts/series/grateful/typing-and-keyboards/
5•jpmitchell•27m ago•1 comments

They bought an SF laundromat for passive income. Then problems

https://www.sfgate.com/local/article/the-laundry-hub-sf-22063097.php
5•paulpauper•29m ago•1 comments

Show HN: I made a "programming language" looking for feedback

https://github.com/alonsovm44/glupe
2•alonsovm•29m ago•1 comments

How to Find Your Personal Optimal Diet

https://www.exfatloss.com/p/how-to-find-your-personal-optimal
1•paulpauper•29m ago•0 comments