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•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•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

Show HN: CF Local Helpers – Dashboard for Cloudflare Workers Local Dev

https://github.com/bimsina/cf-local-helpers
1•bimsina•47s ago•0 comments

"You should never build a CMS"

https://www.sanity.io/blog/you-should-never-build-a-cms
1•handfuloflight•2m ago•0 comments

Will blockbuster obesity drugs revolutionize addiction treatment?

https://www.nature.com/articles/d41586-025-03911-x
1•qnleigh•4m ago•0 comments

Interlock – a circuit breaker and certification system for AI infrastructure

https://github.com/CULPRITCHAOS/Interlock
1•CULPRITCHAOS•10m ago•1 comments

ICE Holding Chinese Man Who Documented Uyghur Camps

https://www.wsj.com/world/china/ice-holding-chinese-man-who-documented-uyghur-camps-a4702045
1•gok•11m ago•0 comments

Counter Social – a next-generation anti abuse and user privacy social network

https://counter.social/index.html
1•inesranzo•11m ago•0 comments

Game Theory and Your Lawn

https://domofutu.substack.com/p/game-theory-and-your-lawn
1•wjb3•12m ago•0 comments

'It was like a dream': How Australia's rarest bird of prey was found

https://www.watoday.com.au/national/western-australia/it-was-like-a-dream-how-australia-s-rarest-...
1•defrost•20m ago•0 comments

Show HN: Rolldphobia – Bundle size analyzer with tree-shaking using Rolldown

https://rolldphobia.ssssota.dev/
1•ssssota•27m ago•0 comments

Hyrumrand – Golang random number generator based on random map iteration order

https://github.com/micrictor/hyrumrand
2•mtud•29m ago•0 comments

Ask HN: How does traceroute on airplane wifis work?

1•bjourne•31m ago•0 comments

Neutrino Alchemy: Sun's Ghost Particles Caught Transforming Atoms

https://www.sciencealert.com/neutrino-alchemy-suns-ghost-particles-finally-caught-transforming-atoms
1•Guestmodinfo•32m ago•0 comments

Pingfs: Stores your data in ICMP ping packets

https://github.com/yarrick/pingfs
1•linkdd•32m ago•0 comments

Design Is Search

https://twitter.com/karrisaarinen/status/1999730838280503775
2•gmays•33m ago•0 comments

Altman: Super intelligence in 10 years, more extraordinary things in 2026

https://openai.com/index/ten-years/
2•aurareturn•33m ago•1 comments

What happens when the coding becomes the least interesting part of the work

https://obie.medium.com/what-happens-when-the-coding-becomes-the-least-interesting-part-of-the-wo...
2•gmays•36m ago•0 comments

Ask HN: A browser that syncs history reliably across devices?

1•workfromspace•41m ago•0 comments

Pizlix: Memory Safe Linux from Scratch

https://fil-c.org/pizlix
2•nullbyte808•42m ago•0 comments

Send Me to Heaven (2013)

https://en.wikipedia.org/wiki/Send_Me_to_Heaven
2•gregsadetsky•45m ago•0 comments

Maths can help you wrap your presents better

https://www.bbc.com/future/article/20251212-how-maths-can-help-you-wrap-your-presents-better
1•1659447091•46m ago•0 comments

Vibe Engineering (2026)

https://www.manning.com/books/vibe-engineering
1•turtleyacht•46m ago•0 comments

We used Codex to build Sora for Android in 28 days

https://openai.com/index/shipping-sora-for-android-with-codex/
2•crorella•46m ago•1 comments

Investors commit quarter-billion dollars to startup designing "Giga" satellites

https://arstechnica.com/science/2025/12/investors-commit-quarter-billion-dollars-to-startup-desig...
1•BWStearns•56m ago•0 comments

Rails Pulse: Performance monitoring and debugging gems for Rails application

https://github.com/railspulse/rails_pulse
1•ksec•57m ago•0 comments

Tiger teeth, dried seahorses and shark fins sold illegally on Facebook

https://www.bbc.com/news/articles/ce91072g59no
1•1659447091•1h ago•0 comments

The Chinese Billionaires Having 100s of U.S.-Born Babies via Surrogate

https://www.wsj.com/us-news/chinese-billionaires-surrogacy-pregnancy-7fdfc0c3
15•jkuria•1h ago•1 comments

The Math of Universality

https://www.pma.caltech.edu/news/the-math-of-universality
2•ashishgupta2209•1h ago•0 comments

Black Pyramid, Alaska

https://vinyasi.substack.com/p/the-black-pyramid-of-alaska
1•vinyasi•1h ago•0 comments

Advanced Embedded Software Development at CU Boulder Final Projects

https://sites.google.com/colorado.edu/aesdf25finalprojects/home
3•mooreds•1h ago•1 comments

Tiobe Index for December 2025: R Joins the Top as SQL Climbs

https://www.techrepublic.com/article/news-tiobe-commentary-dec-2025/
6•smurda•1h ago•1 comments