frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

China won the car wars with cheap EVs loaded with technology

https://www.rnz.co.nz/news/world/782063/how-china-won-the-car-wars-with-cheap-evs-loaded-with-tec...
3•billybuckwheat•4m ago•0 comments

The Online MBA

https://theonline.mba
1•multiplesauces•4m ago•1 comments

The Elm Architecture, Without Elm

https://bichanna.github.io/posts/tea-time/
1•theanonymousone•5m ago•0 comments

Sherlock Search – find anyone by photo

https://sherlocksearch.net
1•thefirstname322•5m ago•0 comments

AI bet goes awry: Oracle fires 21,000 employees

https://www.jpost.com/business-and-innovation/tech-and-start-ups/article-903442
2•willmarch•6m ago•0 comments

About 1 in 4 workers keep unwanted jobs for health insurance, poll finds

https://www.washingtonpost.com/business/2026/07/24/about-1-4-workers-keep-unwanted-jobs-health-in...
2•bookofjoe•9m ago•1 comments

Show HN: Verified B2B leads with the reason to reach out now

https://madleadz.com/
1•not_wowinter14•9m ago•0 comments

CodeCrafters – Build Your Own <X> repo

https://github.com/codecrafters-io/build-your-own-x
1•matthberg•10m ago•0 comments

Ukraine's Kill Zone

https://www.reuters.com/graphics/UKRAINE-CRISIS/KILL-ZONE/znpnojmknvl/
2•mathgenius•13m ago•0 comments

There isn't a single consumer Wi-Fi router that is 100% American-made

https://www.engadget.com/2218707/no-100-percent-american-made-wifi-router/
1•speckx•13m ago•0 comments

OpenAI's Dean Ball on Chinese Open-Weight Models

https://twitter.com/deanwball/status/2078133895766114412
2•matt_daemon•14m ago•0 comments

India's CJP Protests Meet Internet Shutdowns and Pervasive Surveillance

https://www.techpolicy.press/indias-cjp-protests-meet-internet-shutdowns-and-pervasive-surveillance/
2•sid_talks•16m ago•0 comments

Canva uses S3 for logged-in session management

https://www.canva.dev/blog/engineering/session-revocations-at-scale/
1•birdculture•17m ago•0 comments

Quick Followup on the Truth Social Thing

https://www.businesslawprofessors.com/2026/07/quick-followup-on-the-truth-social-thing/
2•petethomas•17m ago•0 comments

Ask HN: What Linux distro do you daily drive?

5•addajones•17m ago•5 comments

FreeBSD ports frozen after someone commits the 150MB Linux Copilot binary

https://www.osnews.com/story/145593/freebsd-ports-frozen-after-someone-commits-the-entire-150mb-l...
1•iamnothere•18m ago•0 comments

Light Flip Phone

https://www.thelightphone.com/lightflip
2•agilek•20m ago•0 comments

Recent Modeling Systematically Underestimates Warming from IMO2020 Shipping Regs

https://egusphere.copernicus.org/preprints/2026/egusphere-2026-2654/
1•littlexsparkee•20m ago•0 comments

A DEX aggregator whose quotes are computed on-chain (free API, no key)

https://blazephoenix.xyz/
1•mitraxyz•20m ago•1 comments

Show HN: SQL service for tables with billions of rows or up to 1M columns

2•synsqlbythesea•23m ago•0 comments

When AI Attacks AI: Why Every System Needs a Guard

https://medium.com/@alanscottencinas/when-ai-attacks-ai-why-every-system-needs-a-guard-8ba46f904378
1•encinas88•23m ago•0 comments

Four takeaways from our investigation into a hidden gene-editing death

https://www.science.org/content/article/four-takeaways-our-investigation-hidden-gene-editing-death
2•sbulaev•26m ago•0 comments

Patreon Lays Off 20% of Employees as Part of 'Painful' Restructuring

https://variety.com/2026/biz/news/patreon-cuts-20-percent-of-employees-painful-restructuring-1236...
5•adamhowell•26m ago•0 comments

Stripe in talks to buy OpenRouter for about $10B

https://twitter.com/andrewcurran_/status/2080397684134007189
11•julien_c•28m ago•1 comments

Future euro banknote design proposals

https://www.ecb.europa.eu/euro/banknotes/future_banknotes/html/design-proposals.en.html
1•amarcheschi•30m ago•0 comments

Negative Resistance

https://lcamtuf.substack.com/p/negative-resistance
1•surprisetalk•32m ago•0 comments

MTTR is the wrong metric for Engineering Teams today

https://www.ito.ai/blog/mttr-wrong-metric-ai-engineering-teams
2•jevanish•33m ago•0 comments

Soccer/Wordle/Chess

https://tactkicks.com/
1•alfredmalmros•33m ago•0 comments

Nvidia Puts a 4B World Model on the Robot [Weekly Physical AI Roundup]

https://topicqueue.substack.com/p/nvidia-puts-a-4b-world-model-on-the
1•DISCURSIVE•34m ago•0 comments

A Minimal IR for RTL

https://miguel9554.github.io/blog/posts/a-minimal-ir-for-rtl/
1•fourier54•36m 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