frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: I added optional chaining to CPython

https://github.com/grandimam/cpython
1•grandimam•37s ago•0 comments

Anthropic is out with new nonsense about Claude

https://dair-community.social/@emilymbender/117412868905734653
1•nobody9999•6m ago•0 comments

CalVer 26.0: 10th Anniversary Edition

https://sedimental.org/calver_26.html
2•mhashemi•9m ago•2 comments

AI-Powered Plasma Cutting

https://www.deldiosglasshouse.com/stuff-weve-made/ai-g-code
1•cjemmott•12m ago•1 comments

I built a simple app for cooking steak

https://play.google.com/store/apps/details?id=com.akshatpandey.steaktimer&hl=en_US
1•vedicashcapcut•15m ago•2 comments

Arena Allocators in C

https://eliasebner.com/blog/guides/arena-allocators-in-c/
1•dimonomid•15m ago•0 comments

Karpathy on Learning

https://twitter.com/karpathy/status/1756380066580455557
2•sonabinu•16m ago•1 comments

The Controversial Class That MIT Is Paying a Professor Not to Teach

https://www.nytimes.com/2026/10/09/us/mit-professor-michel-degraff-palestine-course.html
3•mikhael•17m ago•0 comments

Total Annihilation, rebuilt for modern computers

https://nanolathe.gg
2•jttnr•18m ago•0 comments

"Natural deploy" build your own self hosted orchestration framework

1•Akilan1999•22m ago•0 comments

NYC's "Click to Cancel" rule is now in effect

https://www.nyc.gov/main/click-to-cancel
1•gregsadetsky•22m ago•0 comments

Solar 'traffic controller' for apartments takes top Australian design award

https://www.theguardian.com/environment/2026/oct/09/amazing-piece-of-technology-solar-traffic-con...
1•DamonHD•24m ago•0 comments

We're unlocking the biggest mysteries of the clitoris

https://www.sciencefocus.com/the-human-body/were-finally-unlocking-the-biggest-mysteries-of-the-c...
11•Vaslo•27m ago•1 comments

Show HN: RugShield 402 – DEX honeypot simulator via HTTP 402 on Base

https://github.com/ak10082247-max/rugshield-402
1•kurox_real•32m ago•0 comments

57B tokens and nothin' on – a jq rewrite

https://nial.se/blog/57-billion-tokens-and-nothin-on/
3•nialse•34m ago•0 comments

Canada's employment surprisingly shrinks in September, jobless rate inches up

https://www.reuters.com/world/americas/canadas-employment-surprisingly-shrinks-september-jobless-...
1•frank_clover•34m ago•0 comments

Gossip Girl for Literature

https://gutenberg-ten.vercel.app/
1•aithena•34m ago•0 comments

A quick way to visit a random page on MDN

https://kevinkipp.com/blog/random-mdn-page/
1•Velocifyer•34m ago•0 comments

List of Top Ideas and Articles

https://manket16.github.io/idea-atlas/
1•Manket1610•37m ago•0 comments

Abandoning functionalism: Some intuition pumps (2024)

https://forum.effectivealtruism.org/posts/6cc9y3rwSBRWsquBs/abandoning-functionalism-some-intuiti...
1•eatitraw•38m ago•0 comments

Japan Turns to Ukraine's Battle-Tested Drone Killers, Signs Deal with SkyFall

https://united24media.com/war-in-ukraine/japan-turns-to-ukraines-battle-tested-drone-killers-sign...
3•Teever•39m ago•0 comments

How Diablo drew its sprite shadows

https://glebm.github.io/share-glebm-com/diablo_sprite_shadows.html
1•glebm•40m ago•0 comments

Salty.im – A decentralised, self-hosted, secure, private messaging platform

https://salty.im/
1•gurjeet•41m ago•0 comments

YouTuber builds 'Flock-like' camera to track police vehicles, gets police visit

https://www.tomshardware.com/tech-industry/cyber-security/canadian-youtuber-builds-flock-like-cam...
23•ljf•43m ago•13 comments

Thirty Years That Shaped Postgres Architecture

https://www.i-programmer.info/news/84-database/19204-thirty-years-that-shaped-postgres-architectu...
2•aquastorm•44m ago•0 comments

Show HN: Vocafy – Listen to Vocaloid songs by producer, from the original videos

https://vocafy.kkweb.io/en
1•piro0919•45m ago•0 comments

Crawlable – We audited 50 top web apps for AI crawler readability

https://usecrawlable.com/research/ai-search-readability-index
1•shahidsaleem•46m ago•1 comments

Michael I. Jordan on AI: "Superintelligence is science fiction"

https://www.di.ens.fr/~fbach/MJordan_ITW_Liberation_English.html
3•haltingproblem•47m ago•1 comments

Ario – auditing AI memory and self-claims as structure, not trust

https://zenodo.org/records/23132717
2•xx47•47m ago•1 comments

Can Wearables Track Blood Pressure Without the Cuff? I Tested Them

https://www.wsj.com/health/wellness/blood-pressure-monitoring-rings-watches-98949dde
1•brandonb•47m 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