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

Code review advice for vibe coders

https://xata.io/blog/code-review-for-vibe-coders
1•tee-es-gee•2m ago•0 comments

Show HN: A CLI to use any model in your coding agent

https://getaivo.dev/
1•spirit23•7m ago•0 comments

What is Nostr? A simple guide to the protocol

https://usenostr.org/
1•vlugorilla•9m ago•0 comments

The Tiny Donut That Proved We Still Don't Understand Magnetism [video]

https://www.youtube.com/watch?v=XKSjCOKDtpk
1•mpweiher•11m ago•0 comments

List of personal sites that host Wander console, a tool to explore the small web

https://susam.codeberg.page/wander/wcn.html
1•susam•12m ago•0 comments

Naming Things Is Easy Now

https://notesbylex.com/naming-things-is-easy-now
2•lexandstuff•15m ago•0 comments

I left Vercel Pro ($20/mo) for a $10/mo VPS. 7-day Next.js migration report

https://gist.github.com/Samarth0211/b728534af45242b61b45a87a4ecdf155
1•samarth0211•21m ago•1 comments

Global Energy Flows

https://ig.ft.com/global-energy-flows/
1•saswatms•21m ago•0 comments

Mystery Cpuid Bit

http://www.os2museum.com/wp/mystery-cpuid-bit/
1•userbinator•24m ago•0 comments

Do you ever ask "Please Claude I need this my account is kinda tokenless "

https://engram-three.vercel.app/
1•-Refraction-•27m ago•1 comments

Ask HN: What should a Microblogging Site look like?

1•PiSquareS•35m ago•1 comments

ChatGPT Recommends the Same 3 Companies to Every B2B Buyer. Until They Specify

https://growtika.com/blog/chatgpt-b2b-persona-recommendations
1•Growtika•36m ago•1 comments

Ubuntu 26.04 LTS (Resolute Raccoon)

https://releases.ubuntu.com/resolute/
1•kwar13•37m ago•1 comments

Show HN: Aliasme – A shell script to memorize your commands

https://github.com/Jintin/aliasme
1•Jintin•41m ago•1 comments

PasswordStore + GnuPG + TouchID

https://gurjeet.singh.im/blog/passwordstore+gnupg+touchid
2•gurjeet•42m ago•0 comments

SoftHSM

https://github.com/softhsm
1•gurjeet•46m ago•0 comments

Show HN: Aromatic – store-and-forward telemetry for unattended devices over Tor

https://github.com/DO-SAY-GO/aromatic
1•keepamovin•53m ago•0 comments

New 10 GbE USB adapters are cooler, smaller, cheaper

https://www.jeffgeerling.com/blog/2026/new-10-gbe-usb-adapters-cooler-smaller-cheaper/
5•calcifer•55m ago•1 comments

Google Patches WithPersona PII Leak, Then Claims It Was 'Not Reproducible'

1•bbounty_robbed•59m ago•0 comments

An Update on Rust-Coreutils

https://discourse.ubuntu.com/t/an-update-on-rust-coreutils/80773
1•rixed•1h ago•1 comments

UWaterloo CS Webring

https://cs.uwatering.com/
1•jusgu•1h ago•0 comments

Sensor tampering to win weather bets

https://www.theguardian.com/world/2026/apr/23/hairdryer-or-lighter-french-police-look-at-claim-of...
1•atmosx•1h ago•0 comments

Annotated source code for the Elite Demonstration Disc

https://elite.bbcelite.com/demo/
2•y1n0•1h ago•0 comments

AMD Ryzen AI Max+ AI PCs Deliver Exceptional Intelligence Right on Your Desk

https://www.amd.com/en/blogs/2026/amd-ryzen-ai-max-ai-pcs-deliver-exceptional-intelligence.html
1•teleforce•1h ago•0 comments

GPT-5.5 Prompting Guide

https://simonwillison.net/2026/Apr/25/gpt-5-5-prompting-guide/
2•y1n0•1h ago•1 comments

Rcarmo/gte-go: Golang inference for the GTE Small embedding model

https://github.com/rcarmo/gte-go
1•rcarmo•1h ago•0 comments

How to Install Haiku on a UEFI-Only Modern System

https://hackaday.com/2026/04/24/how-to-install-haiku-on-a-uefi-only-modern-system/
2•y1n0•1h ago•0 comments

Make-Interfaces-Feel-Better

https://twitter.com/jakubkrehel/status/2045895877588361723
1•hnhsh•1h ago•0 comments

In visit to Brown, Jaron Lanier says people are thinking about AI all wrong

https://www.brown.edu/news/2026-04-24/jaron-lanier-cooper-lecture
2•pigeons•1h ago•1 comments

Datatype – variable font that turns text into charts

https://franktisellano.github.io/datatype/
2•microflash•1h ago•0 comments