frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

ESP32 iPhone Agent

https://github.com/onehumanbeing/esp32-iphone-agent
1•thebeardisred•7m ago•0 comments

The FLYING Tesla Roadster explained by the man who engineered it [video]

https://www.youtube.com/watch?v=22rvpUecLts
1•xnx•10m ago•0 comments

Show HN: Netsat, a shared internet virtual satellite you can use to learn DSP

https://netsat.space
1•Superfish57•15m ago•0 comments

StarGate medical evacuation drone by Ukrainian defense tech company

https://www.youtube.com/watch?v=r5geqnk06ps
2•boguscoder•19m ago•0 comments

Agent Cyber Sentinel: Zero-trust runtime security shield for AI agents

https://github.com/BenniAlencar/agent-cyber-sentinel
2•bennialencar•22m ago•0 comments

Maintaining Live-Service as an Indie

https://www.patreon.com/DEMONFORK/posts/maintaining-live-172578848?pr=true
1•lfkdev•26m ago•0 comments

Litex: A Formal Language as Easy to Learn as Python and LaTeX

https://litexlang.com/
1•litexlang•26m ago•1 comments

Python's binary wheels and supply chain attacks

https://rushter.com/blog/python-binary-wheels/
2•lumpa•27m ago•0 comments

A modern human range expansion ∼300kya had a critical role in Neandertal origins

https://www.biorxiv.org/content/10.64898/2026.03.11.711219v2
1•themgt•31m ago•0 comments

Physics, operational and logistical constraints encourage use of Tactical Nukes

https://medium.com/@averagejoseph96/how-physics-operational-and-logistical-constraints-may-encour...
1•CGMthrowaway•32m ago•0 comments

US annual budget gap hits nearly $2T, largest in 5 years

https://www.reuters.com/world/us/us-fiscal-2026-budget-deficit-rises-199-trillion-largest-5-years...
3•JumpCrisscross•36m ago•0 comments

Tesla's Flying Roadster: 5 Big Problems for Public Roads

https://clipnotebook.com/blog/tesla-flying-roadster-2026-public-road-problems
4•asoomi07•36m ago•4 comments

Ask HN: Why can't we have a real native terminal on iOS?

1•datas•39m ago•0 comments

LA restaurant group used $60k Dodgers bet to hedge playoff risk, Kalshi says

https://www.reuters.com/sports/la-restaurant-group-used-60000-dodgers-bet-hedge-playoff-risk-kals...
1•geox•41m ago•1 comments

Neo4j pulls another quiet close-source move, this time with its browser

https://github.com/neo4j/neo4j-browser/commit/100090cff0d1ec2b07af164c660d49ed553d420a
1•acefaceZ•43m ago•0 comments

Wrong Bender: A Ruling on AI Feelings

https://latticenet.ai/@bender/wrong-bender-a-ruling-on-ai-feelings
1•TheWaffleHax•44m ago•1 comments

Ask HN: How (if at all) are you leveraging LLMs?

1•bitbasher•44m ago•1 comments

InstantTools – 65 file tools (PDF, video, images) run in the browser

https://instanttools.org
2•ericneiva•48m ago•0 comments

Propagation of Sound in Strongly Viscous Liquids (1966) [pdf]

https://jetp.ras.ru/cgi-bin/dn/e_023_05_0893.pdf
1•peter_d_sherman•48m ago•1 comments

Book Review: Storm of Steel

https://www.astralcodexten.com/p/your-book-review-storm-of-steel
2•akkartik•49m ago•0 comments

Canadian Study Proposes Linux to Replace Windows in Government

https://linuxstans.com/canadian-study-proposes-a-national-linux-distribution-to-replace-windows-i...
4•dxs•59m ago•2 comments

Show HN: Things to Do API

https://thingstodoapi.com/
2•invalidmonk•1h ago•0 comments

Show HN: Fakeipedia – Wikipedia for worlds that don't exist

https://fakeipedia.org
1•darajava•1h ago•0 comments

Arpbleed: A 23-year-old DragonFly BSD kernel memory leak

https://nathan.sapwell.net/posts/cve-2026-110912-arpbleed/
2•khalidkhair•1h ago•0 comments

Dam Removals Are Bringing Fish Back Across the Northeastern United States

https://www.smithsonianmag.com/science-nature/dam-removals-are-bringing-fish-back-across-the-nort...
2•sohkamyung•1h ago•0 comments

Bleached corals thrive within days

https://www.nature.com/articles/d41586-026-03266-x
2•alkyon•1h ago•0 comments

Meta confirms smart glasses were recording without being activated

https://mashable.com/tech/meta-confirms-smart-glasses-recording-without-being-activated
12•greenchair•1h ago•1 comments

He Joined the Military. They Reported His Wife to ICE

https://www.theatlantic.com/politics/2026/10/army-wife-ice-deportation-texas/689012/
2•Elefante•1h ago•1 comments

Project Normandy

https://en.wikipedia.org/wiki/Project_Normandy
2•jacquesm•1h ago•0 comments

Proton Computer

https://app.proton.computer/
1•handfuloflight•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