frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Neuralwatt Doubling the Price

https://portal.neuralwatt.com/pricing
1•MehrdadKhnzd•24s ago•0 comments

The great AI data centre cover-up

https://www.ft.com/content/7800ba0f-1420-49fe-b260-9838632a19a4
1•1vuio0pswjnm7•7m ago•0 comments

AI Investors Buying Accounting Companies and Force Them to Use OpenAI [video]

https://www.youtube.com/watch?v=2dp98vEGWq0
2•xbmcuser•11m ago•0 comments

Zeno's Paradox and Infinite Sums – Lectures on Infinity (Lecture 1) [video]

https://www.youtube.com/watch?v=4Y9p0yp8Mow
2•FillMaths•12m ago•0 comments

Italy privacy watchdog fines Character.ai owner over age-check failures

https://www.reuters.com/business/italy-privacy-watchdog-fines-characterai-owner-over-age-check-fa...
1•1vuio0pswjnm7•13m ago•0 comments

Hypeplan: Turn plans into terminal keynote speeches

https://github.com/martinrue/hypeplan
1•afisxisto•13m ago•1 comments

Semantic Fingerprinting Made Easy

https://github.com/thorwhalen/guise
1•ankitg12•21m ago•0 comments

Show HN: Zero2Robot – free, open source interactive textbook for robot learning

https://zero2robot.com/
1•kaushikbokka•21m ago•0 comments

Ask HN: Recommend a Local LLM Setup (M2 Max, 9GB)

1•balivandi•23m ago•0 comments

Show HN: Short SciFi/Fantasy Index

https://quasar.fyi/
1•FifthRocket•24m ago•1 comments

Ask HN: How do I get immoral AI?

2•nasaok•25m ago•0 comments

Best Job Oriented Courses in India: Guide, Rules and Benefits

https://www.smfgindiacredit.com/knowledge-center/best-job-oriented-courses-in-india.aspx
1•saumyaraut11•26m ago•0 comments

Show HN: World Clock with Twilight/Night Overlayed on Map

http://nixon-development.com/worldclock/
1•plun9•29m ago•0 comments

Ukraine's Drones Are Now Reaching Siberia and Imperiling Russian Energy Assets

https://www.wsj.com/world/ukraines-drones-are-now-reaching-siberia-and-imperiling-russian-energy-...
2•JumpCrisscross•29m ago•0 comments

Tech volatility hits highest since dot-com bust next to S

https://fortune.com/2026/07/07/tech-volatility-hits-highest-since-dot-com-bust-sp-500/
2•1vuio0pswjnm7•31m ago•0 comments

Mercor acquires Deeptune to build AI training environments

https://www.mercor.com/blog/mercor-to-acquire-deeptune/
1•doppp•36m ago•0 comments

UN digital tech agency launches initiative to improve trust in AI agents

https://www.reuters.com/legal/litigation/un-digital-tech-agency-launches-initiative-improve-trust...
1•giuliomagnifico•36m ago•0 comments

China's public QR codes are being hijacked to redirect users to porn and scams

https://www.sixthtone.com/news/1018752/ScanScam:CriminalsRedirectChina’sPublicQRCodestoPorn
12•whiteblossom•36m ago•0 comments

Jukebox: Themes inspired by music cover art

https://github.com/nooneknowspeter/jukebox
1•nooneknowspeter•36m ago•0 comments

Counting ArXiv Delays

https://fi-le.net/arxiv/
1•fi-le•42m ago•0 comments

China recovers Long March 10B rocket

https://www.bilibili.com/video/BV1n6NL6fEP9
5•ycui7•44m ago•2 comments

OpenAI and Google sell AI models to blacklisted China groups

https://www.ft.com/content/5d6aafa1-5d47-4585-aa95-6ec06a6cd20f
2•JumpCrisscross•45m ago•0 comments

China recovers reusable rocket used in the maiden launch of Long March 10B

https://www.scmp.com/news/china/science/article/3360069/china-recovers-long-march-10b-reusable-ro...
6•yms_hi•46m ago•0 comments

Think you can win on prediction markets? Here's why you're more likely to lose

https://www.cbc.ca/news/business/prediction-market-skilled-traders-9.7258090
2•1vuio0pswjnm7•48m ago•1 comments

I wrote about how we used Conway's Law to fix legacy architecture

https://one2n.io/blog/fixing-legacy-architectures-with-conways-law
1•chinmay185•53m ago•1 comments

"Worthless Idiot, Donkey Head": Parodies of Pedantry on the Renaissance Stage

https://publicdomainreview.org/essay/parodies-of-pedantry/
2•lermontov•55m ago•0 comments

Formally Verifying AI-Generated GPU Kernels

https://gimletlabs.ai/blog/formally-verifying-ai-generated-kernels
3•matt_d•56m ago•0 comments

Why is music so much easier for AI than code?

2•htlemur_bobby•56m ago•1 comments

Florida's OpenAI lawsuit moves to federal court, gets assigned to Aileen Cannon

https://www.politico.com/news/2026/07/08/floridas-openai-lawsuit-federal-court-aileen-cannon-0099...
1•1vuio0pswjnm7•1h ago•0 comments

Controlling the Human Body via EMS

https://github.com/danielkaijzer/Human-Operator
2•kaonwarb•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