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

Summary paper on the STAR-Vote system [pdf]

https://www.cs.rice.edu/~dwallach/pub/star-summative-2018.pdf
1•thechao•3m ago•0 comments

FCC: Late-night and daytime talk shows must offer equal time for candidates

https://www.nbcnews.com/politics/elections/fcc-late-night-daytime-talk-shows-equal-time-candidate...
1•ceejayoz•3m ago•0 comments

The divergence of centralized systems and individual agency

3•Kiplomat-SouCmp•6m ago•1 comments

Ukraine Holds Off on New Helsing Drone Orders After Setbacks

https://www.bloomberg.com/news/articles/2026-01-19/ukraine-holds-off-on-new-helsing-drone-orders-...
2•doener•7m ago•1 comments

Basic TTS – fast, free, and easy-to-use online text-to-speech tool

https://basictts.com/
1•sea-gold•7m ago•1 comments

Cyclic Subgroup Sum

https://m-slee.netlify.app/posts/cyclic-subgroup-sum
1•richard_chase•11m ago•1 comments

Being a tourist, can I film police in the US?

https://travel.stackexchange.com/questions/58566/being-a-tourist-can-i-film-police-in-the-us
1•beatthatflight•11m ago•1 comments

Show HN: HinkyPunk VPN

https://github.com/canaanmckenzie/HinkyPunk
2•prince_nez•12m ago•0 comments

List of Sales Closing Techniques

https://talnet.co/social/3KqvEuvb4p
1•bouia•14m ago•0 comments

Easy Delegation with C# Source Generators Library

https://davidvedvick.info/notes/2026/01/21/source-generators-easy-delegation-c-sharp
1•whoisthemachine•14m ago•0 comments

Tried Implementing DeepSeek's MHC

https://github.com/enochyearn/mhc-vs-resnet-mlx
1•enochyearn•15m ago•1 comments

Self-Hosting Discourse Just Got a Whole Lot Easier

https://meta.discourse.org/t/self-hosting-discourse-just-got-a-whole-lot-easier/393915
1•Curiositry•16m ago•0 comments

Cipher Copy – a fast, privacy-first text encoding tool (runs client-side)

https://cipher-06d59a47.base44.app/Encode
1•jasoncbuckley•17m ago•1 comments

Show HN: A fast, ad-free wiki for Where Winds Meet (built with Astro)

https://wwm-db.com/en/
1•causalzap•20m ago•0 comments

Bluementhals letter about ICE memo justifying entry into homes without warrant [pdf]

https://www.hsgac.senate.gov/wp-content/uploads/2026-01-21-Letter-from-Blumenthal-to-DHS-ICE.pdf
3•rawgabbit•23m ago•0 comments

Ask HN: How do you audit autonomous AI agent decisions?

1•credentum•24m ago•1 comments

AI Design Field Guide

https://www.aidesignfieldguide.com/
1•samuel246•24m ago•0 comments

Ask HN: Anyone seeing copy/paste reliability issues in ChatGPT Web on macOS?

1•sallyrideauto•27m ago•0 comments

What I Mean by "Dream Team"

https://theproductmindedqa.com/on-dream-teams/
1•sabdelrahman•28m ago•0 comments

FBI: Common Frauds and Scams

https://www.fbi.gov/how-we-can-help-you/scams-and-safety/common-frauds-and-scams
3•gk1•33m ago•0 comments

Logical Intelligence brings LeCun on board as it touts AI breakthrough

https://www.ft.com/content/157bb0e3-9d6c-47ac-afc5-6944981e10ef
2•aarghh•38m ago•0 comments

Show HN: GluonDB – Cursor for Your Database

https://gluondb.com
1•jernestomg•39m ago•0 comments

Why the price of coffee has skyrocketed

https://english.elpais.com/economy-and-business/2025-12-28/why-the-price-of-coffee-has-skyrockete...
1•PaulHoule•41m ago•0 comments

ICE says officers can forcibly enter homes without a judicial warrant

https://www.nbcnews.com/news/us-news/ice-policy-officers-enter-homes-immigration-without-judicial...
10•Volundr•42m ago•5 comments

Real-time head-tracking 3D viewer head-coupled perspective effect

https://off-axis-sneaker.bolt.host/
1•nateb2022•44m ago•1 comments

Show HN: Faramesh – A deterministic gate for stochastic Autonomous AI agents

1•amjadfatmi1•44m ago•0 comments

Browser Lab: 3D editor and creative coding environment that runs in the browser

https://github.com/icurtis1/thebrowserlab
1•nateb2022•46m ago•0 comments

Gadgets for people who don't trust the government

https://www.youtube.com/watch?v=W_F4rEaRduk
1•hansjorg•47m ago•0 comments

1993: Web Browsers Add Multimedia and Mtv.com Goes Online

https://cybercultural.com/p/1993-mtv-internet/
2•cdrnsf•50m ago•0 comments

Jensen Huang: Future AI jobs will come with hardhat and boots

https://www.theregister.com/2026/01/22/future_ai_jobs_tech_bigshots/
3•defrost•50m ago•1 comments