frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

For Whom the Bull Tolls: Hemingway and Bullfighting

https://www.historytoday.com/archive/natural-histories/whom-bull-tolls-hemingway-and-bullfighting
1•Thevet•2m ago•0 comments

LeelaRookOdds's French Defense

https://lichess.org/@/codysmile11/blog/leelarookoddss-french-defense/IrHe3XFH
1•fzliu•2m ago•0 comments

Bengaluru triple murder: Why cops wanted to make AI chatbot an accomplice

https://www.indiatoday.in/india/karnataka/story/bengaluru-triple-murder-rk-puram-kenneth-ai-chatb...
1•mandliya•3m ago•0 comments

Show HN: A deterministic governance harness for agentic development loops

https://github.com/owulveryck/poc-agentic-platform
1•owulveryck•5m ago•0 comments

Legal Obligations vs. Social Contracts

https://pointieststick.com/2026/07/21/legal-obligations-vs-social-contracts/
1•jandeboevrie•8m ago•0 comments

Why did I, a libertarian anarchist, support the Örebro Party with a donation?

https://dberntsson.info/2026/07/20/orebropartiet/
1•romanzipp•9m ago•0 comments

Show HN: ReadKinetic – a free, local-first speed reader for your own books

https://www.readkinetic.com/app/
3•SamuraiLion•10m ago•0 comments

Prefactoring: Clear the Way for Your New Feature

https://testing.googleblog.com/2026/07/prefactoring-clear-way-for-your-new.html
1•jandeboevrie•11m ago•0 comments

Software glitch allowed nearly 400 non-US citizens to vote in New Jersey

https://gothamist.com/news/software-glitch-allowed-nearly-400-non-us-citizens-to-vote-in-nj-gov-s...
3•geox•16m ago•0 comments

The Conspiracy Against High Temperature Sampling

https://gist.github.com/Hellisotherpeople/71ba712f9f899adcb08b94bce20d5397
2•theanonymousone•16m ago•0 comments

Israel is building a miles-long barrier in Gaza, entrenching its division

https://apnews.com/article/israel-gaza-yellow-line-barrier-ceasefire-941ed80f6d4398ce88916f6b0875...
2•hebelehubele•18m ago•1 comments

Show HN: A new kind of FPS aim trainer

https://openaim.pramit.gg/
2•pmazumder•21m ago•0 comments

AI Cheating happening more and is hard to verify

https://www.theregister.com/ai-and-ml/2026/07/21/ais-cheatin-heart-will-make-you-weep/5275784
1•Gaishan•21m ago•0 comments

The secret Trump administration battle to fight Chinese AI

https://www.axios.com/2026/07/20/ai-us-china-open-source-kimi
1•hentrep•22m ago•0 comments

Ukraine's drone strikes put pressure on Russian economy

https://www.politico.eu/article/ukraine-drone-strikes-russian-economy-pressure/
1•Gaishan•23m ago•0 comments

Librrd Playground

https://systemf.epfl.ch/etc/librrd/
1•E-Reverance•29m ago•0 comments

DeepSeek Search Down

https://status.deepseek.com/incidents/6741259174287
1•Linserin•29m ago•0 comments

Show HN: JavaScript framework where code order matches the UI sequence

https://github.com/livetrails/targetjs
1•ahmadwasfi•30m ago•0 comments

Macaron-V1

https://macaron.im/mindlab/research/introducing-macaron-v1
1•ilreb•34m ago•0 comments

NVIDIA Synthetic Video Detector

https://build.nvidia.com/nvidia/synthetic-video-detector
2•jonbaer•35m ago•0 comments

China's 'AI for All' Offensive Defies US Containment Playbook

https://www.bloomberg.com/news/articles/2026-07-22/china-s-ai-for-all-offensive-defies-us-contain...
2•thm•38m ago•0 comments

CinematicBench, a reproducible benchmark for scroll craft

https://github.com/MustBeSimo/cinematic-scroll-skill
2•mustbesimo•41m ago•0 comments

'Everything I know about evil I learned in that small town': John Carpenter

https://www.theguardian.com/lifeandstyle/2026/jul/20/everything-i-know-about-evil-i-learned-in-th...
2•Michelangelo11•41m ago•0 comments

Samsung in talks to invest in Mistral at €20B valuation

https://www.ft.com/content/67a5d255-c6e9-4269-b8a0-3105db69c1ec
4•petethomas•41m ago•0 comments

Original Apollo 11 Guidance Computer source code for command and lunar modules

https://github.com/chrislgarry/Apollo-11
13•noteness•42m ago•2 comments

App vs. Website: Why Apps Feel Smoother Than Sites

https://lazerg.uz/en/blog/ilova-va-sayt-tezlik-farqi
2•lazerg•43m ago•0 comments

Human-Centered Change and Innovation

https://bradenkelley.com/2026/06/mechanistic-interpretability-ai-trust/
2•mahirsaid•43m ago•0 comments

News Corp accuses search engine Brave of AI copyright infringement

https://www.semafor.com/article/07/21/2026/newscorp-accuses-search-engine-brave-of-ai-copyright-i...
2•thm•51m ago•0 comments

Study: Digital media may reshape people's willingness to invest cognitive effort

https://cs.ut.ee/en/news/digital-media-may-reshape-peoples-willingness-invest-cognitive-effort
2•giuliomagnifico•59m ago•0 comments

How Anthropic runs large-scale code migrations with Claude Code

https://twitter.com/ClaudeDevs/status/2079654423828304282
3•pretext•1h ago•1 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