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

Alternative to Internet Archive

1•earworms•6m ago•0 comments

Debian has begun voting on the future of AI/LLM contributions

https://lists.debian.org/debian-devel-announce/2026/08/msg00002.html
1•matheusmoreira•9m ago•0 comments

The Ad Tech Industry Is a Mess, and DecryptAds Aims to Do Something About It

https://decryptads.com/blog/posts/ad-tech-transparency-launch.html
1•classified•17m ago•0 comments

Who's Tracking You? Use DecryptAds to Find Out

https://krebsonsecurity.com/2026/08/whos-tracking-you-use-this-new-service-to-find-out/
2•classified•18m ago•0 comments

Finding a time for a group meeting shouldn't require 20 messages

https://syncerapp.vercel.app/
1•leo_proger•19m ago•0 comments

Buying a single character domain – and 3 character FQDN – for £15

https://shkspr.mobi/blog/2020/08/buying-a-single-character-domain-and-3-character-fqdn-for-15/
2•n_plus_1_acc•23m ago•0 comments

Wayland, Pipewire, Open Source Slowly Closing?

1•earworms•23m ago•0 comments

For the love of god, stop using CPU limits on Kubernetes

https://home.robusta.dev/blog/stop-using-cpu-limits
2•inigyou•25m ago•0 comments

External Index Over Parquet for Fast Point Queries

https://engineering.atspotify.com/2026/7/indexing-the-data-lake-for-online-point-queries
1•djdillon•30m ago•0 comments

It's the SUV tyranny: where have all the normal family cars gone?

https://www.theguardian.com/commentisfree/2026/aug/15/suv-normal-family-cars-roads-supersized-con...
1•mellosouls•34m ago•0 comments

Show HN: AI First Virtual Linux Desktop as a Mac App

https://aifcc.franzai.com/
1•franze•34m ago•0 comments

Listen to my free techno songs you freeloading tech hobo's

https://soundcloud.com/user-111956257
2•minimaxa•40m ago•1 comments

Jobs to Be Done

https://stratnotes.substack.com/p/jobs-to-be-done
3•swastikanayak•40m ago•0 comments

N8N in Production: Lead Qualification That Works

https://trpevski.com/blog/n8n-in-production-lead-qualification-that-works/
1•dzugumot•42m ago•0 comments

Computing Graph Dominators

https://neugierig.org/software/blog/2026/08/dominators.html
1•fanf2•47m ago•0 comments

Show HN: UltimateXO – Open-Source Ultimate Tic-Tac-Toe Web Game

https://ultimatexo.com/
2•mekky16•49m ago•0 comments

People with Stronger Psychopathic Traits Carry Certain Gut Bacteria

https://www.rathbiotaclan.com/study-reveals-microbes-in-your-gut-and-mouth-may-track-psychopathic...
1•Akasci•52m ago•0 comments

Secondhand UK and Irish booksellers suspect AI firms behind strange bulk orders

https://www.theguardian.com/technology/2026/aug/15/uk-ireland-booksellers-suspect-ai-companies-bu...
2•mellosouls•53m ago•0 comments

DX12.0 and Vulkan 1.0 were designed for ~15 year old GPUs

https://twitter.com/SebAaltonen/status/2087870023557697856
1•ksec•1h ago•0 comments

One of the Most Important Policy Decisions of Our Lifetime

https://www.nytimes.com/2026/08/14/opinion/ai-policy-tax-technology.html
2•reasonableklout•1h ago•0 comments

Show HN: HN Without AI Stories

https://hnnoai.readpipe.org/
6•zorked•1h ago•1 comments

manim: Framework for Creating Mathematical Animations

https://github.com/manimCommunity/manim
1•pykello•1h ago•0 comments

Coreboot Overclocking Arrives on MSI's Z690 and Z790

https://hwbusters.com/news/coreboot-overclocking-arrives-on-msis-z690-and-z790-experimental-and-u...
1•pietrushnic•1h ago•1 comments

No Plan Survives Contact with the Enemy (Reality)

https://blog.exe.dev/planning
1•tosh•1h ago•0 comments

Causation in Climate Change: ICJ)'S Climate Change Advisory Opinion Re Tort Law

https://opiniojuris.org/2026/03/03/causation-in-climate-change-the-international-court-of-justice...
1•bryanrasmussen•1h ago•1 comments

Healthcare Palantir Prototype

https://tmg.marcokittel.de
1•evlute•1h ago•1 comments

Show HN: Chemistry AI – step-by-step chemistry solver

https://chemistryai.chat
1•realisticaigen•1h ago•0 comments

Jason Arday, professor at centre of Cambridge plagiarism row, found dead

https://www.theguardian.com/uk-news/2026/aug/14/jason-arday-found-dead-after-resigning-from-cambr...
5•jimnotgym•1h ago•0 comments

Show HN: Homelander – free desktop app that applies for apartments in Germany

https://www.youtube.com/watch?v=udNWQz3WNBI
1•b1z0n•1h ago•0 comments

Charity and Sylvia: The Extraordinary Claims of Rachel Hope Cleves

https://buttondown.com/thene/archive/charity-and-sylvia-the-extraordinary-claims-of/
2•bryanrasmussen•1h ago•0 comments