frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

July's Heat Dome Put DR on the Front Lines with One of Our Biggest Event Weeks

https://uplight.com/blog/julys-heat-dome-put-dr-on-the-front-lines-with-one-of-our-biggest-event-...
1•mooreds•19s ago•0 comments

After the IDE [video]

https://www.youtube.com/watch?v=bvwE9XpNXOI
1•whosgotch•1m ago•0 comments

Ask HN: What email provider do you recommend for personal email?

1•shlomo_z•1m ago•0 comments

Show HN: Chopi, a macOS filesystem+network sandbox to unleash your agents

https://github.com/danra/chopi
1•danra•2m ago•0 comments

Our puzzle generator lied about difficulty. Twice

1•cybiqonai•4m ago•0 comments

Projected economic gains and lives saved under universal healthcare in the US

https://www.medrxiv.org/content/10.64898/2026.07.22.26358689v1
2•robtherobber•5m ago•0 comments

Show HN: Local Code Review

https://plannotator.ai/code-review/
2•ramoz•6m ago•0 comments

AI Loop Engineering in 2026: How to Build a Gauntlet Loop

https://www.thepromptindex.com/ai-loop-engineering-gauntlet-loop-guide.html
2•westurner•7m ago•0 comments

Rails Is Done

https://lucas.dohmen.io/posts/2026/08/09/rails-is-done/
3•ramon156•8m ago•0 comments

Grok Bot by SpaceXAI

https://x.ai/news/introducing-grok-bot
3•colesantiago•8m ago•0 comments

How to add package if no pip

1•lpcamisoul•9m ago•1 comments

Mastering Edge AI on Raspberry Pi with LiteRT and Gemma

https://developers.googleblog.com/mastering-edge-ai-on-raspberry-pi-with-litert-and-gemma/
1•simonpure•9m ago•0 comments

Tell HN: Striking a Balance Between Stating Your Requirements and Griefers

1•logicallee•10m ago•0 comments

Grok Bot

https://x.ai/bot
3•rvz•10m ago•0 comments

OpenAI executive Brad Lightcap leaves as shakeup at AI lab continues

https://www.cnbc.com/2026/08/11/longtime-openai-executive-brad-lightcap-leaves-as-shakeup-at-ai-l...
2•beejiu•11m ago•0 comments

Mitchell Hashimoto's daily schedule given Superlogical, second kid, and AI usage

https://twitter.com/mitchellh/status/2087227139154448436
1•tosh•11m ago•0 comments

Kaggle Leaderboard Shakeup: When a Metric Stops Ranking

https://medium.com/@alanscottencinas/kaggle-leaderboard-shakeup-when-a-metric-stops-ranking-0688b...
1•encinas88•11m ago•0 comments

Trump to give Republicans a 3-1 FCC majority, not filling empty Democratic seat

https://arstechnica.com/tech-policy/2026/08/trump-to-give-republicans-a-3-1-fcc-majority-isnt-fil...
2•mdp2021•12m ago•0 comments

Paramount to Leave CA If States Refuse to Negotiate Settlement in Antitrust Suit

https://variety.com/2026/film/news/david-ellison-move-paramount-out-of-california-states-antitrus...
1•indigodaddy•14m ago•0 comments

Cursor and SpaceXAI launch Grok Bot for work beyond coding

https://runtimewire.com/article/cursor-spacexai-launch-grok-bot-general-purpose-agents
1•ryanmerket•14m ago•0 comments

How we control a remote browser with a Chrome extension faster than Playwright

https://www.browserbase.com/blog/stagehand-v4
1•Kylejeong21•14m ago•0 comments

Something Nobody Told You About the Image Element (It Can Overflow)

https://master.dev/blog/something-nobody-told-you-about-the-image-element-it-can-overflow/
2•ibobev•17m ago•0 comments

CSS Properties You Should Know for Better Text Designs

https://master.dev/blog/typographic-css-tricks/
2•ibobev•17m ago•0 comments

View Transitions: Careful Not to Make Stuff Unclickable

https://master.dev/blog/view-transitions-careful-not-to-make-stuff-unclickable/
1•ibobev•18m ago•0 comments

Nigeria: Lifting the Lid: Internal docs expose Shell's negligent oil operations

https://www.amnesty.org/en/documents/afr44/1304/2026/en/
3•RetroTechie•19m ago•1 comments

Show HN: Zsort, a fast import organizer for Zig

https://github.com/mstdokumaci/zsort
1•mstdokumaci•19m ago•0 comments

Mourning and moving on: rituals for leaving a career (2014)

https://franceshocutt.com/2014/09/10/on-mourning-and-moving-on-rituals-for-leaving-a-career/
2•downbad_•19m ago•0 comments

Signing and verifying AI outputs with revocable trust

https://www.youtube.com/watch?v=8OF1gS5jn3w
1•lyfeninja•19m ago•0 comments

Don't Lock User Data Behind Paywalls

https://onlinegoddess.net/2026/08/dont-lock-user-data-behind-paywalls/
1•speckx•19m ago•0 comments

Goodhart's Law Isn't as Useful as You Might Think (2023)

https://commoncog.com/goodharts-law-not-useful/
1•downbad_•19m 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