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

UOG professor talks about nature of corruption

https://www.guampdn.com/news/uog-professor-talks-about-nature-of-corruption/article_5d30b622-022b...
1•sipofwater•3m ago•1 comments

How Should We Peer Review Software?

https://mirawelner.com/posts/peer_review.html
1•zdw•7m ago•0 comments

Artificial Intelligence and the Future of Policing

https://policeandsecuritynews.com/2025/10/28/artificial-intelligence-and-the-future-of-policing/
1•measurablefunc•7m ago•0 comments

Sending DMARC reports is somewhat hazardous

https://utcc.utoronto.ca/~cks/space/blog/spam/DMARCSendingReportsProblems
2•zdw•7m ago•0 comments

Show HN: Beads Viewer (Bv)

https://github.com/Dicklesworthstone/beads_viewer
1•eigenvalue•8m ago•0 comments

Show HN: YAML2MCP

https://marketplace.visualstudio.com/items?itemName=adefemi171.yaml2mcp
1•tha_infra_guy•10m ago•0 comments

Show HN: Coding Agent Session Search (Cass)

https://github.com/Dicklesworthstone/coding_agent_session_search
1•eigenvalue•12m ago•0 comments

Avoiding space leaks at all costs

https://chshersh.com/blog/2022-08-08-space-leak.html
1•todsacerdoti•12m ago•0 comments

Show HN: Glovio – Localize app store listings without spreadsheets

https://glovio.in/
1•saasnap•17m ago•0 comments

Google-backed fusion group moves to commercialise neutral-beam technology

https://www.ft.com/content/5ce71dfd-7ebe-4030-a5d5-ab68d84ab272
1•perihelions•20m ago•0 comments

Ask HN: Describe your first enterprise sale

2•faizshah•25m ago•0 comments

Show HN: HCB – Nonprofit financial app processing $6M/month

https://hackclub.com/fiscal-sponsorship/
4•garyhtou•26m ago•0 comments

ChatGPT is leaking unhashed PII in network traffic

https://twitter.com/xw33bttv/status/1993590066397298886
1•Jimmc414•28m ago•0 comments

OpenLog: Open-source Hardware Datalogger from UART serial port to SD card

https://github.com/sparkfun/OpenLog
1•walterbell•33m ago•0 comments

Gerschgorin Disks and Brauer's ovals of Cassini (2014)

https://bwlewis.github.io/cassini/
1•RossBencina•35m ago•1 comments

Interview with RollerCoaster Tycoon's Creator, Chris Sawyer (2024)

https://medium.com/atari-club/interview-with-rollercoaster-tycoons-creator-chris-sawyer-684a0efb0f13
2•areoform•41m ago•0 comments

Testing and Benchmarking of AI Compilers

https://www.broune.com/blog/testing-and-benchmarking-of-ai-compilers
1•kishoreganesh•42m ago•0 comments

Things I learned about climate in 2025

https://climatedrift.substack.com/p/52-things-i-learned-about-climate
3•JoiDegn•43m ago•0 comments

Coupang Conquered South Korean E-commerce

https://quartr.com/insights/edge/how-coupang-conquered-south-korean-ecommerce
1•mgh2•43m ago•0 comments

Volvo EX90's Lidar Laser Sensor Will Fry Your Phone's Camera

https://www.thedrive.com/news/volvo-ex90s-lidar-sensor-will-fry-your-phones-camera
2•walterbell•44m ago•0 comments

OceanVolt Arcona 380z (2015)

https://oceanvolt.com/oceanvolt-blog/arcona-380-z/
1•danboarder•45m ago•0 comments

Altruistic disease signalling in ant colonies

https://www.nature.com/articles/s41467-025-66175-z
2•ChrisArchitect•47m ago•1 comments

The Vibrant Garden of Imagination

https://www.imaginationgardenworks.com
1•TheVibrantG•47m ago•0 comments

Kroger's Surveillance Pricing Harms Consumers and Raises Prices

https://epic.org/krogers-surveillance-pricing-harms-consumers-and-raises-prices-with-or-without-f...
5•walterbell•50m ago•0 comments

Plotnine 0.15.1

https://plotnine.org/gallery/
1•nothrowaways•51m ago•0 comments

YouTube Set to Comply with Australia's Under-16s Ban

https://www.bloomberg.com/news/articles/2025-12-02/youtube-finally-set-to-comply-with-australia-s...
3•donohoe•51m ago•1 comments

Amber: A Language Compiled to Bash

https://amber-lang.com/
3•thunderbong•54m ago•0 comments

Zhuque-3: Stage 1 failure during the landing burn

https://twitter.com/dpoddolphinpro/status/1996069551365095849
5•perihelions•56m ago•0 comments

Understanding ECDSA

https://avidthinker.github.io/2025/11/28/understanding-ecdsa/
13•avidthinker•59m ago•1 comments

Ellora: Enhancing LLMs with LoRA Standardized Recipes for Capability Enhancement

https://huggingface.co/blog/codelion/ellora-lora-recipes
1•codelion•1h ago•0 comments