frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Any good tools to pgdump multi tenant database?

3•polishdude20•10mo 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•10mo 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•10mo 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•10mo 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•10mo 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•10mo ago
Oh yes I agree with you. It may become a big push to convince my org to do that

Boris Cherny's favorite hidden and under-utilized features in Claude Code

https://xcancel.com/bcherny/status/2038454336355999749
1•vinhnx•2m ago•0 comments

Show HN: Tidbits – Quick save any text without switching windows

https://www.tidbits.tools
1•uglyburger•5m ago•0 comments

Gravity Well Arena: space combat built on real time dilation

https://sean-reid.github.io/gravity/
1•s_e__a___n•7m ago•1 comments

The Last Generation

https://www.newyorker.com/magazine/2026/03/30/the-last-generation
2•petethomas•7m ago•0 comments

Open Source Silicon: wafer.space and the business of open silicon projects

https://www.siliconimist.com/p/waferspace-tim-mithro-ansell
2•johncole•8m ago•0 comments

Google employees new AI tool Agent Smith got so popular that it was restricted

https://www.businessinsider.com/google-agent-smith-employees-ai-driven-coding-2026-3
2•seer•8m ago•0 comments

Skilled AI agents for embedded and IoT systems development

https://github.com/iot-agent/iot-skillsbench
1•tingjunchen•9m ago•1 comments

New App Tells You What Hardware You Need to Run Any AI Model Locally

https://runthisllm.com/
1•eeko_systems•10m ago•0 comments

JSSE: A JavaScript Engine Built by an Agent

https://p.ocmatos.com/blog/jsse-a-javascript-engine-built-by-an-agent.html
1•ivankra•11m ago•0 comments

6o6 v1.1: Faster 6502-on-6502 virtualization for a C64/Apple II Apple-1 emulator

http://oldvcr.blogspot.com/2026/03/6o6-v11-faster-6502-on-6502.html
1•matt_d•12m ago•0 comments

I scanned 8,392 Claude Code sessions – here's where the tokens go

https://github.com/li195111/claude-token-analyzer
1•li195111•14m ago•0 comments

Janet for Mortals

https://janet.guide/
2•h4ch1•15m ago•1 comments

Copilot Edited an Ad into My PR

https://notes.zachmanson.com/copilot-edited-an-ad-into-my-pr/
1•pavo-etc•16m ago•0 comments

The AI Doc: OR How I Became an Apocaloptimist [video]

https://www.youtube.com/watch?v=xkPbV3IRe4Y
1•bonefishgrill•16m ago•0 comments

'WM Bench' is the first benchmark for World Model intelligence

https://huggingface.co/datasets/FINAL-Bench/World-Model
1•seawolf2357•18m ago•0 comments

Hawkeye – a flight recorder for AI agents

https://www.npmjs.com/package/hawkeye-ai
1•mklamine•25m ago•0 comments

An open-source workflow for producing a personalized mRNA cancer vaccine

https://philfung.github.io/openvaxx/
1•dsr12•27m ago•0 comments

Show HN: ChameleonDB – A database toolkit with auditable schema versioning

https://www.chameleondb.dev/
1•ChameleonDB•29m ago•0 comments

Typed-fetch – Go-style error handling for fetch in TypeScript

https://github.com/pbpeterson/typed-fetch
1•pbpeterson•33m ago•1 comments

Daily coding model rankings by use case

https://howsthemodel.com/
1•keyserrr•37m ago•0 comments

Putting the 'lord' in 'landlord': US churches step up to build housing

https://www.theguardian.com/society/2026/mar/29/yigby-churches-build-housing-amid-shortage
1•rawgabbit•38m ago•0 comments

I built IDE-layer policy enforcement for Claude Code/Cursor agents

https://www.oculisecurity.com/
2•rellaElla•40m ago•0 comments

Ask HN: Why Isn't Everything Public?

5•silexia•42m ago•3 comments

Under-utilized features in Claude Code

https://twitter.com/bcherny/status/2038454336355999749
1•tzury•43m ago•0 comments

uops.info Update: Emerald Rapids, Meteor Lake, Arrow Lake, and Zen 5

https://uops.info/table.html
2•matt_d•45m ago•0 comments

SpaceX: For Mars or Wars?

https://i.postimg.cc/mR4RyVdx/UXTx-D2t.jpg
4•transmartian•45m ago•2 comments

Who's Gonna Carry the Boats?

https://apps.apple.com/us/app/quit-all-break-every-habit/id6760978934
1•apoorvdarshan•54m ago•1 comments

App Defaults in March 2026

https://brainbaking.com/post/2026/03/app-defaults-march-2026/
1•Brajeshwar•59m ago•0 comments

Gorgeous DIY camera looks straight out of Severance

https://www.dpreview.com/articles/9055612016/saturnix-diy-camera-alien-sci-fi-raspberry-pi
1•swq115•1h ago•0 comments

MXFP8 GEMM: Up to 99% of cuBLAS Performance Using CUDA and PTX

https://danielvegamyhre.github.io/2026/03/29/mxfp8-gemm.html
1•matt_d•1h ago•0 comments