frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Making a Contribution: The Story of EBR-II [video]

https://www.youtube.com/watch?v=Xf7OtFIA6LY
1•mpweiher•3m ago•0 comments

HuggingNews

https://huggingnews.com/
1•ilreb•4m ago•0 comments

Decommissioning the original Model S and X assembly line in just 46 days

https://twitter.com/gigafactories/status/2075636160508866562
1•simonebrunozzi•6m ago•0 comments

What's the best way to do authentication in modern applications

https://neciudan.dev/most-secure-way-to-store-auth-token
1•freediver•7m ago•0 comments

Open source retro futuristic pi camera

https://old.reddit.com/r/raspberry_pi/comments/1urysi6/four_months_ago_i_showed_my_retrofuturisti...
1•ludkiller•15m ago•1 comments

Show HN: KRNL – a quieter browser for the essence of the web

1•keepamovin•17m ago•0 comments

Create high-converting AI UGC ads in minutes

https://aiugcads.net/
1•mrguo•19m ago•0 comments

Show HN: Krbn, a pencil-style 3D renderer with SVG output

https://github.com/vpalos/Krbn
1•vpalos•25m ago•0 comments

The Metaphysics (350 BCE)

https://classics.mit.edu/Aristotle/metaphysics.1.i.html
1•andsoitis•29m ago•0 comments

Meta Deletes Face-Recognition System from Smart Glasses App After Wired Report

https://www.wired.com/story/meta-removes-face-recognition-code-meta-ai-app-smart-glasses/
1•1vuio0pswjnm7•31m ago•0 comments

Hasharot – Control a Claude Code agent on your machine from Telegram

https://github.com/Mamasodikov/hasharot
1•mamasodikov•36m ago•0 comments

Why Rodents Can't Throw Up, in Case You Were Wondering

https://www.smithsonianmag.com/smart-news/why-rodents-cant-throw-up-in-case-you-were-wondering-25...
1•thunderbong•37m ago•0 comments

Show HN: isitsecure - 1-command SAST & DAST & LLM security scanner for web apps

https://github.com/jaurakunal/isitsecure
2•kunaljaura•37m ago•0 comments

The Conversation We're Not Having About AI in Peer Review

https://cabird.com/ide/posts/ai-in-peer-review
1•azhenley•40m ago•0 comments

Why is (the word game) Lingo 'lightning in a bottle'? (2026)

https://icely.neocities.org/articles/lingo-lightning-in-a-bottle
1•icely•42m ago•0 comments

Parents' Phone Addiction Affects Bond with Kids, New Study Finds

https://www.bloomberg.com/news/articles/2026-07-08/parents-phone-addiction-affects-bond-with-kids...
1•1vuio0pswjnm7•46m ago•0 comments

Show HN: River Rescue – Game mechanic for 3yo

https://www.pip.quest/
1•satellite2•47m ago•1 comments

Crypto Criminal Accused of Crypto Crimes Again, While in Jail

https://www.bloomberg.com/news/articles/2026-07-09/crypto-criminal-accused-of-crypto-crimes-again...
1•1vuio0pswjnm7•50m ago•0 comments

Self-replicating spacecraft, a.k.a. von Neumann probes

https://en.wikipedia.org/wiki/Self-replicating_spacecraft
1•gurjeet•51m ago•0 comments

Depone – Delete legacy require_once with proof, not guesswork

https://github.com/lll-lll-lll-lll/depone
2•www_lll•52m ago•0 comments

AI Limit, Social Divide

https://valand.dev/blog/post/ai-limit-divide
1•valand•55m ago•0 comments

Nectar: A programming language that compiles to WebAssembly

https://github.com/HibiscusConsulting/nectar-lang
2•handfuloflight•55m ago•0 comments

Vermont becomes first US state to ban paraquat herbicide over Parkinson's fears

https://www.theguardian.com/environment/2026/may/26/vermont-paraquat-weedkiller-ban
3•xoa•56m ago•0 comments

Show HN: Files402 – share or sell a folder online from $1/mo

https://files402.net/
1•mannders•57m ago•0 comments

The Vintage Beauty of Soviet Control Rooms

https://designyoutrust.com/2018/01/vintage-beauty-soviet-control-rooms/
3•mvdtnz•57m ago•0 comments

Show HN: Numbergram – Make 10 from 4 numbers

https://numbergram.app
1•zmilou•1h ago•1 comments

Show HN: Paste a URL, get an honest answer to "can I build this with a prompt?"

https://onepromptai.app
1•pro_methe5•1h ago•1 comments

Cycle Double Cover Conjecture Proof Using 5.6 Sol Ultra

https://twitter.com/__eknight__/status/2075643450196971805
1•virgildotcodes•1h ago•1 comments

EPA to open habitats of endangered species to logging and mining

https://www.theguardian.com/us-news/2026/jul/10/epa-rollback-endangered-habitats-logging-mining
2•Jimmc414•1h ago•1 comments

The Stubborn Myth of the Literary Genius (2025)

https://www.theatlantic.com/books/2025/11/shakespeare-marlowe-and-myth-literary-genius/684797/
1•bryanrasmussen•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