frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

A Mathematician's Lament (2002) [pdf]

https://profkeithdevlin.org/wp-content/uploads/2023/09/lockhartslament.pdf
1•xeonmc•4m ago•0 comments

AI micro dramas turn China's entertainment industry on its head

https://www.abc.net.au/news/2026-11-28/ai-microdramas-disrupt-china-entertainment-industry/107421952
1•ahonhn•4m ago•0 comments

Estimating LLM decode speed and the price of a token per second

https://wanabai.com/build-finder/paper.html
1•lrsaturnino•5m ago•0 comments

Researchers make leg support robot that syncs with user's steps

https://www.asahi.com/ajw/articles/17004201
1•rawgabbit•7m ago•0 comments

Which Future?

https://michaelnotebook.com/whichfuture/index.html
1•embedding-shape•9m ago•0 comments

Claude silently added rules to ignore users skintone preferences in our app

https://twitter.com/jakozloski/status/2126281598517576049
2•doctoboggan•11m ago•0 comments

Show HN: Mobile App Builder

https://iwantmy.app
1•aczelgreat•14m ago•0 comments

Knuth: Moratorium on Error Reports

https://www-cs-faculty.stanford.edu/~knuth/moratorium.html
3•ultraficial•17m ago•1 comments

Mac Memory Monitor: menu bar app that pauses idle Claude Code sessions

https://github.com/ryan-helou/MacMemoryMonitor
1•ryan_helou•18m ago•1 comments

Trending Open-Source Software · Opensourcesoftware.ai

https://opensourcesoftware.ai
1•abdelhousni•22m ago•0 comments

Chips Made of Light Are 100× Faster but There's a Catch [video]

https://www.youtube.com/watch?v=lTkRWrhfiRA
1•peter_d_sherman•23m ago•0 comments

Llm.asm – Pure x86-64 Assembly for LLM Inference and Training

https://github.com/alesha-pro/llm.asm
3•codetiger•26m ago•1 comments

Why Criticise the Tech Industry?

https://deadsimpletech.com/blog/why-criticise-tech
1•HotGarbage•27m ago•0 comments

Hackers breach Erlang and Elixir package manager

https://risky.biz/risky-bulletin-hackers-breach-erlang-and-elixir-package-manager/
1•turbocon•27m ago•0 comments

UK orders 100K reserve soldiers to prepare for war [video]

https://www.youtube.com/watch?v=c4_S-mWKeAk
1•Bender•27m ago•0 comments

Show HN: Our Build Studio – Track home builder upgrades and variation quotes

https://ourbuildstudio.com/app/demo
1•Acidack•30m ago•0 comments

If you're doing Monte Carlo try Knuth LGC

1•logicallee•31m ago•0 comments

Effective Altruism Bought the Media

https://www.effort.news/tarbell
1•MrBuddyCasino•32m ago•0 comments

Frontier models need only one text to unmask its human or AI author

https://arxiv.org/abs/2611.26216
3•xqcgrek2•33m ago•0 comments

A Type Stronger Than the Sum of Its Components

https://www.schneems.com/2026/09/24/a-type-stronger-than-the-sum-of-its-components/
1•mmsilvachavez•42m ago•0 comments

Tariffs Are Here to Stay (2025)

https://www.pimco.com/gbl/en/insights/tariffs-are-here-to-stay
1•mooreds•44m ago•0 comments

You built five apps this month. You shipped zero

https://failedups.com/
1•mooreds•45m ago•0 comments

Unkernel: Real Linux kernel, compiled to WebAssembly

https://unkernel.dev
15•nreece•47m ago•3 comments

A Single API Flaw Exposed 6.2 TB of Sensitive Data Across 250 Organisations

https://www.cloudsek.com/blog/api-flaw-supply-chain-data-exposure-250-organisations
2•mooreds•47m ago•0 comments

Why was the Commodore 64 so popular, and why did its successors fail? [video]

https://www.youtube.com/watch?v=0piTy6MsIOs
1•oldnetguy•47m ago•0 comments

A new breed of chip runs AI models using waves of light

https://www.wired.com/story/a-new-breed-of-chip-runs-ai-models-using-waves-of-light/
1•Skyfall106•47m ago•0 comments

Show HN: Flokk Hunter – a browser stealth game about surveillance cameras

https://www.zeitgames.com/games/flokk-hunter
1•aidev9899•47m ago•0 comments

The Unbearable Heat of Delhi's Summer Nights

https://www.nytimes.com/2026/11/26/world/asia/delhi-heat-summer-nights.html
1•bookofjoe•47m ago•1 comments

Fresh-start: the record of the Claude Code leak mirror, the DMCA, and the x402 C

https://github.com/nirholas/fresh-start
2•hamuyela•48m ago•0 comments

SQLite, Everywhere

https://www.sqlite.ai
4•measurablefunc•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