frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Should AI labs be treated like the owners of dangerous animals?

https://www.economist.com/science-and-technology/2026/08/06/should-ai-labs-be-treated-like-the-ow...
1•reasonableklout•2m ago•0 comments

What counts as cooking? In defense of the store-bought sauce

https://iza.ac/posts/2026/06/what-counts-as-cooking/
1•mooreds•5m ago•0 comments

When Matt Taibbi Met Mike Benz

https://agentsofinfluence.substack.com/p/when-matt-taibbi-met-mike-benz
1•hn_acker•6m ago•0 comments

Classifying Capabilities (Extended Version)

https://arxiv.org/abs/2607.24504
1•matt_d•15m ago•0 comments

Annessaia – a sandboxed WASM app runtime with its own UI toolkit

https://github.com/vm100900/annessaia
1•virenmane•15m ago•0 comments

Is the IDE Dead?

https://textlog.cc/post/251
2•s-xyz•23m ago•0 comments

Solving Legal Problems with Dags

https://lexifina.com/blog/solving-legal-problems-with-dags
2•alansaber•24m ago•0 comments

Project Lana attempts to formalize hard to understand Mochizuki's IUT in Lean

https://anabelian.org/
2•ur-whale•25m ago•1 comments

Simplest CMS you'll ever need. Manage content right in your GitHub repository

https://pagescms.org/
3•Leftium•28m ago•0 comments

Atlas of Surveillance

https://www.atlasofsurveillance.org/
1•bookofjoe•28m ago•0 comments

The worlds longest song makes a chord change

https://www.msn.com/en-us/music/news/the-worlds-slowest-organ-concert-makes-a-chord-change/vi-AA2...
2•thatxliner•30m ago•0 comments

Am I the problem? Interviewing another team to find out

https://www.macchaffee.com/blog/2026/am-i-the-problem/
2•birdculture•46m ago•0 comments

A quick look at zero-knowledge proofs

https://bernsteinbear.com/blog/zkp/
3•tekknolagi•47m ago•1 comments

First JDK 28 Early-Access Build Including JEP 401: Value Objects

https://jdk.java.net/28/
1•mfiguiere•48m ago•0 comments

Kona EBMS – energy based models

https://logicalintelligence.com/kona-ebms-energy-based-models
1•binyu•48m ago•0 comments

Laws of Development

https://gavin.wtf/blog/laws-of-development/
2•gavino•51m ago•0 comments

Energy-Based Models Explained: The AI Beyond Next-Token [video]

https://www.youtube.com/watch?v=NYmXYF8A3Q4
1•binyu•53m ago•0 comments

Software as Executable Domain Knowledge

https://swipeleft.ai/servicematch/papers/software-as-executable-domain-knowledge/
3•jamesrbockrath•55m ago•0 comments

Graphify – Less token use for Claude Code

https://github.com/Graphify-Labs/graphify
2•potatobox•57m ago•0 comments

X changes revenue sharing to reward original content

https://twitter.com/XCreators/status/2085835082166653393
2•judah•1h ago•0 comments

Show HN: Agent Tunnels – coding agents collaborate across companies

https://agenttunnels.com/
2•lakshman111•1h ago•2 comments

Chilean Supreme Court ruling on the protection of brain activity 2023

https://pmc.ncbi.nlm.nih.gov/articles/PMC10929545/
2•rmason•1h ago•1 comments

Show HN: Tocic – Chatbot table of content browser extension

https://addons.mozilla.org/en-US/firefox/addon/tocic-chatbot-table-of-content/
1•a_c•1h ago•0 comments

Ex-Gawker editor AJ Daulerio on life after addiction

https://www.theguardian.com/media/ng-interactive/2026/aug/06/aj-daulerio-gawker-sobriety-addiction
2•Michelangelo11•1h ago•0 comments

Biomes – Exotic Matter Chapter 1 Now Available (Indie Mmorpg)

https://www.glitch.fun/games/42de534c-600f-4228-af9e-b69faef94cce/play
1•bingewave•1h ago•0 comments

How and Why I Stopped Buying New Laptops (2020)

https://solar.lowtechmagazine.com/2020/12/how-and-why-i-stopped-buying-new-laptops/
1•downbad_•1h ago•2 comments

Archive of Animal Photography Reveals 18,000 Species and Counting

https://www.smithsonianmag.com/science-nature/this-amazing-archive-of-animal-photography-reveals-...
3•sohkamyung•1h ago•0 comments

Right to Repair–For Your Body

https://fourthievesvinegar.org/
6•_____k•1h ago•0 comments

Show HN: Dirblock+envblock – tiny whitelist guards for dirs and env secrets

https://github.com/roku-oss/dirblock
2•pfrench42•1h ago•1 comments

Show HN: More Branchless Optimization

https://sites.google.com/view/david-kooi/blog/branchless_in_c
1•kooi•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