frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

GitHub Outage

https://www.githubstatus.com/incidents/8vfyvq16hzh9
1•rumblefrog•1m ago•0 comments

Ask HN: Where Is Karma Used?

1•haebom•4m ago•0 comments

Average Prototypes

https://goodnameforablog.com/posts/very-average-prototypes/
1•phyzix5761•6m ago•0 comments

6.4x faster than llama.cpp, 3.9x faster than MLX

https://www.basecompute.co/getbasert
2•lukasonedge•10m ago•0 comments

The Anti-Palantir Manifesto

https://nonogra.ph/the-anti-palantir-manifesto-07-20-2026
4•arkhiver•20m ago•0 comments

Website Screen Capture: Recordings Your AI Can Read

https://cbrowser.ai/blog/screen-capture-recordings-your-ai-can-read/
1•alexandriaeden•21m ago•0 comments

History and Scale of the H1B Visa

https://numberstation.fm/the-body-shop/
2•StrageMusik•21m ago•0 comments

The crash that wasn't: debugging CI with AI

https://abbyssoul.github.io/engineering/2026/07/19/the-crash-that-wasnt-debugging-kinjo-ci-with-a...
1•sagevoid•23m ago•0 comments

Open BFME 1

https://github.com/Open-BFME/Open-BFME-1
1•OsrsNeedsf2P•24m ago•0 comments

Why some DVLA digital services don't work at night

https://dafyddvaughan.uk/blog/2025/why-some-dvla-digital-services-dont-work-at-night/
1•herbertl•25m ago•0 comments

A Painter's New York Loft that he Moved into in 1967 [video]

https://www.youtube.com/watch?v=_A_u4N08B9U
1•toomuchtodo•28m ago•0 comments

'Live' World Cup Broadcast Is Not Live

https://www.nytimes.com/2026/07/18/sports/soccer/world-cup-live-tv-delay.html
1•lxm•31m ago•1 comments

Show HN: Quartermaster – self-hosted license server with offline signing key

https://github.com/laudendev/quartermaster
1•laudendev•31m ago•0 comments

Epub.js: Enhanced EBooks in the Browser

https://github.com/futurepress/epub.js/
2•gurjeet•35m ago•0 comments

Unvibe Is Here

https://unvibe.live
1•PrestonSusanto•40m ago•0 comments

Show HN: Headroom – measure your GPU's true bandwidth ceiling for local AI

https://ar5en1c.github.io/headroom/
2•Ar5en1c•40m ago•0 comments

DeKalb deputy charged with Flock camera misuse; more Georgia officers fired

https://www.ajc.com/news/2026/07/3-more-georgia-police-officers-fired-over-alleged-flock-camera-m...
35•pir8life4me•43m ago•16 comments

I've Struggled with Addiction. I'm Staying Away from A.I. Chatbots

https://www.nytimes.com/2026/07/19/opinion/ai-attention-social-media-attachment.html
1•geox•45m ago•0 comments

The SLAP stack is the last server stack you'll ever need

https://blakewatson.com/journal/the-slap-stack-is-the-last-server-stack-youll-ever-need/
1•blakewatson•46m ago•0 comments

Production Deployments to Exe.dev

https://asadjb.com/blog/2026-07-19-production-deployments-to-exe-dev
1•asadjb•50m ago•0 comments

Flock cameras collecting face, clothing,tattoo identifiers

https://www.jalopnik.com/2217154/flock-cameras-collecting-more-than-plate-car-information/
2•pir8life4me•51m ago•3 comments

Freeze-Casting

https://en.wikipedia.org/wiki/Freeze-casting
1•soupspaces•52m ago•0 comments

PEP 829 – Package Startup Configuration Files

https://peps.python.org/pep-0829/
1•zahlman•53m ago•1 comments

Connection Machine Joins All to All to Optimize Better

https://spectrum.ieee.org/ising-machine
1•andsoitis•54m ago•0 comments

Reviving a 1996 IRC network from its own original, recovered source code

https://chatnet.gg/
3•casoalb•56m ago•0 comments

We Can't Harden Node.js Against Prototype Pollution

https://adventures.nodeland.dev/archive/no-we-cant-harden-nodejs-against-prototype/
1•Fudgel•1h ago•0 comments

Why Your Dashboard Is Lying to You (and What Works)

https://medium.com/@alanscottencinas/why-your-dashboard-is-lying-to-you-and-what-actually-works-d...
1•encinas88•1h ago•0 comments

Email Encryption

https://computer.rip/2026-07-19-email-encryption.html
2•zdw•1h ago•0 comments

Prompt Bill of Materials (PBOM) – an open standard for agentic workflows

https://github.com/EqoAI/pbom-spec
2•kavia•1h ago•0 comments

Ecological patterns in Pokémon games reflect those observed in the natural world

https://jgeekstudies.org/2026/07/19/ecological-patterns-in-pokemon/
1•zdw•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