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

Faster Practical Modular Inversion

https://purplesyringa.moe/blog/faster-practical-modular-inversion/
1•todsacerdoti•3m ago•0 comments

Americans are hungry for community. So why don't we have European-style squares?

https://www.cnn.com/2025/12/19/travel/europe-public-squares-american-development
1•rawgabbit•8m ago•0 comments

Speech to text model for healthcare-based voice applications

https://huggingface.co/google/medasr
1•tzury•9m ago•0 comments

Show HN: Spelling Bee Trainer

https://spell2.netlify.app/
1•rahimnathwani•11m ago•0 comments

Show HN: SHA-256 quasi-collision with 184/256 matching bits

https://github.com/POlLLOGAMER/SHA-256-Colision-Finder-NEW.ipynb/blob/main/Base_Version/SHA_256_C...
1•KaoruAK•12m ago•0 comments

Google sues web scraper for sucking up search results 'at an astonishing scale'

https://www.theverge.com/news/848365/google-scraper-lawsuit-serpapi
1•tzury•13m ago•0 comments

What Is Threads Trends Tool?

1•Tech_News_Daily•13m ago•0 comments

24h with an experienced eng/designer and Opus 4.5

https://make.zen2.ai/
1•kwcto•14m ago•1 comments

What the Smartest Minds Think About AI

https://www.wsj.com/tech/ai/ai-conference-neurips-ff6398df
1•jonbaer•18m ago•0 comments

Making Aircrete with kitchen ingredients [video]

https://www.youtube.com/watch?v=z4_GxPHwqkA
2•ludicrousdispla•23m ago•0 comments

Redactle #1354

https://redactle.net/1354
1•brikym•25m ago•0 comments

How AI agents will transform the way we work in 2026

https://blog.google/products/google-cloud/ai-business-trends-report-2026/
1•achow•31m ago•0 comments

daff: align and compare tables

https://github.com/paulfitz/daff
2•indigodaddy•38m ago•0 comments

Show HN: BananaSlice – free Generative Fill alternative using Nano Banana

https://github.com/IrfanulM/BananaSlice
1•irfanul•40m ago•0 comments

Maestro Cross-Platform Desktop Agent Orchestrator (Free/OSS)

https://github.com/pedramamini/Maestro
1•pedramamini•50m ago•1 comments

Show HN: Ganttchart-webviz – Web-based Gantt chart generator

https://github.com/altilunium/ganttchart-webviz
1•altilunium•52m ago•0 comments

Flock Said It Does Not Use Dark Web Data. Code Analysis Tells a Different Story

https://nexanet.ai/blog/license-plate-reader-company-flock-said-it-does-not-use-dark-web-data-my-...
6•defrost•53m ago•0 comments

NitroGen: Unified vision-to-action model designed to play video games

https://huggingface.co/nvidia/NitroGen
2•intelkishan•1h ago•0 comments

Kebabs, biryani and more: Indian city on UNESCO culinary list

https://www.bbc.com/news/articles/cwyp8erjp82o
1•koolhead17•1h ago•1 comments

Seattle's Delivery Minimum Wage Failed Drivers and Raised Costs

https://reason.com/2025/12/20/seattles-delivery-minimum-wage-failed-drivers-and-raised-costs/
2•mhb•1h ago•0 comments

The Machine Stops [pdf]

https://www.cs.ucdavis.edu/~koehl/Teaching/ECS188/PDF_files/Machine_stops.pdf
2•morpheos137•1h ago•0 comments

ModRetro announces Anduril-themed Gameboy Clone

https://modretro.com/products/anduril-chromatic-porta-pro-bundle
1•jscottmiller•1h ago•1 comments

Day 2 of Building ScrapeForge

1•Vishwas-Batra•1h ago•0 comments

TikTok Says Chinese Owner Will Retain Core US Business

https://www.ft.com/content/7a778d46-8bf8-4b11-af4e-5e5bd891cb9d
3•sarimkx•1h ago•1 comments

Performance trick: optimistic vs. pessimistic checks

https://lemire.me/blog/2025/12/20/performance-trick-optimistic-vs-pessimistic-checks/
1•tuananh•1h ago•0 comments

Marriott App Now Prompts You to Tip Staff – So Hotels Can Cut Wage Costs

https://viewfromthewing.com/marriott-app-now-prompts-you-to-tip-staff-so-hotels-can-cut-wage-costs/
12•cwwc•1h ago•3 comments

Luna NFC/RFID Poker Cards

https://electricks.info/product/luna-nfc-rfid-poker-cards/
2•gregsadetsky•1h ago•0 comments

How capacity hints work in Go

https://www.grobinson.net/2023/09/30/how-capacity-hints-work-in-go/
1•todsacerdoti•1h ago•0 comments

Wordiest: Android APK ported to iOS by ChatGPT 5.2

https://blog.fsck.com/2025/12/20/wordiest/
2•cpeterso•1h ago•0 comments

Disc-shaped satellite design offers unmatched power-to-weight ratio

https://arstechnica.com/science/2025/12/heres-why-nasa-and-the-space-force-are-interested-in-pizz...
1•walterbell•1h ago•0 comments