frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

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

Self Improving GTM Engineer Database

https://www.upside.tech/gtme/
1•mada299•1m ago•0 comments

Guy broke the limits – AGAIN – 2 times;D

https://rogmash.neocities.org/synthesizer1
1•rogmash•2m ago•1 comments

Port React compiler to Rust (merged)

https://github.com/react/react/pull/36173
1•molf•3m ago•0 comments

The SAT Was Necessary After All

https://www.theatlantic.com/ideas/2026/06/standardized-testing-math-gaps/687481/
1•blondie9x•3m ago•0 comments

Programming a GBA Game on an iPhone

https://blog.adamledoux.net/posts/2026-06-08-programming-a-gba-game-on-an-iphone.html
1•akkartik•4m ago•0 comments

Build GPUI and Ghostty (via libghostty-vt core) without writing code

https://xuanwo.io/2026/01-gpui-ghostty/
1•devy•5m ago•0 comments

The 24-year-old AI Wiz who counts Jane Street as an investor

https://www.msn.com/en-us/money/markets/the-24-year-old-ai-wiz-who-counts-jane-street-as-an-inves...
1•MattGrommes•9m ago•0 comments

FCC Attempts to Solve Robocall Problem with Potentially Bigger Privacy Problem

https://gizmodo.com/fcc-attempts-to-solve-robocall-problem-by-potentially-creating-even-bigger-pr...
3•billybuckwheat•13m ago•0 comments

VibeDrift now runs inside your coding agent (MCP), and we measured the impact

https://www.vibedrift.ai/blog/does-a-drift-checker-change-agent-output
1•samiahmadkhan•13m ago•0 comments

Show HN: AI agents join meetings with memory, calendar, and tasks

https://meet.upilote.com
1•tastyeffectco•14m ago•0 comments

Surprise, Pay $1000

https://forestwalk.ai/blog/surprise-blacksmith-costs/
1•apike•15m ago•0 comments

Email reporting is still a spreadsheet problem in disguise

https://emailcalculator.com
1•emailcalculator•15m ago•0 comments

Ultraprocessed Foods and Public Health

https://ajph.aphapublications.org/ultraprocessedfoodssection
1•Jimmc414•16m ago•0 comments

2026 Toyota Sequoia Capstone Review: Terrible Use of $90k

https://www.thedrive.com/car-reviews/2026-toyota-sequoia-capstone-review
2•PaulHoule•16m ago•0 comments

Trophic memory, deer, and a unique scientific object

https://thoughtforms.life/trophic-memory-deer-and-a-truly-unique-scientific-object/
1•atombender•16m ago•0 comments

Zelda – Ocarina of Time (Switch 2)

https://www.nintendo.com/us/gaming-systems/switch-2/featured-games/the-legend-of-zelda-ocarina-of...
2•hmokiguess•16m ago•2 comments

Building an AI-Native Engineering Team

https://developers.openai.com/codex/guides/build-ai-native-engineering-team
1•mpgirro•22m ago•0 comments

Show HN: Capture Go board positions with a browser extension

https://play.goshawk.cc/gsx/index.html
1•h3mm3•29m ago•0 comments

In 2026 T-Mobile gives me an IPv6 /64 without prefix delegation

https://github.com/bradleypeabody/myispsucksv6
1•bradpeabody•30m ago•0 comments

The consequences of relying on AI for accurate news

https://news.mit.edu/2026/consequences-of-relying-on-ai-for-accurate-news-0609
1•droidjj•31m ago•0 comments

Mythos/Fable intentionally hinders requests involving AI Research Development

https://twitter.com/eliebakouch/status/2064399902684139852
2•behnamoh•34m ago•0 comments

Trump Expands Glyphosate, and Now the MAHA Moms Who Elected Him Are Done

https://www.ibtimes.co.uk/trump-glyphosate-order-backlash-1801442
2•smnthermes•37m ago•0 comments

SpaceX IPO demand is approaching four times oversubscribed

https://www.reuters.com/world/spacex-ipo-demand-is-approaching-four-times-oversubscribed-source-s...
3•ironyman•37m ago•0 comments

What is the sea drone that rescued US helicopter crew?

https://www.reuters.com/world/middle-east/five-facts-sea-drones-after-us-helicopter-rescue-2026-0...
2•JumpCrisscross•38m ago•0 comments

Nvidia CUDA Python 1.0 and CUDA 13.3 Release

https://developer.nvidia.com/blog/nvidia-cuda-13-3-enhances-gpu-development-with-tile-programming...
1•ashvardanian•38m ago•0 comments

Open Source Agent, Harness-1, Outperforms GPT-5.4 on Recall

https://venturebeat.com/orchestration/researchers-trained-an-open-source-ai-search-agent-harness-...
2•somewhatrandom9•39m ago•0 comments

Fable 5 remotion video benchmark and examples

https://mesmer.tools/benchmarks/ai-video-generation
3•mesmertech•40m ago•1 comments

Create WhatsApp screenshots from a 3D phone model

https://www.getmockly.com/chats/whatsapp
2•eRzy•40m ago•0 comments

Show HN: A minimal linear algebra library in pure Go

https://github.com/igomez10/linearalgebra
2•igomeza•40m ago•0 comments

Show HN: Elah – A browser-native, frame-accurate video editor

https://github.com/elahlabs/elah
2•paulSpaurgen•43m ago•0 comments