frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

You might not need a service worker

https://www.jayfreestone.com/writing/you-might-not-need-a-service-worker/
1•Fudgel•2m ago•0 comments

Micron Suggests Apple Helped Cause Memory Price Crisis

https://www.macrumors.com/2026/06/26/micron-suggests-apple-helped-cause-memory-crisis/
1•mgh2•2m ago•0 comments

Reacting to Two French Entrepreneurs Who Built a $100K SaaS

https://thenewassociationwebmasters.blogspot.com/2026/06/from-20000-to-100000month-raw.html
1•odilelof•3m ago•0 comments

China cracks down on rule-bending offshore investments

https://www.economist.com/finance-and-economics/2026/06/28/china-cracks-down-on-rule-bending-offs...
2•andsoitis•7m ago•1 comments

The Truth about Space Data Centers [video]

https://www.youtube.com/watch?v=_qpdUNMt2yg
2•tambourine_man•12m ago•0 comments

Why can't India's government build a decent website?

https://www.economist.com/asia/2026/06/28/why-cant-indias-government-build-a-decent-website
4•andsoitis•16m ago•3 comments

A faster bump allocator for rust

https://owen.cafe/posts/stumpalo/
3•birdculture•24m ago•0 comments

AI 'exuberance' risks ending in lengthy investment bust

https://www.ft.com/content/e81ce414-e4bd-4e8c-bac7-94f7bf17def4
3•petethomas•32m ago•1 comments

Show HN: Image2JXL – a native macOS JPEG XL converter

https://old.reddit.com/r/givebest/comments/1ueh3v4/i_built_image2jxl_a_native_macos_app_for_local/
3•givebest•40m ago•0 comments

Self-learning skill for Claude: let the agent capture its own hard-won patterns

https://github.com/Kulaxyz/self-learning-skills
3•kulaxyz•45m ago•0 comments

Show HN: A site that emails you the day your Bitcoin stack hits $1M

https://amimillionaire.com/
2•pro_methe5•45m ago•1 comments

Show HN: Calybris Core, a deterministic audit engine for decisions in Rust

https://github.com/emirhuseynrmx/calybris-core
3•emirhuseyininci•46m ago•0 comments

Show HN: wavecat – a fully local personal agent that watches your screen

https://wavecat.ai/
3•sdkpanda•49m ago•0 comments

Better Images of AI

https://betterimagesofai.org/
3•Curiositry•59m ago•0 comments

We need tech news sources which exclude AI

12•botfriendsarent•1h ago•5 comments

AI Agent Credential Crisis: Six Months of Incidents

https://devfortress.net/blog/semi-annual-2026
3•arian_•1h ago•0 comments

Stanford's Hoover Inst: "The Wealth Tax: Recipe for Economic Disaster"Lionaire [video]

https://www.youtube.com/watch?v=x6k4W5Qzg8U
2•stmw•1h ago•1 comments

Mux – A tmux overlay for managing Claude Code sessions

https://github.com/fashton28/mux
3•fashton28•1h ago•0 comments

A Fresh Equation Born from Hacker News Chaos

https://zenodo.org/records/21015132
2•GerbaitedLol•1h ago•0 comments

The Grim and the Dark: Jon Heder's journey into the world of Grimdark art [video]

https://www.youtube.com/watch?v=SBJefwNkLqo
2•andystanton•1h ago•0 comments

Company Cleaning Up the Reflecting Pool Says It Has 'Nothing to Hide'

https://www.wsj.com/us-news/lincoln-memorial-reflecting-pool-california-greenwater-services-729be960
4•petethomas•1h ago•0 comments

AI Agent Triggers Nuclear Strike After Getting Outmaneuvered in Civilization VI

https://decrypt.co/371877/ai-agent-nuclear-strike-civilization-vi-benchmark
7•Khaine•1h ago•1 comments

On cigarettes

https://funnelfiasco.com/blog/2026/06/28/on-cigarettes/
29•aendruk•1h ago•25 comments

Side-Stepping the Secretary Problem

https://www.evalapply.org/posts/side-step-secretary-problem-hiring/index.html
4•Curiositry•1h ago•0 comments

The Usefulness of AI Agents

https://erikjohannes.no/posts/20260408-on-the-usefulness-of-ai-agents/index.html
2•Curiositry•1h ago•0 comments

/Dev/Notion

https://www.notion.com/product/dev
3•handfuloflight•1h ago•0 comments

AI glasses are aiding cheating in exams. Test-obsessed Asia is ground zero

https://www.cnn.com/2026/06/26/asia/ai-glasses-cheating-exams-intl-hnk
4•pseudolus•1h ago•0 comments

AI Workflows in Production Without Burning Tokens

https://unmeshed.io/blog/bringing-ai-workflow-into-production-without-burning-tokens
2•jusonchan81•1h ago•0 comments

The Cheques Are for the Land Not the Intelligence

https://aidatumpoint.substack.com/p/the-cheques-are-for-the-land-not
3•MadCatBureau•1h ago•0 comments

Show HN: best.free

https://best.free/
4•nadermx•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