frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Vals.ai Benchmark – International Olympiad in Informatics

https://www.vals.ai/benchmarks/ioi
1•ZeljkoS•1m ago•1 comments

Urban life rests on invisible, extraordinary technology

https://www.economist.com/culture/2026/09/10/urban-life-rests-on-invisible-extraordinary-technology
1•bookofjoe•1m ago•1 comments

Wine-Assembly

https://wine-assembly.berrry.app/
1•tosh•2m ago•0 comments

A Fruit Fly's Disembodied Brain Is Now Trading Bitcoin on Coinbase

https://www.gadgetreview.com/a-fruit-flys-disembodied-brain-is-now-trading-bitcoin-on-coinbase
1•geox•2m ago•0 comments

The Libraries

https://fondazioneumbertoeco.org/en/lebiblioteche
1•jruohonen•3m ago•0 comments

When ntfs3 met iomap: debugging a kernel panic in Ubuntu 26.04

https://discourse.ubuntu.com/t/when-ntfs3-met-iomap-debugging-a-kernel-panic-in-ubuntu-26-04/87686
1•steelf•3m ago•0 comments

Machine Consciousness – Ethical Guidelines for Artificial Consciousness

https://github.com/saigkill/machine-consciousness
1•saigkill•6m ago•0 comments

Ask HN: What default model do you use and why?

2•stikit•7m ago•0 comments

Show HN: Agentic Deployment and Hosting

https://sitedropper.com/
2•mrjacuna•9m ago•1 comments

Distill Hiatus (2021)

https://distill.pub/2021/distill-hiatus/
1•Bluestein•18m ago•1 comments

iTerm2 – Claude Code Integration

https://iterm2.com/claude-code-integration.html
2•trauco•18m ago•0 comments

I made a build profiler to understand Bun's compile times

https://lalitm.com/post/buildprof/
2•lalitmaganti•20m ago•0 comments

Mercury Is Shrinking Way Faster Than We Thought, Scientists Discover

https://www.404media.co/mercury-is-shrinking-way-faster-than-we-thought-scientists-discover/
2•Brajeshwar•21m ago•0 comments

Saudi Arabia Shuts Down Pipeline That Was a Crucial Hormuz Bypass

https://www.wsj.com/world/middle-east/saudi-arabia-shuts-down-pipeline-that-was-a-crucial-hormuz-...
3•kaycebasques•22m ago•0 comments

Reduce token cost with Metrum AI Router – routing intelligence you can train

https://github.com/metrum-ai/router
1•RouterTouter•26m ago•0 comments

BioNeMo Inference Runtime

https://github.com/NVIDIA-BioNeMo/BioNeMo-Inference-Runtime
1•khoahpd•29m ago•0 comments

Tech's New Rich Are Suffering from 'Sudden Wealth Syndrome'

https://www.bloomberg.com/news/articles/2026-09-11/tech-s-nouveau-riche-suffer-sudden-wealth-synd...
2•wslh•32m ago•1 comments

ASU: One CLI that shows how much of your agent subscription is left

https://chaosguru.substack.com/p/introducing-asu
1•taubek•32m ago•0 comments

In 1985, one video game made you telephone for permission to nuke Europe

https://www.escapistmagazine.com/news-theatre-europe-nuclear-war-phone-number-midnight-sun/
1•hentrep•35m ago•0 comments

SpaceX Backtracks on Starlink Data Cap After Complaints

https://www.pcmag.com/news/spacex-backtracks-on-starlink-data-cap-after-complaints
2•freedomben•37m ago•0 comments

GPT-6's "Stealth Thinking" [video]

https://www.youtube.com/watch?v=Nf4NdV8m28I
2•treetalker•40m ago•0 comments

I refuse to let SPICE die

https://github.com/nefarius/vd_agent/
2•Nefarius•40m ago•0 comments

Science gets by with a little help from the Beatles

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0356147%20&utm_campaign=2026-pr...
2•taubek•41m ago•0 comments

Finding Zero-Days with Any Model

https://www.provos.org/p/finding-zero-days-with-any-model/
2•wslh•41m ago•0 comments

The Metamorphosis

https://en.wikipedia.org/wiki/The_Metamorphosis
1•chistev•41m ago•0 comments

Mathematicians are unhappy about OpenAI

https://twitter.com/lemire/status/2098497422297039012
2•tosh•42m ago•0 comments

FTC Kickoff (at 4 PM UTC) [video]

https://www.youtube.com/watch?v=gO98TkgY0kI
3•iamcoder18•44m ago•2 comments

A Misalignment of AI in Mathematics: Kevin Buzzard Responds

https://leanprover.zulipchat.com/#narrow/channel/113488-general/topic/Declaration.3A.20A.20Severe...
4•mathgenius•46m ago•1 comments

Build a Tiny Scheduler from Scratch

https://pmbanugo.me/blog/crash-course-on-programming-concurrent-systems
1•tosh•46m ago•0 comments

Europe's "Less" Is Doing More Than Anyone Gives It Credit For

https://oilprice.com/Energy/Energy-General/Europes-Less-Is-Doing-More-Than-Anyone-Gives-It-Credit...
2•u1hcw9nx•48m 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