---
title: "Discussion on \"Your AI agent can read the whole database. Give it a Postgres role that can't\" | Hashnode"
description: "Discussion on \"Your AI agent can read the whole database. Give it a Postgres role that can't\". Most \"chat with your data\" features start the same way. Someone wires an agent (or an MCP server) to the app's existing database connection, adds a tool that runs a query, and the demo works on the fi"
url: "https://hashnode.com/posts/your-ai-agent-can-read-the-whole-database-give-it-a-postgres-role-that-can-t/6afab4bc542de7f7094a293d"
---

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

Discussion

# [Your AI agent can read the whole database. Give it a Postgres role that can't](https://redliolabs.hashnode.dev/your-ai-agent-can-read-the-whole-database-give-it-a-postgres-role-that-can-t?utm_source=hashnode&utm_medium=feed)

Most "chat with your data" features start the same way. Someone wires an agent (or an MCP server) to the app's existing database connection, adds a tool that runs a query, and the demo works on the fi

19h ago · 6 min read · redliolabs.hashnode.dev  
Read the article

-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#ai](https://hashnode.com/tag/ai)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#security](https://hashnode.com/tag/security)

## Written by

[Redlio Labs](https://hashnode.com/@redliolabs)

@redliolabs · Ahmedabad, India

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

Software development company since 2014. Custom software, ERP, SaaS, web and mobile apps for mid-size and large companies.

Redlio Labs is a software development company in Ahmedabad, India, founded in 2014. We design, build and grow custom software, ERP systems, SaaS products and web and mobile apps for mid-size and large companies, and write here about the engineering problems we solve along the way. Rated 5.0 on Clutch and Google. Website: https://redliolabs.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
