frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

A Visit to id Software ft Bobby Prince (1993) [video]

https://www.youtube.com/watch?v=HpEBUV_g9vU
1•qmr•15s ago•0 comments

The History of TypeScript

https://www.visualsource.net/repo/github.com/microsoft/typescript
1•pro_methe5•9m ago•0 comments

Show HN: Rlsgate – Block the Supabase RLS leak before you deploy (CLI)

https://github.com/GerardoRdz96/rlsgate
1•gerardordz96•10m ago•0 comments

'We had to get out of the way': The backlash over delivery robots

https://www.bbc.com/news/articles/c0rygp005wjo
1•higginsniggins•13m ago•0 comments

Project Fetch: Phase Two

https://www.anthropic.com/research/project-fetch-phase-two
6•stopachka•25m ago•0 comments

Pondering routing more of my traffic via nodes outside the UK

https://neilzone.co.uk/2026/06/pondering-routing-more-of-my-traffic-via-nodes-outside-the-uk-beca...
1•ColinWright•25m ago•0 comments

Show HN: Agentic coding workflows built on Git worktrees and task evidence

https://github.com/alex-reysa/glueRun-go
3•alexreysa•27m ago•0 comments

Show HN: Money Simulator

https://simulator.money/play
1•pattle•36m ago•0 comments

Show HN: Codeflowmap – map a codebase's read/write/auth data flows

https://github.com/man-consult/code-mapper
1•brian-m•36m ago•0 comments

Beyond the $7.4B Headline: DeepSeek's Series A signals Chinese AI alliance shift

https://asiaai.fyi/east-asias-ai-capital-surge-homegrown-models-challenge-west-amid-mineral-tensi...
1•dweisinger•38m ago•0 comments

LiveKit Solves Turn Detection

https://livekit.com/blog/solving-end-of-turn-detection
3•piyussh•38m ago•0 comments

Trump and Netanyahu Have Stepped in It Now

https://www.nytimes.com/2026/06/18/opinion/israel-america-iran-trump-vance.html
4•duxup•45m ago•2 comments

Typewriter Tinnitus/Morse Code Tinnitus

https://hearinglosshelp.com/blog/typewriter-tinnitus-morse-code-tinnitus/
2•austinallegro•51m ago•0 comments

Show HN: FERNme – agent memory that updates with ~zero LLM calls

https://github.com/mirkofr/FERNme
3•mirkofr•51m ago•0 comments

Giant Banana Pulled Over: Driver Says Cops Have Stopped Him 100s of Times

https://cowboystatedaily.com/2026/06/18/giant-banana-pulled-over-in-montana-driver-says-cops-have...
3•speckx•52m ago•1 comments

Show HN: HN Game Stories – mini-documentary of games that hit the front page

https://video.intellios.ai
2•coolwulf•54m ago•0 comments

Show HN: Submarius – Global water clarity for divers

https://submarius.com
4•celloer•56m ago•0 comments

Show HN: Starchart and Repo Header Generator

https://shieldcn.dev
4•justinlevine•56m ago•4 comments

Ask HN: What are some good benchmarks for different agent harnesses?

2•Bnjoroge•59m ago•0 comments

A Leaked GitHub Token Exposed the Exact Ozempic Formula

https://www.pentesty.co/blog/novo-nordisk-ozempic-fulcrumsec-breach-2026
5•johnzoro107•1h ago•1 comments

Ask HN: After you ship a feature, what happens to what you learned?

3•gaggle_dk•1h ago•3 comments

Show HN: Vitrus – the company brain that tells you what it doesn't know

https://github.com/ahmetvural79/Vitrus
2•ahvural•1h ago•0 comments

Hackingpal

https://github.com/hackingpal/hackingpal
2•jadamsl•1h ago•0 comments

Ask HN: What are your parameter count estimates for Opus 4.8 and GPT-5.5?

2•ahriad•1h ago•0 comments

Query with Curl

https://daniel.haxx.se/blog/2026/06/21/query-with-curl/
3•Sami_Lehtinen•1h ago•0 comments

Extracted Value

https://extractedvalue.com/
2•turtleyacht•1h ago•0 comments

Multi Pong – multiplayer pong game

https://multi-pong.projects.lasz.uk/
2•dr_kretyn•1h ago•0 comments

New V4 encryption format that supports hardware-bound encryption using Yubikeys

https://www.vaultsort.com/
4•VaultSort•1h ago•0 comments

Epoll vs. Io_uring in Linux

https://sibexi.co/posts/epoll-vs-io_uring/
26•Sibexico•1h ago•4 comments

The Tiny Sailing Game That Feels Surprisingly Real [video]

https://www.youtube.com/watch?v=30n_fdzgjJA
3•coolwulf•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