frontpage.
newsnewestaskshowjobs

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

OpenAI is pausing training for a second time

https://fortune.com/2026/09/26/openai-ai-agents-secure-sandbox-escape-training-pause-second-time-...
1•abdullahalharir•1m ago•0 comments

Awesome Free Developer Services

https://github.com/kebbbnnn/Awesome-Free-Developer-Services
1•kbn•5m ago•0 comments

Major Italian bank defrauded of millions via AI deception

https://www.newsbrainport.nl/major-italian-bank-defrauded-of-millions-via-ai-deception/
1•amelius•10m ago•0 comments

Frontier Labs Job-Board

https://frontierlabs.work/
2•sert_121•11m ago•0 comments

Show HN: A Simple GPU Job Scheduler

https://github.com/ceruleane/gpusched
2•mothproof•18m ago•0 comments

'Things Will Never Be Chill Again':The Doomers Who Shaped the AI Safety Freakout

https://www.wsj.com/tech/ai/ai-safety-effective-altruism-anthropic-164b9d05
2•rl3•21m ago•0 comments

Thiel: Trump administration is staffed by not smart but loyal people

https://twitter.com/RpsAgainstTrump/status/2103937218197004551
2•doener•22m ago•1 comments

Show HN: An interactive debugger for the Mornington Crescent esolang

https://codeberg.org/Two9A/mcresc
2•Two9A•34m ago•0 comments

AI-native React components that signal how oversubscribed your funding round is

https://performative-ui.cncl.co/
2•dsego•43m ago•0 comments

The LLM Job Paradox

https://blog.nilesh.io/post/llms-and-jobs
4•pmg101•45m ago•2 comments

United in debt: America has become a nation of fake rich people

https://thehill.com/opinion/finance/6112015-us-split-digital-physical-economies/
3•koolba•46m ago•0 comments

OpenAI halts training of latest models

https://www.theguardian.com/technology/2026/sep/27/openai-halts-training-of-latest-models-as-repo...
2•cc62cf4a4f20•46m ago•1 comments

You don't need to win or lose. You don't need to choose

1•bcusjfurkxnjck•55m ago•1 comments

Beware of Chicken

https://www.audible.com/pd/Beware-of-Chicken-A-Xianxia-Cultivation-Novel-Audiobook/B09Y2D2D5T
1•karl_gluck•56m ago•1 comments

You don't have to choose. You don't have to win or lose

1•ijjbvghij•56m ago•0 comments

The Six Dumbest Ideas in Computer Security

https://ranum.com/security/computer_security/editorials/dumb/
1•mashally•57m ago•0 comments

Show HN: Ppgrid – Rasterising points in minutes, not hours

https://mrzk.io/posts/ppgrid-fast-continentscale-raster-interpolation/
2•marzukia•1h ago•0 comments

An agent in a loop optimizing a renderer with the goal to minimize frame times

https://twitter.com/mitchellh/status/2060088112257372610
1•tosh•1h ago•0 comments

Friends embark on 20-year board game battle

https://www.bbc.co.uk/news/articles/cmvgyqyzk947o
1•erehweb•1h ago•0 comments

MapleKit – The front end review toolkit

https://maple-kit.org
2•aviramha•1h ago•0 comments

For 958 old to new 9Y0.2 blackened running water tail lamp assembly

https://www.porsche-km.com/productinfo/3194915.html
1•edl8888•1h ago•0 comments

OpenAI and Anthropic are investigating cases of AI misbehaving, report says

https://madrobot.blog/2026/09/26/openai-anthropic-tens-of-thousands-ai-misbehaviour-incidents-axios/
2•AIfanboy•1h ago•0 comments

Horizon Create and Horizon Studio

https://developers.meta.com/blog/meta-connect-recap-horizon-create-and-horizon-studio/
1•fourfire•1h ago•0 comments

Trellis: Fractal Layouts for Web Apps

https://trellisui.com/
2•handfuloflight•1h ago•1 comments

The SaaSpocalypse was more like a RenaiSaaS

https://www.stripeeconomics.com/p/the-saaspocalypse-was-more-like-a
1•duck•1h ago•0 comments

I Found a $113,337 Af_alg Linux Local Privilege Escalation Before Copy Fail

https://idnsec.com/research/linux-local-privilege-escalation-with-af-alg/
2•thebitofmyheart•1h ago•0 comments

I expect AI replication incidents by 2027

https://www.lesswrong.com/posts/BhcymsLgyYazh6sme/why-i-expect-ai-replication-incidents-by-2027
5•joozio•1h ago•1 comments

The Boring Decision That Beats 95% of Stock Pickers

https://comuniq.xyz/Wealth/post?t=1706
1•01-_-•1h ago•0 comments

Show HN: Trail – new kind of logic game

https://trail.franzai.com/
2•franze•1h ago•0 comments

My Husband Left Me 6 Weeks Postpartum and All I Got Was This Pretty Cool Baby

https://viverricious.substack.com/p/my-husband-left-me-6-weeks-postpartum
2•barry-cotter•1h ago•0 comments