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

Why Is It So Hard to Be Ordinary?

https://www.newyorker.com/culture/open-questions/why-is-it-so-hard-to-be-ordinary
2•littlexsparkee•6m ago•1 comments

One of my reliable signs that an early-stage company is in trouble

https://xcancel.com/marcrandolph/status/2057995577133351413?s=20
1•wapasta•8m ago•0 comments

Ask HN: Best Free Local STT?

2•thillel•8m ago•1 comments

John Cleese on Creativity in Management [video]

https://www.youtube.com/watch?v=Pb5oIIPO62g
1•kristiandupont•13m ago•0 comments

Why and How to Run Local Models in Zed

https://zed.dev/blog/local-ai-in-zed
2•ciconia•16m ago•0 comments

Ask HN: Is Codex serving worse models or is it just the harness getting worse?

2•thillel•16m ago•1 comments

If you don't know you must know it

https://pdfearn.blogspot.com/2026/05/free-pdf-earn-3-per-day-by.html
1•iLzKii•17m ago•0 comments

Gelatine Sculpt Benefits for Weight Loss – Expert Guide 2026

https://finance.yahoo.com/sectors/healthcare/articles/gelatine-sculpt-exploding-2026-viral-142500...
1•rafyzaro•18m ago•0 comments

The CRPG Renaissance, Part 1: Fallout

https://www.filfre.net/2025/01/the-crpg-renaissance-part-1-fallout/
1•frogulis•22m ago•0 comments

Will MySpace ever lose its monopoly? (2007)

https://www.theguardian.com/technology/2007/feb/08/business.comment
5•downbad_•23m ago•1 comments

America's schools face backlash on digital devices as screens saturate classroom

https://www.boston25news.com/news/technology/americas-schools/XFNZQ73AT4Y3RCPO5A4AV3A6SU/
2•1vuio0pswjnm7•31m ago•0 comments

A New Typst Template for Pandoc

https://imaginarytext.ca/posts/2025/typst-templates-for-pandoc/
1•ankitg12•31m ago•0 comments

Show HN: Desktop GUI sandbox for AI agents and MCP servers

https://github.com/rednakta/nilbox
1•rednakta•32m ago•0 comments

Show HN: Versionparser – Java library for working with versioning schemes

https://github.com/cthing/versionparser
1•baron1405•34m ago•0 comments

You don't need all the LLM benchmarks

https://alex.smola.org/posts/34-benchmark-selection/
1•matt_d•40m ago•0 comments

How to Make xt850 Match xt 850

https://manticoresearch.com/blog/how-to-make-searches-like-xt850-match-xt-850/
1•snikolaev•40m ago•0 comments

Tech CEOs summoned to Congress for another hearing on social media's risks

https://apnews.com/article/tech-ceos-senate-hearing-zuckerberg-8c2c46758fd669e688170f96fa12a882
2•1vuio0pswjnm7•42m ago•0 comments

Noioaapps – our tools keep you informed (a dream)

https://medium.com/luminasticity/noioaapps-our-tools-keep-you-informed-43db36175f5d
1•bryanrasmussen•47m ago•0 comments

GPT Image 2 left me amazed but exhausted – so I built a little tool

https://imagesv2.ai
2•taoji•51m ago•0 comments

The terrifying rise of schoolboys making AI girlfriends

https://www.telegraph.co.uk/news/2026/05/25/schoolboys-ai-girlfriends/
2•Markoff•53m ago•1 comments

Self-Driving bus in Sweden crashes with tram on first day of passenger service

https://www.firstpost.com/auto/self-driving-bus-in-sweden-crashes-with-tram-on-first-day-of-passe...
3•Markoff•54m ago•0 comments

Notes on Pope Leo XIV's Encyclical on AI

https://simonwillison.net/2026/May/25/encyclical-on-ai/
17•pretext•55m ago•0 comments

The Little Go Book

https://github.com/karlseguin/the-little-go-book
2•saikatsg•55m ago•0 comments

Enhance or Eliminate? How AI Will Likely Change These Jobs

https://www.library.hbs.edu/working-knowledge/enhance-or-eliminate-how-ai-will-likely-change-thes...
1•_____k•59m ago•0 comments

NanoClaw creator turns down $20M buyout offer, raises $12M seed instead

https://techcrunch.com/2026/05/20/nanoclaw-creator-turns-down-20m-buyout-offer-raises-12m-seed-in...
4•doppp•59m ago•0 comments

The User Is Visibly Frustrated

https://pscanf.com/s/354/
13•croes•1h ago•0 comments

Real wages start to shrink in developed countries

https://www.ft.com/content/e126f744-3db9-4305-8871-31f83ebc4ed7
3•mikhael•1h ago•0 comments

The working definition of an Agent Endpoint

https://ianpilon.github.io/agent-endpoint/
1•ianpilon•1h ago•0 comments

New Google sheet favicon – but why?

2•jinen83•1h ago•2 comments

Ask HN: When and why did you start believing in God?

5•dvrp•1h ago•18 comments