frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

CIA chief compares cutting-edge AI to nuclear weapons

https://www.japantimes.co.jp/news/2026/07/01/world/cia-ai-nuclear-weapons/
3•billybuckwheat•2m ago•0 comments

0/6 major aerospace documentation portals are AI Agent-ready

1•priyanshu-j•2m ago•0 comments

Out of the Armchair

https://literaryreview.co.uk/out-of-the-armchair
1•Thevet•3m ago•0 comments

What is `std:pin:Pin` in Rust?

https://vrong.me/blog/what-is-pinning-in-rust/
1•birdculture•3m ago•0 comments

A Set Theoretic Approach to Detecting Logic Bugs in DBMS InnerJoin Optimizations

https://arxiv.org/abs/2606.23294
1•Jimmc414•4m ago•0 comments

HN: Goat 2.0 – proactive episodic memory for AI agents

https://github.com/takashikiari/GOAT2-General-Orchestrated-Agent-Topology
1•takashikiari•5m ago•0 comments

Replay – New system developed for Box2D to reproduce bugs

https://box2d.org/posts/2026/06/replay/
1•giancarlostoro•5m ago•0 comments

Clusy – Agentic Notebook Platform

https://www.clusy.io/
1•fouzilali•5m ago•0 comments

NATO Maven Smart System achieved its full technical operational capability

https://shape.nato.int/news-releases/Maven-System-achieves-full-capability
1•ThisNameIsTaken•6m ago•0 comments

ZCode: Claude Code from the Makers of GLM

https://zcode.z.ai/cn
2•handfuloflight•6m ago•0 comments

GitHub Handles Git LFS

https://www.scottberrevoets.com/2026/07/01/how-github-handles-git-lfs/
1•b00merang•6m ago•0 comments

FIFA Splits Hairs

https://marginpoints.substack.com/p/airbnb-marriott-doordash-mcdonalds
1•historian1066•8m ago•0 comments

EU countries want oil exploration to be classed as a green investment

https://www.politico.eu/article/eu-countries-oil-exploration-green-investment/
2•aleda145•9m ago•0 comments

San Marcos becomes first Texas city to ban data centers, testing local control

https://www.texastribune.org/2026/06/30/texas-san-marcos-data-center-ban-zoning-laws/
1•toomuchtodo•9m ago•0 comments

Introduction to OpenType Programming

https://simoncozens.github.io//fonts-and-layout//features.html
1•layer8•9m ago•0 comments

Show HN: I made a Space Invaders-style, guitar-driven fretboard learning game

https://www.gitori.com/play/FBG-106
1•udit99•12m ago•0 comments

Superworms could replace beetles for cleaning skeletal remains

https://arstechnica.com/science/2026/07/museums-could-use-ravenous-superworms-to-clean-skeletons/
1•pseudolus•12m ago•0 comments

Grabovoi Numbers

https://en.wikipedia.org/wiki/Grigori_Grabovoi
1•gregsadetsky•12m ago•0 comments

The First Message Transmission

https://www.icann.org/en/blogs/details/the-first-message-transmission-29-10-2019-en
1•jonbaer•13m ago•0 comments

The Fed Is Working on a CBDC

https://www.therage.co/the-fed-is-working-on-a-cbdc/
3•Cider9986•14m ago•0 comments

Spain attributes over 1k excess deaths to heat in June

https://www.reuters.com/business/environment/spain-attributes-over-1000-excess-deaths-heat-second...
2•geox•15m ago•0 comments

The Case of the Missing Tesla Fatal Crash Data

https://www.businessinsider.com/tesla-autopilot-failure-fatal-crash-missing-data-2026-7
2•01-_-•16m ago•0 comments

What MkDocs 2.0 means for your documentation projects

https://squidfunk.github.io/mkdocs-material/blog/2026/02/18/mkdocs-2.0/
1•Tomte•16m ago•0 comments

Show HN: Find contacts who align with your interests

https://reloadium.com/reloadium-contacts/
1•julienreszka•17m ago•0 comments

AI's Event Backbone

https://altertable.ai/blog/2026-03-10-ai-s-events-backbone
1•Arimbr•17m ago•0 comments

Tenzu: A project management platform built by a French workers' cooperative

https://tenzu.net/en/
1•kadrek•18m ago•0 comments

Physical pressure could make EV batteries last twice as long

https://www.cam.ac.uk/research/news/physical-pressure-could-make-ev-batteries-last-twice-as-long-...
1•gmays•18m ago•0 comments

Flavors of FDE

https://www.fdeverything.com/p/how-you-can-determine-what-the-fde
1•svsaraf•21m ago•0 comments

Transportation Secretary Announces Supersonic Flight Is Coming to the U.S.

https://www.transportation.gov/briefing-room/trumps-transportation-secretary-sean-p-duffy-announc...
3•EvgeniyZh•22m ago•0 comments

Volunteering on the Dungeness Lifeboat

https://www.lrb.co.uk/the-paper/v48/n12/susannah-clapp/at-dungeness10
1•mitchbob•23m 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