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

Peace? (1814) [video]

https://www.youtube.com/watch?v=CH1oYhTigyA
2•JumpCrisscross•2m ago•0 comments

OpenAI Fires an Employee for Prediction Market Insider Trading

https://www.wired.com/story/openai-fires-employee-insider-trading-polymarket-kalshi/
4•bookofjoe•2m ago•1 comments

How do you repair the crown damaged by the Louvre thieves? I asked an expert

https://anthonyamore.substack.com/p/10-questions-with-an-art-conservator
3•anthonyamore•7m ago•0 comments

Show HN: RTS with known stars and exoplanets can now be played in the browser

https://stardustexile.com
2•apseren•7m ago•0 comments

Show HN: MemoryKit – Persistent memory layer for AI agents URL

https://github.com/0j/memorykit
1•memorykit•9m ago•0 comments

Ask HN: Will AI tools enable mass intelligence gathering?

2•Brysonbw•9m ago•0 comments

Show HN: Paster – A keyboard-first clipboard manager for Vim users

https://pasterapp.com
1•luanderock•11m ago•0 comments

Show HN: CarbonLint – Open-source real-time energy&carbon profiler for software

https://nishal21.github.io/CarbonLint/
2•nishalk•12m ago•0 comments

Ask HN: Why aren't we using "semantic tokenizers"/codebooks for text?

1•gavinray•13m ago•0 comments

Yet another catalogue of fast matrix multiplication algorithms

https://fmm.univ-lille.fr/
1•bmc7505•13m ago•0 comments

Everything Changes, and Nothing Changes

https://btao.org/posts/2026-02-28-everything-changes-nothing-changes/
2•todsacerdoti•13m ago•0 comments

I don't pay for ChatGPT, Perplexity, Gemini, or Claude – I stick to my self-h

https://www.xda-developers.com/i-stick-to-my-self-hosted-llms-instead-of-chatgpt/
1•teembeet•14m ago•0 comments

Analysis of the US and EU's Approach to AI in the Context of Human Rights

https://mervevarli.com/ai-us-eu-analysis/
2•gyokhan•14m ago•0 comments

Show HN: AdaptGauge – I found that adding few-shot examples can make LLMs worse

https://github.com/ShuntaroOkuma/adapt-gauge-core
1•shuntaro-okuma•14m ago•0 comments

I Fixed This EMT 250 [video]

https://www.youtube.com/watch?v=Mi6nTxA1bHU
1•cbzbc•14m ago•0 comments

Show HN: Concryptor – Multi-gigabyte/s file encryption via io_uring and Rayon

https://github.com/FrogSnot/Concryptor
1•FrogSnot•14m ago•0 comments

The state of AI bias benchmarks

https://somaxsoma.substack.com/p/the-state-of-ai-bias-benchmarks
2•somaxsoma•16m ago•0 comments

The Life Cycle of Money

https://doap.metal.bohyen.space/blog/post/complete-life-cycle-of-money/
2•nanacnote•16m ago•0 comments

Are self-driving cars safer than public transit?

https://thenextmile.substack.com/p/are-self-driving-cars-safer-than
2•nkoren•18m ago•1 comments

Writing Crystalized Thinking at Amazon. Is AI Muddying It?

https://www.bigtechnology.com/p/writing-crystalized-thinking-at-amazon
2•herbertl•19m ago•0 comments

Show HN: Now I Get It – Translate scientific papers into interactive webpages

https://nowigetit.us
2•jbdamask•19m ago•0 comments

Why AI bots will never replace human code review

https://codereview.withmartian.com/
2•TheAnkurTyagi•21m ago•0 comments

Customer Update on Simplenote

https://forums.simplenote.com/forums/topic/customer-update-on-simplenote/?view=all
2•0in•22m ago•0 comments

Timeline: Anthropic, OpenAI, and U.S. Government

https://anthropic-timeline.vercel.app
4•vldszn•23m ago•1 comments

Limitations on Safe, Trusted, Artificial General Intelligence

https://arxiv.org/abs/2509.21654
1•cs702•23m ago•0 comments

We Built a Compliant AI Companion Platform

2•aiangels_24•24m ago•0 comments

Show HN: Uback 0.7 – A universal bridge between backup sources and destinations

https://github.com/sloonz/uback
1•slooonz•26m ago•0 comments

Show HN: Reclaim Flowers – A 2D physics-based "Digital Altar" protocol

https://github.com/voice-of-japan/Virtual-Protest-Protocol/blob/main/README.md
2•sakanakana00•31m ago•1 comments

I customized every key on a giant keyboard [video]

https://www.youtube.com/watch?v=293HWHd_Jlc
2•bookofjoe•32m ago•0 comments

Full Interview: Anthropic CEO Dario Amodei on Pentagon Feud [video]

https://www.youtube.com/watch?v=MPTNHrq_4LU
5•Topfi•32m ago•0 comments