frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Every single possible data center ban passed

https://twitter.com/jdcapelouto/status/2117786709173645427
1•draxen•1m ago•0 comments

Ask HN: Advice on local efficient analogical retrieval?

1•wonseonyu•1m ago•0 comments

Motion Blur for Half-Life Video Recording with Vulkan

https://bxt.rs/blog/motion-blur-for-half-life-video-recording-with-vulkan/
1•ankitg12•8m ago•0 comments

US midterm elections 2026 live updates: Democrats win Senate control and edge

https://www.theguardian.com/us-news/live/2026/nov/03/midterm-election-results-live-updates
6•hkhn•11m ago•0 comments

Show HN: AgentFirstStack – analytics, tags, email and replay your agent sets up

https://agentfirststack.com/
1•cod3boy•14m ago•0 comments

Nvidia Auto Ontology, but a Graph

https://nidra.computer/
1•trustbutverafy•15m ago•1 comments

Show HN: Open-source proxy for per-tenant Postgres, no app changes

https://play.lokadb.com
1•kagen•16m ago•1 comments

Show HN: What games does HN talk about? (Project 24)

https://nicobrenner.github.io/project24/
1•nico•16m ago•1 comments

Domicile Desktop Brings Web Technologies to Building Wayland Desktops

https://www.phoronix.com/news/Domicile-Desktop-Wayland
1•xiaoyu2006•20m ago•0 comments

Peptides and Silicon Valley's Use of Them – Good Work [video]

https://www.youtube.com/watch?v=W0ltbBby9FU
1•heavensteeth•20m ago•0 comments

Democrats take control of US Congress as voters reject Trump's Republicans

https://www.bbc.com/news/live/cj1dw0ydn595t
11•hkhn•20m ago•1 comments

Japanese bank to stop allowing ATM cards, personal computers for account access

https://asia.nikkei.com/business/finance/new-mufg-digital-bank-to-forgo-atm-cards-in-cybercrime-s...
1•negura•22m ago•1 comments

The Death of the Angel Investor

https://zachholman.com/posts/angel-investor-death
1•doppp•26m ago•0 comments

Show HN: Dryplate – Image tools that run in the browser, no upload

https://dryplate.dev/
3•tsvillain•31m ago•0 comments

crates.io is down

https://crates.io/
1•boguscoder•31m ago•0 comments

Play CS 1.6 in the browser in under 10 seconds

https://playcsbrowser.com/
1•oldcai•32m ago•0 comments

Show HN: A space for folks with ADHD and Anxiety (invite code in dscrptn)

https://asyde.space
2•udit_50•33m ago•0 comments

How should coding agents handle noisy repository history?

https://twitter.com/AgentMemoryL/status/2117617801296802085
1•SndOfViento•39m ago•0 comments

YC's Workatastartup – New UI

1•kank0de•44m ago•0 comments

PostgreSQL Internals [pdf]

https://edu.postgrespro.com/postgresql_internals-14_en.pdf
2•Foe•49m ago•0 comments

A boilerplate for Node.js apps / TypeScript

https://github.com/watscho/express-mongodb-rest-api-boilerplate
1•watscho•49m ago•0 comments

Wild Ventures

https://game.weibelventures.com/
1•lokimedes•49m ago•0 comments

Nikke PC Launcher Compromise

https://gist.github.com/MotherSphere/d6c049a09ba8ac3085c51ee9df24a4e5
1•keithoffer•53m ago•1 comments

An 80-Cent Plastic Pouch Is Saving Women from Dying in Childbirth

https://www.nytimes.com/2026/11/03/health/maternal-drapes-nigeria-childbirth.html
6•riffraff•53m ago•1 comments

Synthetic Deep Web: On Algorithmic Invisibility in the Age of Generative Models

https://medium.com/@smoking2man/synthetic-deep-web-on-algorithmic-invisibility-in-the-age-of-gene...
2•Aldus551•55m ago•0 comments

Extreme Environments Push Chips to Their Breaking Point

https://semiengineering.com/extreme-environments-push-chips-to-their-breaking-point/
1•gmays•1h ago•0 comments

Text.js: Build full-stack React apps that render inside console.log

https://textjs.org/
2•nateb2022•1h ago•0 comments

GPT-Synopsys Combines IC Design EDA with Agentic AI

https://www.eetimes.com/gpt-synopsys-combines-ic-design-eda-with-agentic-ai/
1•gmays•1h ago•0 comments

Engraphis – Local-first, bi-temporal memory for AI coding agents

https://github.com/Coding-Dev-Tools/engraphis
2•Jaixii•1h ago•0 comments

Data Centers on the Ballot

https://datacentersontheballot.com/
4•at1as•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