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

Democrats Say They Want to Win Rural America. Here's Why They Don't

https://www.americanmuckrakers.com/p/democrats-say-they-want-to-win-rural
1•davidbwheeler•28s ago•0 comments

Read the Texts Between Trump and Norway's Prime Minister About Greenland

https://www.nytimes.com/2026/01/19/us/politics/trump-norway-prime-minister-texts-greenland.html
1•duxup•29s ago•0 comments

Cybersecurity thriller: whistleblowing SE uses a Jira ticket to torpedo his boss

https://www.amazon.com/dp/B0GC94SZXK
1•smafarin•50s ago•0 comments

The Assistant Axis: Situating/Stabilizing the Default Persona of Language Models

https://arxiv.org/abs/2601.10387
1•lawrenceyan•1m ago•0 comments

Self-Serve account takeover protection with FusionAuth [video]

https://www.youtube.com/watch?v=wAkZEjOMsrQ
1•mooreds•1m ago•0 comments

Why the Tech World Is Going Crazy for Claude Code [video]

https://www.youtube.com/watch?v=DcZWMQ_UL2o
1•mooreds•2m ago•0 comments

OAuth 2.0 Rich Authorization Requests (2023)

https://datatracker.ietf.org/doc/html/rfc9396
1•mooreds•2m ago•0 comments

The Unexpected Logic of Art Economics: Arts and Inequality in 80s NY (2020)

https://www.gothamcenter.org/blog/unexpected-logic-art-economics
1•hyperific•5m ago•0 comments

I found a secret protocol in Predator Spyware – iOS

https://www.youtube.com/watch?v=Q5A2Ydd1L9A
1•tonygo•7m ago•1 comments

Her 10 Years Instagram Handle Was 'Metaverse.' Last Month, It Vanished. (2021)

https://www.nytimes.com/2021/12/13/technology/instagram-handle-metaverse.html
1•airhangerf15•9m ago•0 comments

Global Renewables Watch

https://github.com/microsoft/global-renewables-watch
1•toomuchtodo•12m ago•1 comments

Italian fashion designer Valentino dies at 93

https://www.npr.org/2026/01/19/1114518694/valentino-garavani-dead
4•andsoitis•15m ago•0 comments

Show HN: Lite Bible – A fast, minimalist Bible reader

https://litebible.org/
2•foxinthebox•16m ago•1 comments

Show HN: Sign and initial PDFs in the browser (no uploads)

https://instantpdfsign.com
1•assetofbaskets•16m ago•0 comments

Simple Sabotage Field Manual [pdf]

https://www.cia.gov/static/5c875f3ec660e092cf893f60b4a288df/SimpleSabotage.pdf
3•praptak•17m ago•0 comments

Can AI Pass Freshman CS? [video]

https://www.youtube.com/watch?v=56HJQm5nb0U
1•Antibabelic•17m ago•0 comments

Solidity 0.8.32/0.8.33

https://www.soliditylang.org/blog/2025/12/18/solidity-0.8.32-0.8.33-release-announcement/
1•andrewstetsenko•18m ago•0 comments

Show HN: Imagine Play – Generated stories with illustrations and narration

https://imagineplay.org/
2•foxinthebox•19m ago•0 comments

Well, There Goes the Metaverse

https://techcrunch.com/2026/01/19/well-there-goes-the-metaverse/
3•belter•19m ago•1 comments

Joe Armstrong and Jeremy Ruston – Intertwingling the Tiddlywiki with Erlang [video]

https://www.youtube.com/watch?v=Uv1UfLPK7_Q
1•kerim-ca•20m ago•0 comments

Another Way to Rate Incidents

https://surfingcomplexity.blog/2025/12/22/another-way-to-rate-incidents/
1•azhenley•20m ago•0 comments

Why high-cardinality workloads fail differently in Prometheus vs. ClickHouse

https://last9.io/blog/high-cardinality-metrics-prometheus-clickhouse/
1•nishantmodak•21m ago•0 comments

A16Z hires acquitted former Marine Daniel Penny as an investor

https://techcrunch.com/2025/02/04/a16z-hires-acquitted-former-marine-daniel-penny-as-an-investor/
2•ian_d•22m ago•2 comments

Ask HN: Why not have cemeteries for lines of descent?

2•amichail•23m ago•2 comments

AI Engineering: Pi 5 x K8s x Nvidia GPU passthrough [video]

https://www.youtube.com/shorts/3W_t9fJ1R1Q
1•johnsmith2076•23m ago•0 comments

Just because Linus Torvalds vibe codes doesn't mean it's a good idea

https://www.theregister.com/2026/01/16/linus_torvalds_vibe_coding/
3•CrankyBear•24m ago•1 comments

Trump's Crypto Gamble

https://www.foreignaffairs.com/united-states/trumps-crypto-gamble
3•petethomas•26m ago•0 comments

Ask HN: When has humanities/history knowledge helped you in tech?

1•amadeuswoo•30m ago•2 comments

Show HN: GitClassic.com, GitHub circa 2015 without JS & AI

https://gitclassic.com
2•heythisischris•30m ago•0 comments

New in Llama.cpp: Anthropic Messages API

https://huggingface.co/blog/ggml-org/anthropic-messages-api-in-llamacpp
1•gslin•30m ago•0 comments