frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Listening Room Is Having a Design Moment

https://design-milk.com/design-forward-listening-rooms/
1•surprisetalk•58s ago•0 comments

Friends embark on 20-year board game battle

https://www.bbc.com/news/articles/cmvgyqyzk947o
1•noworld•1m ago•0 comments

The days of the online job application are OVER

https://recruited.org.uk/find
1•harryrussell•2m ago•0 comments

Protobuf Everywhere: How Lupyd Uses Protocol Buffers Across Web, Mobile, DB

https://blogs.lupyd.com/blog/protobuf-everywhere/
1•theanonymousone•2m ago•0 comments

Show HN: Publish a Notion database as a Next.js blog

https://github.com/loriscomba97/publish-from-notion
1•loriscomba•4m ago•1 comments

The new Firefox design is here

https://blog.mozilla.org/en/firefox/new-firefox-design-is-here/
1•timpera•4m ago•0 comments

Show HN: Gangway, self-hosted artifacts and apps from folders, PRs, and agents

https://github.com/charlesabarnes/gangway
1•charlesabarnes•6m ago•0 comments

AI is like a wall hack for real life

https://www.geekbeard.dev/p/ai-as-a-cheat
1•drunx•6m ago•0 comments

-2000 Lines of Code (2004)

https://folklore.org/Negative_2000_Lines_Of_Code.html?sort=date
1•ciconia•6m ago•0 comments

The „Nicolae Trump" Experiment: Testing the Limits of AI Information Streams

https://labnews.ai/the-nicolae-trump-experiment-how-a-publisher-is-testing-the-limits-of-ai-infor...
1•VladDanGeorgesc•7m ago•0 comments

MongoDB Launches Atlas Infinite and Atlas Agent Engine

https://www.mongodb.com/company/blog/product-release-announcements/intelligent-data-platform-for-...
1•salil999•7m ago•0 comments

Show HN: Paste – suggests which copied item you'll paste next, on your Mac

https://apps.apple.com/us/app/paste-limitless-clipboard/id967805235
1•ProtsenkoAlex•8m ago•0 comments

I built an assistant that listens instead of one that watches

https://athenaos.net/essays/why-athena-listens/
1•mirconeri•9m ago•0 comments

Strangers don't scare me. But raising kids who can't solve their problems does

https://devarajsouthworth.substack.com/p/strangers-dont-scare-me-but-raising
1•sylvainkalache•9m ago•0 comments

Nvidia Open Agent Safety Platform

https://developer.nvidia.com/blog/nvidia-open-agent-safety-platform-a-reference-for-continuous-in...
1•tosh•9m ago•0 comments

Building a Post-Quantum CA with Merkle Tree Certificates

https://blog.cloudflare.com/pq-ca-with-mtcs/
2•torutofu•9m ago•0 comments

Cities' Morphology

https://vis.csh.ac.at/cities-morphology/#/
1•user_7832•11m ago•1 comments

Show HN: NetWasm – New .NET Compiler/Runtime (82.5 KB Hello World WASM/WASI)

https://playground.netwasm.com/
2•zionsati•11m ago•1 comments

Cargo-Crap: Triaging Duplicates with TypeSafe

https://minikin.me/blog/cargo-crap-triage
1•koburan•11m ago•0 comments

US bans $1 Billion in Canadian imports, including alcohol, dairy and motorcycles

https://apnews.com/article/canada-us-trade-ban-tariffs-bdb4d9b946e98f84088c5c0f7f522588
1•ck2•11m ago•1 comments

Kling 4 prompts and video examples with original sources

https://github.com/kingvid-ai/awesome-kling-4-prompts
1•kevinhacker•14m ago•0 comments

CRDTs are not enough: From CRDTs to a local-first sync engine

https://loro.dev/blog/crdt-is-not-enough
1•czx111331•14m ago•0 comments

Jeb: Turn any OpenAI API into a decision model

https://github.com/chand1012/jeb/tree/main
1•chand1012•14m ago•0 comments

Motif Central

https://motif-central.org/
1•ibobev•16m ago•0 comments

Show HN: Pyunto – invite an AI agent and a robot into an encrypted diary

https://pyunto.com/
1•tomsonoda•16m ago•0 comments

Prototyping a Small Genetic Algorithms Library in Haskell

https://anekstein.com/posts/2019-11-15.html
1•ibobev•16m ago•0 comments

We are under attack (of a DDoS)

https://fastnetmon.com/2026/09/15/we-are-under-attack-of-a-ddos/
1•ibobev•17m ago•0 comments

Show HN: Whisker – Build native iOS, Android, web and desktop apps in Rust

https://github.com/whiskerrs/whisker
1•itometeam•17m ago•1 comments

AI Opinions: June 2026. Fable 5 Hands-On, Billing Split Countdown, OpenAI Banks

https://thoughts.jock.pl/p/ai-opinions-june-2026-fable-5-billing-split-openai-resets
1•joozio•18m ago•0 comments

Saved by the Bell star Dennis Haskins dies aged 75

https://www.rte.ie/entertainment/2026/0929/1593321-saved-by-the-bell-star-dennis-haskin-dies-aged...
2•austinallegro•18m 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