---
title: "Discussion on \"🔒 Multi-Tenant RAG: Row-Level Security in pgvector with MCP\" | Hashnode"
description: "Discussion on \"🔒 Multi-Tenant RAG: Row-Level Security in pgvector with MCP\". When Tenant A searches your knowledge base, they must never see Tenant B's documents — enforce this at the database level, not in application code"
url: "https://hashnode.com/posts/multi-tenant-rag-row-level-security-in-pgvector-with-mcp/6a09a5423104e2aff0878f66"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [🔒 Multi-Tenant RAG: Row-Level Security in pgvector with MCP](https://blog.techtush.in/multi-tenant-rag-row-level-security-in-pgvector-with-mcp?utm_source=hashnode&utm_medium=feed)

When Tenant A searches your knowledge base, they must never see Tenant B's documents — enforce this at the database level, not in application code

May 16 · 16 min read · blog.techtush.in  
Read the article

-   [#mcp](https://hashnode.com/tag/mcp)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#pgvector](https://hashnode.com/tag/pgvector)
-   [#rag](https://hashnode.com/tag/rag)
-   [#security](https://hashnode.com/tag/security)
-   [#multitenancy](https://hashnode.com/tag/multitenancy)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#rls](https://hashnode.com/tag/rls)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Tushar Patil](https://hashnode.com/@TechTush)

@TechTush · Maharashtra, India

  
[View profile](https://hashnode.com/@TechTush)

Software Engineer | Tech Enthusiast

Hi 👋, I'm Tushar Patil. Currently I am working as Frontend Developer (Angular) and also have expertise with .Net Core and Framework.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
