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

Highline: A higher level command-line oriented interface

https://github.com/JEG2/highline
1•thunderbong•34s ago•0 comments

70k students, 1k schools, results in seconds: using AI for assessment

https://indianexpress.com/article/india/jodhpur-ai-pilot-transforming-assessments-schools-student...
1•rtcoms•45s ago•0 comments

Ethernet Commoditizes Everything. Except EOS

https://routerjockey.com/ethernet-commoditizes-everthing-except-eos-arista-nfd40/
1•tonhe•2m ago•0 comments

Show HN: I built a zero-tracking news hub to escape doomscrolling at (AGE 17y)

1•blazeeofsun•3m ago•1 comments

Anaconda acquires Outerbounds to rein in the buggy code AI agents keep shipping

https://thenewstack.io/anaconda-ai-outerbounds-python-metaflow/
1•Brajeshwar•4m ago•0 comments

Kubereboot/Kured: Kubernetes Reboot Daemon

https://github.com/kubereboot/kured
1•ankitg12•6m ago•0 comments

OpenAI: WebAssembly and Rust Are Reshaping Data Visualization in BI

https://blog.gopenai.com/dashboard-studio-rs-how-webassembly-and-rust-are-reshaping-data-visualiz...
1•mendyberger•6m ago•0 comments

Prism: Demystifying Retention and Interaction in Mid-Training

https://arxiv.org/abs/2603.17074
1•mdp2021•7m ago•0 comments

You probably dont want RLS

https://planetscale.com/blog/rls-sounds-great-until-it-isnt
1•imjosh-dev•8m ago•0 comments

Building a CDC Pipeline, Part 1: PostgreSQL WAL Internals

https://georgioszefkilis.substack.com/p/building-a-cdc-pipeline-part-1-postgresql
1•speckx•8m ago•0 comments

AI could help human scientists pick promising research topics

https://physicsworld.com/a/ai-could-help-human-scientists-pick-promising-research-topics/
1•zeristor•9m ago•0 comments

How A.I. Killed Student Writing (and Revived It)

https://www.nytimes.com/2026/04/30/us/ai-students-cheating-homework-classrooms.html
2•apparent•11m ago•0 comments

Show HN: TRiP – a complete transformer engine in C built from scratch just by me

https://github.com/carlovalenti/TRiP
1•carlovalenti•11m ago•0 comments

Judge Orders Matt Mullenweg to Explain Missing Messages in WP Engine Dispute

https://www.therepository.email/federal-judge-orders-matt-mullenweg-to-explain-missing-messages-i...
2•docdeek•12m ago•0 comments

The Bloomberg Terminal Is Getting an AI Makeover, Like It or Not

https://www.wired.com/story/the-bloomberg-terminal-is-getting-an-ai-makeover-like-it-or-not/
1•01-_-•12m ago•0 comments

Non-Programmer Code Sharing

1•CombatHacker•13m ago•0 comments

Revealing NVIDIA Driver Command Streams for CPU-GPU Runtime Behavior Insight

https://arxiv.org/abs/2604.26889
1•matt_d•13m ago•0 comments

AI optimism is waning

https://bayeslord.substack.com/p/ai-optimism-is-waning
3•swah•14m ago•0 comments

Guardians: Static verification for AI agent workflows

https://github.com/metareflection/guardians
1•matt_d•14m ago•0 comments

CopyFail Was Not Disclosed to Distros

https://www.openwall.com/lists/oss-security/2026/04/30/10
5•ori_b•15m ago•0 comments

Show HN: I built a private GitHub in 650 lines of PostgreSQL

https://github.com/calebwin/gitgres
2•calebhwin•17m ago•0 comments

AI Investment Boosted Economic Growth, While Consumers Tapped the Brakes

https://www.wsj.com/economy/central-banking/u-s-economy-grew-at-2-rate-in-first-quarter-6e0c18cc
1•JumpCrisscross•18m ago•0 comments

Show HN: Larkin – Authorization middleware for x402 agent payments

https://larkin.sh
1•mikebom•18m ago•0 comments

Vision agents vs. structured APIs on the same internal tool task

4•FirestarAlpha•18m ago•0 comments

The Whistleblower Who Uncovered the NSA's 'Big Brother Machine'

https://thereader.mitpress.mit.edu/the-whistleblower-who-uncovered-the-nsas-big-brother-machine/
16•the-mitr•18m ago•0 comments

Xatastor: ZFS and NVMe-Of for Postgres Databases

https://xata.io/blog/xatastor-zfs-nvme-of-for-millions-of-postgres-databases
3•tee-es-gee•19m ago•0 comments

Fast GPU Linear Algebra via Compile Time Expression Fusion

https://arxiv.org/abs/2604.22242
1•matt_d•21m ago•0 comments

American Dads Became the Parents Their Fathers Never Were

https://www.derekthompson.org/p/why-do-richer-dads-spend-more-time
1•ozozozd•21m ago•0 comments

Command Decision System for organizational risk (not average-based)

https://github.com/knuppjason-source/Human-Factors-App
1•Knuppjason•22m ago•0 comments

Show HN: Phase Router – capacity-aware routing for MoE

https://github.com/TSltd/phase_router_rs
1•TSltd•22m ago•0 comments