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

RuView – WiFi DensePose: See Through Walls with WiFi

https://github.com/ruvnet/RuView
1•_____k•47s ago•0 comments

Smog and Co – a full offline-first Belgian Sign Language platform

https://zias.be/work/smog
1•ziasvannes•58s ago•1 comments

Claude's Cycles: Claude Opus 4.6 solves a problem posed by Don Knuth [pdf]

https://www-cs-faculty.stanford.edu/~knuth/papers/claude-cycles.pdf
1•fs123•1m ago•0 comments

The Xkcd thing, now interactive

https://editor.p5js.org/isohedral/full/vJa5RiZWs
2•memalign•2m ago•0 comments

Logic gates as persistent stateful tasks – a BCD decoder built on a VM

1•tracyspacy•2m ago•0 comments

Building a Dependency-Free GPT on a Custom OS

https://hackaday.com/2026/03/03/building-a-dependency-free-gpt-on-a-custom-os/
1•appleroll•2m ago•0 comments

How AGI-is-nigh doomers own-goaled humanity

https://garymarcus.substack.com/p/how-agi-is-nigh-doomers-own-goaled
1•only_in_america•3m ago•0 comments

The beauty and terror of modding Windows

https://windowsread.me/p/windhawk-explained
2•wild_pointer•9m ago•1 comments

Show HN: Oxmgr – a lightweight PM2 alternative written in Rust

1•vladimir-urik•10m ago•0 comments

Anti-Corporatization of Schools

https://nancyebailey.com/corporatization/
1•robtherobber•13m ago•0 comments

Fast-Servers: An Interesting Pattern

https://geocar.sdf1.org/fast-servers.html
1•birdculture•14m ago•0 comments

Ask HN: Who still works async and has a 'no meetings' work policy in 2026?

3•RaulOnRails•17m ago•0 comments

Can You Train a Computer?

https://twitter.com/DimitrisPapail/status/2028669695344148946
1•vismit2000•18m ago•0 comments

Gemini CLI Explained: Everything You Need to Know About Google's AI Coding Agent

https://www.theneuron.ai/explainer-articles/gemini-cli-explained-everything-you-need-to-know-abou...
1•mariuz•18m ago•0 comments

Show HN: Gnosis – Turns pull requests into guided walkthroughs

https://github.com/oddur/gnosis
2•oddurmagnusson•20m ago•1 comments

Lunar Eclipse 2026: How to take the best blood moon photos with your phone

https://mashable.com/article/blood-moon-total-lunar-eclipse-2026-phone-photos
1•smurda•20m ago•0 comments

It's never just that simple

https://www.neverjust.net/
1•itzlambda•20m ago•0 comments

Agent Policies; codify rules and automate agent guidance

https://blog.devleaps.nl/agent-policies-guidance-for-ai-8a03ea20bbca
1•philipp-gayret•22m ago•0 comments

Show HN: WhisprMe – Anonymous messaging inside Telegram with Stars micropayments

https://whisprme.app
1•paulbrickman•24m ago•0 comments

Show HN: Logos – a scripting language for when Bash gets unreadable after line 3

https://github.com/codetesla51/logos
1•uthmandev•28m ago•0 comments

Spec and Data

1•alfarez•28m ago•0 comments

China's 450kmph bullet train is the fastest ever built

https://www.executivetraveller.com/news/china-cr450-world-s-fastest-bullet-train
2•teleforce•30m ago•0 comments

Become a Coder DJ

https://loopmaster.xyz/dj?hn
1•stagas•31m ago•0 comments

Show HN: TrustStack – Vendor Review with Evidence Pack, Diff and Approval Log

https://b2apps-hwbghfetgtamcmfb.japanwest-01.azurewebsites.net/demo
1•hodachi•31m ago•0 comments

I Always Wanted to Know My True Age – So I Built a Tool to Find Out

https://medium.com/@filipacsr/i-always-wanted-to-know-my-true-age-so-i-built-a-tool-to-find-out-c...
1•filipacsr•36m ago•1 comments

Fixpoints to think clearly

https://blog.yellowflash.in/posts/2026-03-03-fixpoints-for-clarity.html
1•yellowflash•39m ago•0 comments

Dec PDP-8 emulator running FOCAL 69 in 4K for Arduino DUE and Arduino MEGA 2560

https://www.hackster.io/news/nino-ivanov-brings-dec-s-pdp-8-minicomputer-out-of-the-60s-and-onto-...
1•JPLeRouzic•45m ago•0 comments

Show HN: Open-Source Article 12 Logging Infrastructure for the EU AI Act

1•systima•47m ago•0 comments

Show HN: OpenClaw agents that read the same task board and mention each other

https://squadofagents.com/
1•jacobsyc•52m ago•0 comments

SOEL – A programming language that's a language

https://github.com/BankStrategy/SOEL
1•liszper•53m ago•1 comments