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

Pando (Tree)

https://en.wikipedia.org/wiki/Pando_(tree)
1•kblissett•2m ago•0 comments

Extracting Nintendo Switch "Play Activity" Using Python and OCR

https://sethmlarson.dev/nintendo-switch-play-activity-ocr
1•SethMLarson•3m ago•0 comments

Meta's New A.I. Superstars Are Chafing Against the Rest of the Company

https://www.nytimes.com/2025/12/10/technology/meta-ai-tbd-lab-friction.html
1•furcyd•4m ago•0 comments

Authors retract Nature paper projecting high costs of climate change

https://retractionwatch.com/2025/12/03/authors-retract-nature-paper-projecting-high-costs-of-clim...
1•bookofjoe•5m ago•0 comments

Axial Flux Motor Powers Supercars to New Heights

https://spectrum.ieee.org/axial-flux-motor-yasa
1•leecoursey•5m ago•1 comments

Show HN: Transactional Email for Developers

https://ahasend.com
8•farhadhf•6m ago•0 comments

Chemical modulation of gut bacterial metabolism extends the lifespan of hosts

https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.3002749
1•PaulHoule•7m ago•0 comments

Ask HN: Better Markdown workflow for Ghost? Building a lightweight web editor

1•ktersigni•7m ago•0 comments

Shopify SimGym creates "digital customers" that behave like real ones

https://twitter.com/MParakhin/status/1998786503779234276
1•admp•8m ago•0 comments

Cryptographers Show That AI Protections Will Always Have Holes

https://www.quantamagazine.org/cryptographers-show-that-ai-protections-will-always-have-holes-202...
2•ArmageddonIt•8m ago•0 comments

Calibri – In Crime and Politics

https://en.wikipedia.org/wiki/Calibri
2•jerryr•8m ago•0 comments

Important Ideas for 2026

https://www.derekthompson.org/p/the-26-most-important-ideas-for-2026
1•momentmaker•9m ago•0 comments

The power crunch threatening America's AI ambitions

https://subs.ft.com/products
1•KabuseCha•9m ago•0 comments

GNU Year 2000 List (1999)

https://www.gnu.org/software/year2000-list.html
1•mghackerlady•9m ago•1 comments

Google launches MCP servers that let AI agents simply plug into its tools

https://techcrunch.com/2025/12/10/google-is-going-all-in-on-mcp-servers-agent-ready-by-design/
1•brazukadev•11m ago•1 comments

Trump's Interest in Warner Bros. Deal Weighs on Justice Department

https://www.nytimes.com/2025/12/10/technology/warner-bros-deal-justice-department-gail-slater.html
1•fleahunter•12m ago•0 comments

Brand Naming Process

https://www.lexiconbranding.com/brand-naming-process/
1•gk1•13m ago•0 comments

DeepSeek uses banned Nvidia chips for AI model, report says

https://finance.yahoo.com/news/china-deepseek-uses-banned-nvidia-131207746.html
2•goodway•14m ago•0 comments

Nvidia Aerial Framework

https://github.com/NVIDIA/aerial-framework
1•red0point•15m ago•1 comments

Show HN: Git-scope – Blazing TUI to manage 50 Git repos without CD-ing dirs

https://github.com/Bharath-code/git-scope
1•iam_pbk•15m ago•0 comments

Bringing USDT Power to Parca

https://www.polarsignals.com/blog/posts/2025/12/10/usdt-deep-dive
2•gnurizen•19m ago•1 comments

Show HN: Grok-CLI-MCP – MCP server wrapping Grok CLI (alternative to direct API)

https://github.com/BasisSetVentures/grok-cli-mcp
1•changxu•20m ago•0 comments

CEOs Are All-In on AI

https://www.wsj.com/articles/ceos-are-all-in-on-ai-f3882564
1•gmays•20m ago•0 comments

DNP achieves 1.4nm semiconductor process without EUV

https://www.afp.com/en/infos/dnp-achieves-10nm-line-pattern-resolution-nanoimprint-template-cutti...
3•Croftengea•20m ago•0 comments

LibGodot – Embed Godot Engine Everywhere (GodotCon 2025) [video]

https://www.youtube.com/watch?v=L06KBOWCsSk
1•gudzpoz•21m ago•0 comments

Testing S3 ABAC Locally

https://iam.cloudcopilot.io/posts/test-s3-abac-locally-with-iam-lens
1•davidjkerber•22m ago•1 comments

Building Audit Logs with CDC and SCD Type 2

https://www.artie.com/blogs/how-to-build-audit-logs-using-cdc-and-scd-type-2
5•dfallon•23m ago•0 comments

Open-source, no-account video meetings using SvelteKit and Cloudflare

https://videome.video
1•MrRoyce101•24m ago•1 comments

Regulating Commercial Spyware Through Export Controls

https://www.lawfaremedia.org/article/regulating-commercial-spyware-through-export-controls
1•hn_acker•25m ago•0 comments

"UI is Pre-AI" is so real. Look at this Siri like bubble [video]

https://www.youtube.com/watch?v=1I5trPGEu50
1•hellorahulk•25m ago•0 comments