frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Discover curated tips, shortcuts, and resources for the Zed editor

https://zed.tips/
1•ahamez•1m ago•0 comments

Governing Well in the Algorithmic Age: The Foundations of Digital Statecraft

https://arxiv.org/abs/2607.18483
1•xtoilette•2m ago•0 comments

D2 Is Non-Profit

https://d2lang.com/blog/d2-non-profit/
1•alixanderwang•2m ago•0 comments

A directory of AI agents, MCP servers and agent skills, cross-linked

https://aiagentslisting.com
1•theorchid•3m ago•0 comments

Cory Doctorow on the Big AI Lie [video]

https://www.youtube.com/watch?v=nTqCVJFr7XM
1•andrekandre•4m ago•0 comments

Verified by Design: The Deterministic Build Protocol

https://gist.github.com/TySteele1/318a38cb5725c692b2318d7a0246c953
1•Futurestrek•5m ago•0 comments

Ask HN: UK Rescue Rocket Sheds/Houses Information

1•burnt-resistor•7m ago•0 comments

The first AI-run ransomware attack copied its Bitcoin address out of a tutorial

https://medium.com/@thenewgencoder/the-first-fully-ai-run-ransomware-attack-copied-its-bitcoin-ad...
2•syumei•7m ago•0 comments

Finder is so frustrating and has been since day one

https://kepter.app/finder
3•maltch•7m ago•0 comments

Show HN: DeviceShelf – a local-first network scanner (desktop, server, mobile)

https://deviceshelf.app/
1•itsmueller•8m ago•0 comments

Why More Hospitals and Doctors Are Asking Patients to Pay First

https://www.wsj.com/health/healthcare/why-more-hospitals-and-doctors-are-asking-patients-to-pay-f...
3•bookofjoe•9m ago•1 comments

Show HN: Quiz-UI – Shadcn-style components for building quiz funnels

https://github.com/kalpovskii/quiz-ui
1•nevedomski•10m ago•0 comments

Security vulnerabilities of AI data centers flagged at intelligence hearing

https://insidecybersecurity.com/daily-news/security-vulnerabilities-ai-data-centers-flagged-house...
4•billybuckwheat•13m ago•0 comments

In Lesotho, the Mushroom Speaks

https://unpublishablepapers.substack.com/p/in-lesotho-the-mushroom-speaks
1•paulpauper•14m ago•0 comments

Public beta: a decision-governance runtime for AI agents

https://amundsenlance.github.io/pvpp-runtime-api/
1•lca13•14m ago•0 comments

The Hero's Journey Is Holding Back GLP-1s

https://storytellingprogress.substack.com/p/the-heros-journey-is-holding-back
2•paulpauper•17m ago•0 comments

A Mike's-Eye View of ARC's Research

https://www.alignment.org/blog/a-mikes-eye-view-of-arcs-research/
1•paulpauper•17m ago•0 comments

Souping Up My Blog

https://qtea.me/posts/souping-up-my-blog/
1•birdculture•18m ago•0 comments

Why Do Video Games Associate Mice with Bombs?

https://www.thrillingtalesofoldvideogames.com/blog/mouse-bomb-connection-japan
1•Bluestein•20m ago•0 comments

Agents need capitalism, people need socialism

https://nonlineartransform.substack.com/p/agents-need-capitalism-people-need
1•program_whiz•22m ago•0 comments

Extending Var Partition on OpenBSD

https://forum.dmz.rs/t/extending-var-partition-on-openbsd/1765
1•fram3d•22m ago•0 comments

MIT Science Reporter–"Computer for Apollo" (1965) [video]

https://www.youtube.com/watch?v=ndvmFlg1WmE
1•stmw•23m ago•0 comments

I Ported a Game to Geos on the Commodore 128

https://www.amigalove.com/viewtopic.php?t=3051
1•erickhill•23m ago•0 comments

Speeding up gearhash on ARM64 (2× faster)

https://sam.dev/blog/gearhash-on-arm64
1•srijs•23m ago•0 comments

Show HN: Get hard to get backcountry permit

https://permitsnag.com
2•yy633013•25m ago•3 comments

Show HN: Local audit trail for Claude Code tool calls

https://github.com/zaghaghi/toolog
1•zaghaghi•30m ago•0 comments

Data races and the limits of ThreadSanitizer in C and Go

https://theconsensus.dev/p/2026/09/06/data-races-and-the-limits-of-threadsanitizer-in-c-and-go.html
1•ingve•32m ago•0 comments

Show HN: TikTok for TV and Twitch/Kick Simulcast

https://skriin.com
1•hashem19•33m ago•0 comments

Show HN: Jhvtm(John Henry vs the Machine) – Real Stories of Human Ingenuity

https://johnhenryvsthemachine.com/memorial
1•teedguno•34m ago•1 comments

What are you willing to spend 2 hours on?

3•psadri•36m ago•3 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