frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Delegated Capability and Non-Delegated Responsibility

https://medium.com/@smoking2man/delegated-capability-and-non-delegated-responsibility-toward-an-a...
1•Aldus551•2m ago•0 comments

Unified Grid: How We Re-Architected Slack for Our Largest Customers

https://slack.engineering/unified-grid-how-we-re-architected-slack-for-our-largest-customers/
1•birdculture•4m ago•0 comments

Happy Diwali

https://keithhaviland.com/2014/10/23/happy-diwali/
1•ankitg12•5m ago•0 comments

GitHub Down Again?

https://github.com/torvalds/linux
6•ridowk•5m ago•4 comments

OpenSSL 3.4 and 3.6 End of Life

https://openssl-library.org/post/2026-11-01-eol34-36/
1•gslin•7m ago•0 comments

Incredible take from one of the GNU maintainers

https://social.treehouse.systems/@ariadne/117579594140229264
2•rapnie•11m ago•2 comments

Show HN: stardelt.io – a self-hosted lakehouse on k8s (pre-alpha)

https://stardelt.io/
1•schwarztrinker•11m ago•0 comments

a

http://a.com
1•ambrionas•17m ago•0 comments

Is the era of the educated elite over? (M.Gove, T.Debbonaire, D.Susskind) [video]

https://www.youtube.com/watch?v=3gZMT_NRWJE
1•mdp2021•19m ago•1 comments

What Can AI Hack? Inside Frontier Labs' Tests

https://dorcohen.dev/posts/what-can-ai-actually-hack/
1•dibidee•19m ago•0 comments

Elliptic Curve Arithmetic for Quantum Cryptanalysis: A Study of Curve25519

https://eprint.iacr.org/2026/2688
1•gslin•24m ago•0 comments

We Visited China's Stargate in Inner Mongolia

https://newsletter.semianalysis.com/p/we-visited-chinas-stargate-in-inner
2•giuliomagnifico•26m ago•0 comments

Kalder CEO Sentenced to 25 Months in Prison

https://www.justice.gov/usao-sdny/pr/kalder-ceo-sentenced-25-months-prison
1•reasonableklout•28m ago•0 comments

Researchers unveiled new techniques to protect AI from backdoor attacks

https://news.ncsu.edu/2026/11/new-techniques-to-prevent-backdoor-attacks/
2•giuliomagnifico•29m ago•1 comments

Arete-27B: Training methodology and accepted factual inaccuracies

https://rentry.co/qqq47kpa
1•rzerowan•32m ago•1 comments

Ask HN: Is anyone using Codex, Gemini or another model over Claude Code?

1•turbobutton•33m ago•0 comments

Aina Ring

https://www.aina.com/
1•arbayi•35m ago•0 comments

Taiwan sets new short-selling limits to aid beaten stock market 1d •

https://www.msn.com/en-us/money/top-stocks/taiwan-sets-new-short-selling-limits-to-aid-beaten-sto...
1•gvieri•38m ago•0 comments

ThinkStream – AI generates the work. We still need to understand it

https://thinkstream.app/
10•aginext•41m ago•0 comments

Running cyberpunk 2077 natively on Vision Pro

https://github.com/Ag3497120/VXpro
3•masaton•45m ago•0 comments

AI Companies Want to Buy Your Work Files and Emails

https://www.wired.com/story/ai-companies-really-really-want-to-buy-your-work-files-and-emails/
3•benrmatthews•46m ago•1 comments

2026 ACM SIGOPS Annual Technical Conference

https://atc.sigops.org/2026/schedule.html
1•so-cal-schemer•48m ago•1 comments

Project Steadfast

https://noteflakes.com/articles/2026-11-07-introducing-project-steadfast
1•ciconia•50m ago•0 comments

Hi HN, my first post

2•roshan_m•56m ago•0 comments

Thermodynamics in Einstein's Thought(1967) [pdf]

http://rpdata.caltech.edu/courses/aph105c/2006/articles/Klein_Einstein.pdf
1•nill0•59m ago•0 comments

From the Vault to Your Library–How Seven of EA's Classic Games Were Restored

https://www.ea.com/news/from-the-vault-to-your-library
2•kderbe•1h ago•1 comments

Agentic Development Future and Current Directions – Nov 2026

https://robotpaper.ai/agentic-development-future-and-current-directions-nov-2026/
1•royosherove•1h ago•0 comments

I'm Rewriting IBM SPSS Statistics in 100% Safe Rust, Alone

https://github.com/kobaltgit/StatCraft
2•kobaltGIT•1h ago•0 comments

Deuterium's Impact on OLED Displays (2024)

https://www.oled-info.com/deuteriums-impact-oled-displays
2•zeristor•1h ago•1 comments

Samsung Put Ads on a Refrigerator You Bought

https://www.thepricer.org/samsung-put-ads-on-a-refrigerator-you-already-bought/
2•marksmark•1h ago•0 comments
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