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

InferShield v1.0 – Zero-Custody OAuth Proxy for AI Workflows

https://github.com/InferShield/infershield
1•Alex-Hosein•3m ago•0 comments

Winter tire can deploy studs when it detects freezing road conditions

https://www.techradar.com/vehicle-tech/hybrid-electric-vehicles/get-a-grip-this-world-first-winte...
1•speckx•5m ago•0 comments

Show HN: Free Guides to Understand and Remove EXIF Metadata from Images

https://exif-cleaner.com/guide
1•FrankSaaSDev•5m ago•0 comments

Running a great software engineering standup

https://www.jakeworth.com/posts/how-i-run-a-software-engineering-standup/
1•jwworth•6m ago•0 comments

T3 Code – TypeScript-based web and desktop GUI for "coding agents"

https://t3.codes
1•rob•6m ago•0 comments

Einstellung Effect

https://en.wikipedia.org/wiki/Einstellung_effect
1•rzk•7m ago•0 comments

Show HN: Clausona – Manage multiple Claude Code accounts, keep all your settings

https://github.com/larcane97/clausona
1•larcane•8m ago•0 comments

Announcing DuckDB 1.5.0

https://duckdb.org/2026/03/09/announcing-duckdb-150
1•bluehat974•8m ago•0 comments

Ask HN: How are you adapting your career in this AI era?

1•sarthaksaxena•10m ago•0 comments

Add NPU support for AICore for Gemma4 model

https://github.com/google-ai-edge/LiteRT-LM/pull/1573
1•limoce•10m ago•0 comments

Darn from inkandswitch: collaborative editing to your filesystem

https://github.com/inkandswitch/darn
1•RebelPotato•11m ago•0 comments

AI and human teamed up to write a book: "The Inheritance"

https://profdrkdc.github.io/boek/?t=claude&v=en#/
1•kareldecherf•11m ago•1 comments

MCP Won't Solve Enterprise AI Integration (We're Missing a Layer)

1•duncankrebs•11m ago•0 comments

Show HN: Aurora Subtitles RealTime speech translation running locally on Windows

https://ilicilabs.com/es/products/aurora-subtitles/
1•bartuff•12m ago•0 comments

Show HN: Struggled in school, build a gamified app that improves your grades

https://schooly-waitinglist.app/
1•boriswizaard•13m ago•0 comments

So you don't want to be a manager

https://another.rodeo/straight-talk-ic-path/
1•CarterBaxter•14m ago•0 comments

Dense, dark forests in Europe are a modern phenomenon

https://phys.org/news/2026-03-dense-dark-forests-europe-modern.html
2•wjSgoWPm5bWAhXB•14m ago•0 comments

You only breathe out of one nostril at a time

https://www.cnn.com/2026/03/08/health/nostril-breathing-wellness-conversation
1•mooreds•16m ago•0 comments

Show HN: Signed receipts for agent actions

https://github.com/peacprotocol/peac
1•jithinraj•16m ago•0 comments

MapReduce Framework

https://third-bit.com/dsdx/mapreduce/
1•mooreds•17m ago•0 comments

Ask HN: What models do you use for your OpenClaw so that skills work well

1•zlatkov•17m ago•0 comments

IMG_0416

https://ben-mini.com/2024/img-0416
1•TigerUniversity•17m ago•0 comments

Child care providers fight headwinds on Colorado's rural Eastern Plains

https://coloradosun.com/2026/03/09/out-of-reach-child-care-providers-fight-headwinds-on-colorados...
1•mooreds•18m ago•0 comments

Show HN: Sinkhole – 30 free browser-based tools, no signup, MIT licensed

https://www.sinkhole.app
1•boringeurodev•18m ago•0 comments

Rust-Like Error Handling in TypeScript

https://codeinput.com/blog/typescript-result
1•todsacerdoti•18m ago•0 comments

Show HN: Pasu- Open-Source CLI AWS IAM Analyzer Tool

https://github.com/nkimcyber/pasu-IAM-Analyzer
1•nkimeducaiton•18m ago•0 comments

Show HN: Beta-Claw – I built an AI agent runtime that cuts token costs by 44%

https://github.com/Rawknee-69/Beta-Claw
1•Kyoiske•18m ago•0 comments

Show HN: ClawGuard – Detect 42 prompt injection patterns in <10ms

https://github.com/joergmichno/clawguard
1•joergmichno•18m ago•2 comments

Reimagining HTTP 402 – Simplify API and agentic payments with Stripe

https://stripe402.com
1•whatl3y•18m ago•0 comments

The Silent Filter

https://juanpabloaj.com/2026/02/27/the-silent-filter/
1•harperlee•19m ago•0 comments